Anzeige:
Ergebnis 1 bis 3 von 3

Thema: IPv6 Prefix Delegation mit Wide DHCP Client

  1. #1
    PaganicaPro@SlopePointNZ Avatar von craano
    Registriert seit
    Jul 2004
    Beiträge
    1.303

    IPv6 Prefix Delegation mit Wide DHCP Client

    Hallo,

    ich versuche in einem LXC Container ein IPv6 Prefix mit wide-dhcpv6-client an ein zweites Netzwerk Interface weiterzureichen.

    Host und Container sind Debian.

    Code:
    root@buster4:/# cat etc/network/interfaces
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet dhcp
    
    auto eth1
    Code:
    root@buster4:/# cat /etc/wide-dhcpv6/dhcp6c.conf
    profile default
    {
      information-only;
    
      request domain-name-servers;
      request domain-name;
    
      script "/etc/wide-dhcpv6/dhcp6c-script";
    };
    
    interface eth0 {
        send rapid-commit;
    
        send ia-na 0;
        send ia-pd 0;
    };
    
    id-assoc na 0 {
    
    };
    
    id-assoc pd 0 {
        prefix ::/64 infinity;
    
        # Internal interface (LAN)
        prefix-interface eth1 {
            sla-len 2;
            sla-id 0;
            ifid 1;
        };
    };
    Code:
    root@buster4:/# sysctl -p
    net.ipv4.ip_forward = 1
    net.ipv6.conf.all.forwarding = 1
    net.ipv6.conf.eth0.accept_ra = 2
    eth0 sollte jetzt eigentlich ein 62er Netz vom Router bekommen und wide-dhcpv6-client dann daraus ein 64er Netz an eth1 übergeben. Leider bleibt eth1 unkonfiguriert.

    Code:
    root@buster4:/# ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host
           valid_lft forever preferred_lft forever
    53: eth0@if54: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether 00:16:3e:a7:62:a2 brd ff:ff:ff:ff:ff:ff link-netnsid 0
        inet 10.0.1.35/24 brd 10.0.1.255 scope global dynamic eth0
           valid_lft 863477sec preferred_lft 863477sec
        inet6 fd00:72:1:0:216:3eff:xxxx:xxxx/64 scope global dynamic mngtmpaddr
           valid_lft 7130sec preferred_lft 3530sec
        inet6 2003::xxxx:xxxx:5400:216:3eff::xxxx:xxxx/64 scope global dynamic mngtmpaddr
           valid_lft 7130sec preferred_lft 1230sec
        inet6 fe80::216:3eff::xxxx:xxxx/64 scope link
           valid_lft forever preferred_lft forever
    55: eth1@if56: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
        link/ether 00:16:3e:a7:62:a3 brd ff:ff:ff:ff:ff:ff link-netnsid 0
        inet6 fe80::216:3eff::xxxx:xxxx/64 scope link
           valid_lft forever preferred_lft forever
    Hat jemand eine Idee warum eth1 keine IPv6 Adresse bekommt?

    Herzlichen Gruß
    craano

  2. #2
    PaganicaPro@SlopePointNZ Avatar von craano
    Registriert seit
    Jul 2004
    Beiträge
    1.303
    Wenn ich den wide-dhcp-client manuell starte, bekomme ich im Output keinen Fehler angezeigt; Allerdings sehe ich auch nicht, dass eth1 ein Prefix übergeben wird:
    Code:
    root@buster4:~# dhcp6c -c /etc/wide-dhcpv6/dhcp6c.conf -fdD eth0 eth1
    Dec/30/2020 19:53:47: get_duid: extracted an existing DUID from /var/lib/dhcpv6/dhcp6c_duid: 00:01:00:01:27:7f:8e:ce:00:16:3e:a7:62:a2
    Dec/30/2020 19:53:47: cfdebug_print: <3>[profile] (7)
    Dec/30/2020 19:53:47: cfdebug_print: <7>[default] (7)
    Dec/30/2020 19:53:47: cfdebug_print: <3>begin of closure [{] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[information-only] (16)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[request] (7)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[domain-name-servers] (19)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[request] (7)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[domain-name] (11)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[script] (6)
    Dec/30/2020 19:53:47: cfdebug_print: <3>["/etc/wide-dhcpv6/dhcp6c-script"] (32)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of closure [}] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[interface] (9)
    Dec/30/2020 19:53:47: cfdebug_print: <5>[eth0] (4)
    Dec/30/2020 19:53:47: cfdebug_print: <3>begin of closure [{] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[send] (4)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[rapid-commit] (12)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[send] (4)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[ia-na] (5)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[0] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[send] (4)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[ia-pd] (5)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[0] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of closure [}] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[id-assoc] (8)
    Dec/30/2020 19:53:47: cfdebug_print: <15>[na] (2)
    Dec/30/2020 19:53:47: cfdebug_print: <15>[0] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <15>begin of closure [{] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of closure [}] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[id-assoc] (8)
    Dec/30/2020 19:53:47: cfdebug_print: <15>[pd] (2)
    Dec/30/2020 19:53:47: cfdebug_print: <15>[0] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <15>begin of closure [{] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[prefix] (6)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[::] (2)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[/] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[64] (2)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[infinity] (8)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>comment [# Internal interface (LAN)] (26)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[prefix-interface] (16)
    Dec/30/2020 19:53:47: cfdebug_print: <5>[eth1] (4)
    Dec/30/2020 19:53:47: cfdebug_print: <3>begin of closure [{] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[sla-len] (7)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[2] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[sla-id] (6)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[0] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[ifid] (4)
    Dec/30/2020 19:53:47: cfdebug_print: <3>[1] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of closure [}] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of closure [}] (1)
    Dec/30/2020 19:53:47: cfdebug_print: <3>end of sentence [;] (1)
    Dec/30/2020 19:53:47: configure_pool: called
    Dec/30/2020 19:53:47: clear_poolconf: called
    Dec/30/2020 19:53:47: dhcp6_reset_timer: reset a timer on eth1, state=INIT, timeo=0, retrans=791
    Dec/30/2020 19:53:47: dhcp6_reset_timer: reset a timer on eth0, state=INIT, timeo=0, retrans=390
    Dec/30/2020 19:53:47: client6_send: a new XID (7df278) is generated
    Dec/30/2020 19:53:47: copy_option: set client ID (len 14)
    Dec/30/2020 19:53:47: copyout_option: set identity association
    Dec/30/2020 19:53:47: copy_option: set rapid commit (len 0)
    Dec/30/2020 19:53:47: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:53:47: copyout_option: set IA_PD prefix
    Dec/30/2020 19:53:47: copyout_option: set IA_PD
    Dec/30/2020 19:53:47: client6_send: send solicit to ff02::1:2%eth0
    Dec/30/2020 19:53:47: dhcp6_reset_timer: reset a timer on eth0, state=SOLICIT, timeo=0, retrans=1089
    Dec/30/2020 19:53:47: client6_recv: receive reply from fe80::ca0e:14ff:fe20:8475%eth0 on eth0
    Dec/30/2020 19:53:47: dhcp6_get_options: get DHCP option rapid commit, len 0
    Dec/30/2020 19:53:47: dhcp6_get_options: get DHCP option client ID, len 14
    Dec/30/2020 19:53:47:   DUID: 00:01:00:01:27:7f:8e:ce:00:16:3e:a7:62:a2
    Dec/30/2020 19:53:47: dhcp6_get_options: get DHCP option server ID, len 10
    Dec/30/2020 19:53:47:   DUID: 00:03:00:01:c8:0e:14:20:84:75
    Dec/30/2020 19:53:47: dhcp6_get_options: get DHCP option status code, len 33
    Dec/30/2020 19:53:47:   status code: no addresses
    Dec/30/2020 19:53:47: client6_recvreply: status code: no addresses
    Dec/30/2020 19:53:47: dhcp6_remove_event: removing an event on eth0, state=SOLICIT
    Dec/30/2020 19:53:47: client6_recvreply: got an expected reply, sleeping.
    Dec/30/2020 19:53:48: client6_send: a new XID (dbf7db) is generated
    Dec/30/2020 19:53:48: copy_option: set client ID (len 14)
    Dec/30/2020 19:53:48: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:53:48: client6_send: send solicit to ff02::1:2%eth1
    Dec/30/2020 19:53:48: dhcp6_reset_timer: reset a timer on eth1, state=SOLICIT, timeo=0, retrans=1090
    Dec/30/2020 19:53:49: copy_option: set client ID (len 14)
    Dec/30/2020 19:53:49: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:53:49: client6_send: send solicit to ff02::1:2%eth1
    Dec/30/2020 19:53:49: dhcp6_reset_timer: reset a timer on eth1, state=SOLICIT, timeo=1, retrans=2198
    Dec/30/2020 19:53:51: copy_option: set client ID (len 14)
    Dec/30/2020 19:53:51: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:53:51: client6_send: send solicit to ff02::1:2%eth1
    Dec/30/2020 19:53:51: dhcp6_reset_timer: reset a timer on eth1, state=SOLICIT, timeo=2, retrans=4206
    Dec/30/2020 19:53:55: copy_option: set client ID (len 14)
    Dec/30/2020 19:53:55: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:53:55: client6_send: send solicit to ff02::1:2%eth1
    Dec/30/2020 19:53:55: dhcp6_reset_timer: reset a timer on eth1, state=SOLICIT, timeo=3, retrans=8523
    Dec/30/2020 19:54:04: copy_option: set client ID (len 14)
    Dec/30/2020 19:54:04: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:54:04: client6_send: send solicit to ff02::1:2%eth1
    Dec/30/2020 19:54:04: dhcp6_reset_timer: reset a timer on eth1, state=SOLICIT, timeo=4, retrans=17482
    Dec/30/2020 19:54:21: copy_option: set client ID (len 14)
    Dec/30/2020 19:54:21: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:54:21: client6_send: send solicit to ff02::1:2%eth1
    Dec/30/2020 19:54:21: dhcp6_reset_timer: reset a timer on eth1, state=SOLICIT, timeo=5, retrans=34406
    Dec/30/2020 19:54:56: copy_option: set client ID (len 14)
    Dec/30/2020 19:54:56: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:54:56: client6_send: send solicit to ff02::1:2%eth1
    Dec/30/2020 19:54:56: dhcp6_reset_timer: reset a timer on eth1, state=SOLICIT, timeo=6, retrans=66792
    Dec/30/2020 19:56:03: copy_option: set client ID (len 14)
    Dec/30/2020 19:56:03: copy_option: set elapsed time (len 2)
    Dec/30/2020 19:56:03: client6_send: send solicit to ff02::1:2%eth1
    Dec/30/2020 19:56:03: dhcp6_reset_timer: reset a timer on eth1, state=SOLICIT, timeo=7, retrans=126948

  3. #3
    PaganicaPro@SlopePointNZ Avatar von craano
    Registriert seit
    Jul 2004
    Beiträge
    1.303
    Hallo,
    falls irgendjemand auf diesen Post stößt. Problem gelöst.

    Nach einem Neustart des Internetrouters (Fritzbox) läuft alles mit der obigen Konfiguration so wie es soll. Für Eth1 wird ein Prefix angefordert und die Adresse an Eth1 wird mit einem /64er Subnetz konfiguriert.

    Hat mich viel Zeit und nicht zählbare Konfigurationsversuche gekostet...Hätte ich mal früher die Box neu gestartet.

    Habe die Konfiguration noch vereinfacht.
    Eth0 per Slaac Autokonfiguration, dann nur

    Code:
    interface eth0 {
        # Prefix Delegation über eth0 anfordern , Prefix id 0
        send ia-pd 0;
    };
    
    id-assoc pd 0 {
        prefix-interface eth1 { 
            # Subnetz 1 eth1
            sla-len 2;
            sla-id 1;
        };
    };
    
    profile default
    {
      information-only;
      request domain-name-servers;
      script "/etc/wide-dhcpv6/dhcp6c-script";
    };

Ähnliche Themen

  1. DHCP mit IPv6
    Von PFeffi09 im Forum Router und Netzaufbau
    Antworten: 1
    Letzter Beitrag: 05.02.17, 11:38
  2. IPv6 SLACC - Gibt es ein Event bei der Änderung eine Prefix
    Von rep im Forum Router und Netzaufbau
    Antworten: 10
    Letzter Beitrag: 07.08.15, 06:59
  3. IPv6 DHCP Client
    Von Keamas im Forum Router und Netzaufbau
    Antworten: 0
    Letzter Beitrag: 15.07.13, 21:15
  4. openSuSE 11.3 DHCP 4.1.1 ipv6
    Von ctFreez im Forum Linux als Server
    Antworten: 2
    Letzter Beitrag: 14.08.10, 18:12
  5. DHCP & IPv6
    Von solis im Forum Anbindung an die Aussenwelt
    Antworten: 3
    Letzter Beitrag: 07.03.03, 09:09

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •