Auteur Sujet: Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)  (Lu 32086 fois)

0 Membres et 1 Invité sur ce sujet

zoc

  • Abonné Orange Fibre
  • *
  • Messages: 4 258
  • Antibes (06) / Mercury (73)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #12 le: 17 mars 2017 à 06:40:47 »
pour l'ipv6 comme pour v4 d'ailleurs sur le PREINIT on met les prio sur le BOUND on les enlève
Pas besoin de les mettre ailleurs.
Il n'y en jamais eu besoin de faire ça, ça fonctionne avec tout en prio 6 chez moi depuis mars 2016, même si c'est une bonne idée, adaptable à l'ERL d'ailleurs pour IPv4 mais pas pour IPv6 car on utilise dibbler, pas isc-dhcp.

Citer
Par contre je n'ai pas vu l'équivalent d'un rdisc dans la conf "ERL" (soit un appel à rdisc soit fixer à la main la route vers ba0bab
default via fe80::ba0:bab dev vlan832  proto ra  metric 1024  expires 3008sec hoplimit 255 pref medium
set interface ethernet eth1 vif 832 ipv6 address autoconf
« Modifié: 17 mars 2017 à 10:48:56 par zoc »

zoc

  • Abonné Orange Fibre
  • *
  • Messages: 4 258
  • Antibes (06) / Mercury (73)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #13 le: 17 mars 2017 à 06:42:30 »
y'a pas les prio à setter aussi ?
/bin/ip link set dev $interface type vlan egress 0:0 1:0 2:0 3:0 4:0 5:0 6:6 7:0
Elles y sont déjà pour IPv4 dans sa conf: set interface ethernet eth1 vif 832 egress-qos "0:0 1:0 2:0 3:0 4:0 5:0 6:6 7:0"

pci

  • Abonné Orange Fibre
  • *
  • Messages: 60
  • FFTH 200/100 Antibes (06)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #14 le: 17 mars 2017 à 10:42:30 »
J'avais pas fait gaffe.
<troll enabled="true">Par contre, je viens de voir que tu es un peu faible niveau débit par rapport à ton offre  ;)</troll>

keshav26

  • Abonné Orange Fibre
  • *
  • Messages: 84
  • FTTH 1000/250 Antibes (06)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #15 le: 17 mars 2017 à 16:31:11 »
Bonjour,

Je ne comprend pas pourquoi ma config ne passe pas auriez-vous une idée voici les messages d'erreur
root@ubnt# load /config/config_ipv6.boot
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/3-to-4 line 50.
Use of uninitialized value in split at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 26.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 27.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 31.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 35.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 39.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 43.
Use of uninitialized value in split at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 26.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 27.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 31.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 35.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 39.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 43.
Use of uninitialized value in split at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 26.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 27.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 31.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 35.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 39.
Use of uninitialized value $name in pattern match (m//) at /opt/vyatta/etc/config-migrate/migrate/firewall/4-to-5 line 43.
Loading configuration from '/config/config_ipv6.boot'...
The specified configuration node is not valid
Set ['firewall' 'interfaces' 'ethernet' 'eth0' 'address' '192.168.77.254/24'] failed
The specified configuration node is not valid
Set ['firewall' 'interfaces' 'ethernet' 'eth0' 'description' 'LAN - Switch TP-Link'] failed
The specified configuration node is not valid
...

Est ce que quelqu'un a déjà eu ça ?

Merci

zoc

  • Abonné Orange Fibre
  • *
  • Messages: 4 258
  • Antibes (06) / Mercury (73)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #16 le: 17 mars 2017 à 17:43:55 »
Tu as copié/collé des bouts de config directement dans ton fichier config_ipv6.boot ?

C'est une mauvaise idée, une simple erreur de positionnement lors d'un coller peut casser la config. Il est préférable d'entrer en mode 'configure' et retaper les commandes (c'est un peu chiant mais au moins en cas d'erreur l'interpréteur rale), puis commit et save.

Les seuls cas où j'édite le fichier directement, c'est pour changer l'egress-qos (donc en pratique, je ne le fais jamais).


keshav26

  • Abonné Orange Fibre
  • *
  • Messages: 84
  • FTTH 1000/250 Antibes (06)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #17 le: 17 mars 2017 à 18:18:01 »
D'accord zoc merci je vais refaire la conf merci 😉

keshav26

  • Abonné Orange Fibre
  • *
  • Messages: 84
  • FTTH 1000/250 Antibes (06)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #18 le: 17 mars 2017 à 22:34:15 »
D'accord zoc merci je vais refaire la conf merci 😉

Je viens de refaire le fichier config.boot ça passe maintenant quand je l'applique...

Parcontre visiblement je suis toujours en IPv4 ( J'ai testé ici http://ipv6-test.com/ )

J'ai aucune idée ou ça bloque j'ai meme redémarré l'ERL mais toujours en IPv4...

Je ne sais trop ou ça coince du coups... Comme j'ai aucune erreur...

pci

  • Abonné Orange Fibre
  • *
  • Messages: 60
  • FFTH 200/100 Antibes (06)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #19 le: 17 mars 2017 à 23:05:06 »
Tu as bien le ba0bab ?

zoc

  • Abonné Orange Fibre
  • *
  • Messages: 4 258
  • Antibes (06) / Mercury (73)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #20 le: 18 mars 2017 à 07:08:28 »
Est-ce que dibbler-client est bien en cours d'exécution ?
Est-ce que ton script /etc/dibbler/radvd.sh a bien les droits d'exécution ?
Est-ce que le fichier /tmp/dibbler.log existe et que contient-il ?
Que donne la commande show ipv6 route ?

Tu peux aussi essayer de lancer dibbler-client à la main: sudo dibbler-client run et voir ce qu'il s'affiche dans la console.

keshav26

  • Abonné Orange Fibre
  • *
  • Messages: 84
  • FTTH 1000/250 Antibes (06)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #21 le: 18 mars 2017 à 09:04:45 »
Visiblement dibbler est lancé
root@ubnt:/config/scripts/post-config.d# ps ax | grep dibbler-client
root     13776  1.5  0.3  13160  1696 pts/0    Sl   08:39   0:00 /usr/sbin/dibbler-client start
root     13782  0.0  0.1   2320   568 pts/0    S+   08:39   0:00 /bin/busybox grep dibbler-client

J'ai passé /etc/dibbler/radvd.sh en chmod 777 pour etre sur... Le fichier /tmp/dibbler.log n'existe pas ( qui que ça ne se lance pas non? )

Voici le résultat d'un show ipv6 route

root@ubnt:/config/scripts/post-config.d# show ipv6 route
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       IA - OSPF inter area, E1 - OSPF external type 1,
       E2 - OSPF external type 2, N1 - OSPF NSSA external type 1,
       N2 - OSPF NSSA external type 2, B - BGP
Timers: Uptime
IP Route Table for VRF "default"
C      ::1/128 via ::, lo, 09:33:37
C      fe80::/64 via ::, eth1.840, 09:32:48

En lançant dibbler à la main j'ai ça

root@ubnt:/config/scripts/post-config.d# sudo dibbler-client run
| Dibbler - a portable DHCPv6, version 1.0.1 (CLIENT, Linux port)
| Authors : Tomasz Mrugalski<thomson(at)klub.com.pl>,Marek Senderski<msend(at)o2.pl>
| Licence : GNU GPL v2 only. Developed at Gdansk University of Technology.
| Homepage: http://klub.com.pl/dhcpv6/
2017.03.18 08:45:36 Client Critical  Process already running and it seems to be Dibbler (pid=13776, name /usr/sbin/dibbler-client).

Merci

zoc

  • Abonné Orange Fibre
  • *
  • Messages: 4 258
  • Antibes (06) / Mercury (73)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #22 le: 18 mars 2017 à 09:09:33 »
radvd.sh ne se lance que quand dibbler-client a réussi à obtenir un préfixe.

Bizarre que tu n'aies pas la route par défaut si tu as bien rajouté le 'ipv6 address autoconf' dans la config du vif 832 d'eth1... Tu devrais avoir cette ligne:
K      ::/0 [0/1024] via fe80::ba0:bab, eth1.832, 6d18h21m
Je te propose d'arrêter dibbler-client (sudo service dibbler-client stop) et de réessayer le run pour voir ce que dit dibbler...

keshav26

  • Abonné Orange Fibre
  • *
  • Messages: 84
  • FTTH 1000/250 Antibes (06)
Remplacer sa Livebox par un routeur Ubiquiti Edgemax (configuration IPv6)
« Réponse #23 le: 18 mars 2017 à 09:23:10 »
voici le résultat de sudo dibbler-client run
root@ubnt:/tmp# sudo dibbler-client run
| Dibbler - a portable DHCPv6, version 1.0.1 (CLIENT, Linux port)
| Authors : Tomasz Mrugalski<thomson(at)klub.com.pl>,Marek Senderski<msend(at)o2.pl>
| Licence : GNU GPL v2 only. Developed at Gdansk University of Technology.
| Homepage: http://klub.com.pl/dhcpv6/
2017.03.18 09:19:06 Client Notice    My pid (14816) is stored in /var/lib/dibbler/client.pid
2017.03.18 09:19:06 Client Notice    Detected iface eth1.840/8, MAC=80:2a:a8:f1:17:4e.
2017.03.18 09:19:06 Client Notice    Detected iface eth1.832/7, MAC=80:2a:a8:f1:17:4e.
2017.03.18 09:19:06 Client Notice    Detected iface eth1.838/6, MAC=80:2a:a8:f1:17:4e.
2017.03.18 09:19:06 Client Notice    Detected iface imq0/5, MAC=.
2017.03.18 09:19:06 Client Notice    Detected iface eth2/4, MAC=80:2a:a8:f1:17:4f.
2017.03.18 09:19:06 Client Notice    Detected iface eth1/3, MAC=80:2a:a8:f1:17:4e.
2017.03.18 09:19:06 Client Notice    Detected iface eth0/2, MAC=80:2a:a8:f1:17:4d.
2017.03.18 09:19:06 Client Notice    Detected iface lo/1, MAC=00:00:00:00:00:00.
2017.03.18 09:19:06 Client Notice    Parsing /etc/dibbler/client.conf config file...
2017.03.18 09:19:06 Client Info      Interface eth1.832/7 configuration has been loaded.
2017.03.18 09:19:06 Client Info      My DUID is 00:01:00:01:20:5e:4b:e6:80:2a:a8:f1:17:4e.
2017.03.18 09:19:06 Client Info      Loading old address database (client-AddrMgr.xml), using built-in routines.
2017.03.18 09:19:06 Client Info      DB timestamp:1489825055, now()=1489825146, db is 91 second(s) old.
2017.03.18 09:19:06 Client Info      All client's 00:01:00:01:20:5e:4b:e6:80:2a:a8:f1:17:4e leases are not valid.
2017.03.18 09:19:06 Client Notice    Creating control (::) socket on the lo/1 interface.
2017.03.18 09:19:06 Client Notice    Creating socket (addr=fe80::822a:a8ff:fef1:174e) on eth1.832/7 interface.
2017.03.18 09:19:07 Client Notice    CONFIRM support compiled in.
2017.03.18 09:19:07 Client Info      Creating INFORMATION-REQUEST message on eth1.832/7 interface.
2017.03.18 09:19:07 Client Error     AUTH: protocol 5327360 not supported yet.
2017.03.18 09:19:08 Client Info      Processing msg (INF-REQUEST,transID=0x9f01d,opts: 1 8 16 15 11 11 6)
2017.03.18 09:19:08 Client Error     AUTH: protocol 5327360 not supported yet.
2017.03.18 09:19:10 Client Info      Processing msg (INF-REQUEST,transID=0x9f01d,opts: 1 8 16 15 11 11 6)
2017.03.18 09:19:10 Client Error     AUTH: protocol 5327360 not supported yet.
2017.03.18 09:19:14 Client Info      Processing msg (INF-REQUEST,transID=0x9f01d,opts: 1 8 16 15 11 11 6)
2017.03.18 09:19:14 Client Error     AUTH: protocol 5327360 not supported yet.
2017.03.18 09:19:22 Client Info      Processing msg (INF-REQUEST,transID=0x9f01d,opts: 1 8 16 15 11 11 6)
2017.03.18 09:19:22 Client Error     AUTH: protocol 5327360 not supported yet.
2017.03.18 09:19:38 Client Info      Processing msg (INF-REQUEST,transID=0x9f01d,opts: 1 8 16 15 11 11 6)
2017.03.18 09:19:38 Client Error     AUTH: protocol 5327360 not supported yet.
^C2017.03.18 09:19:41 Client Critical  Signal received. Shutting down.
2017.03.18 09:19:41 Client Notice    Shutting down entire client.
2017.03.18 09:19:42 Client Notice    Bye bye.

sinon voici la conf pour le vif 832

ethernet eth1 {
        description "Arrivee Fibre WAN"
        duplex auto
        speed auto
        vif 832 {
            address dhcp
            description "VLAN Internet Orange"
            dhcp-options {
                client-option "send vendor-class-identifier &quot;sagem&quot;;"
                client-option "send dhcp-client-identifier 1:xx:xx:xx:xx:xx:xx;"
                client-option "send user-class &quot;\053FSVDSL_livebox.Internet.softathome.Livebox4&quot;;"
                client-option "send rfc3118-auth 00:00:00:00:00:00:00:00:00:00:00:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx;"
                client-option "request dhcp-lease-time, dhcp-renewal-time, dhcp-rebinding-time, domain-search, rfc3118-auth;"
                default-route update
                default-route-distance 210
                name-server update
            }
            egress-qos "0:0 1:0 2:0 3:0 4:0 5:0 6:6 7:0"
            firewall {
                in {
                    ipv6-name WANv6_IN
                    name WAN_IN
                }
                local {
                    ipv6-name WANv6_LOCAL
                    name WAN_LOCAL
                }
                out {
                    ipv6-name WANv6_OUT
                    name WAN_OUT
                }
            }
            ipv6 {
                address {
                    autoconf
                }
                dup-addr-detect-transmits 1
            }
        }