LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   wide-dhcpv6 - trying to obtain /60 prefix, "invalid prefix" (https://www.linuxquestions.org/questions/linux-server-73/wide-dhcpv6-trying-to-obtain-60-prefix-invalid-prefix-4175506020/)

psycroptic 05-25-2014 01:46 AM

wide-dhcpv6 - trying to obtain /60 prefix, "invalid prefix"
 
my ISP is comcast, who is now giving all its customers /60 prefixes. i'm trying to request it with wide-dhcpv6, but i'm not sure which value to use for "sla-len". i have tried "4" and get the following


Code:

dhcp6c[341]: add_ifprefix: invalid prefix length 64 + 4 + 64
/etc/wide-dhcpv6/dhcp6c.conf

Code:

interface external {
        send ia-pd 0;
        request domain-name-servers;
};

id-assoc pd 0 {
        prefix-interface internal {
                sla-id 1;
                sla-len 4;
        };
};

so what number should i use here for a /60?

rknichols 05-25-2014 08:27 AM

Comcast doesn't give you a /60 by default. You have to request it with a PD hint. See http://forums.comcast.com/t5/Home-Ne...1609421#M49543 and the discussion that follows. Ignore the "disabled ... for now" part -- that was a year ago.

psycroptic 05-26-2014 12:59 AM

so i've copied the configuration from that thread; it looks like wide-dhcp is pulling a /60 according to the logs, but it's still assigning the internal interface a /64 prefix. is this normal?

Code:

May 26 01:14:47  dhcp6c[338]: client6_send: a new XID (19cd17) is generated
May 26 01:14:47  dhcp6c[338]: copy_option: set client ID (len 14)
May 26 01:14:47  dhcp6c[338]: copyout_option: set identity association
May 26 01:14:47  dhcp6c[338]: copy_option: set rapid commit (len 0)
May 26 01:14:47  dhcp6c[338]: copy_option: set elapsed time (len 2)
May 26 01:14:47  dhcp6c[338]: copy_option: set option request (len 2)
May 26 01:14:47  dhcp6c[338]: copyout_option: set IA_PD prefix
May 26 01:14:47  dhcp6c[338]: copyout_option: set IA_PD
May 26 01:14:47  dhcp6c[338]: dhcp6_reset_timer: reset a timer on external, state=SOLICIT, timeo=0, retrans=1042
May 26 01:14:47  dhcp6c[338]: May/26/2014 01:14:47: client6_send: transmit failed: Cannot assign requested address
May 26 01:14:48  dhcp6c[338]: copy_option: set client ID (len 14)
May 26 01:14:48  dhcp6c[338]: copyout_option: set identity association
May 26 01:14:48  dhcp6c[338]: copy_option: set rapid commit (len 0)
May 26 01:14:48  dhcp6c[338]: copy_option: set elapsed time (len 2)
May 26 01:14:48  dhcp6c[338]: copy_option: set option request (len 2)
May 26 01:14:48  dhcp6c[338]: copyout_option: set IA_PD prefix
May 26 01:14:48  dhcp6c[338]: copyout_option: set IA_PD
May 26 01:14:48  dhcp6c[338]: client6_send: send solicit to ff02::1:2%external
May 26 01:14:48  dhcp6c[338]: dhcp6_reset_timer: reset a timer on external, state=SOLICIT, timeo=1, retrans=2106
May 26 01:14:48  dhcp6c[338]: client6_recv: receive advertise from fe80::201:5cff:fe3f:d241%external on external
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option client ID, len 14
May 26 01:14:48  dhcp6c[338]: DUID: 00:01:00:01:1a:e9:e1:57:a0:36:9f:14:01:ec
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option server ID, len 14
May 26 01:14:48  dhcp6c[338]: DUID: 00:01:00:01:15:5d:94:a6:14:fe:b5:cf:15:b0
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option identity association, len 40
May 26 01:14:48  dhcp6c[338]: IA_NA: ID=1, T1=172800, T2=276480
May 26 01:14:48  dhcp6c[338]: copyin_option: get DHCP option IA address, len 24
May 26 01:14:48  dhcp6c[338]: copyin_option:  IA_NA address: 2001:558:6016:29:x:x:x:x pltime=345600 vltime=345600
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option IA_PD, len 41
May 26 01:14:48  dhcp6c[338]: IA_PD: ID=1, T1=172800, T2=276480
May 26 01:14:48  dhcp6c[338]: copyin_option: get DHCP option IA_PD prefix, len 25
May 26 01:14:48  dhcp6c[338]: copyin_option:  IA_PD prefix: 2601:5:1480:7c0::/60 pltime=345600 vltime=472446748160
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option preference, len 1
May 26 01:14:48  dhcp6c[338]: preference: 255
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option DNS, len 32
May 26 01:14:48  dhcp6c[338]: client6_recvadvert: server ID: 00:01:00:01:15:5d:94:a6:14:fe:b5:cf:15:b0, pref=255
May 26 01:14:48  dhcp6c[338]: client6_recvadvert: unexpected advertise
May 26 01:14:48  dhcp6c[338]: client6_send: a new XID (32237c) is generated
May 26 01:14:48  dhcp6c[338]: copy_option: set client ID (len 14)
May 26 01:14:48  dhcp6c[338]: copy_option: set server ID (len 14)
May 26 01:14:48  dhcp6c[338]: copyout_option: set IA address
May 26 01:14:48  dhcp6c[338]: copyout_option: set identity association
May 26 01:14:48  dhcp6c[338]: copy_option: set elapsed time (len 2)
May 26 01:14:48  dhcp6c[338]: copy_option: set option request (len 2)
May 26 01:14:48  dhcp6c[338]: copyout_option: set IA_PD prefix
May 26 01:14:48  dhcp6c[338]: copyout_option: set IA_PD
May 26 01:14:48  dhcp6c[338]: client6_send: send request to ff02::1:2%external
May 26 01:14:48  dhcp6c[338]: dhcp6_reset_timer: reset a timer on external, state=REQUEST, timeo=0, retrans=991
May 26 01:14:48  dhcp6c[338]: client6_recv: receive advertise from fe80::201:5cff:fe3f:d241%external on external
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option client ID, len 14
May 26 01:14:48  dhcp6c[338]: DUID: 00:01:00:01:1a:e9:e1:57:a0:36:9f:14:01:ec
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option server ID, len 14
May 26 01:14:48  dhcp6c[338]: DUID: 00:01:00:01:15:9c:b1:8e:84:2b:2b:fc:98:bb
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option identity association, len 40
May 26 01:14:48  dhcp6c[338]: IA_NA: ID=1, T1=172800, T2=276480
May 26 01:14:48  dhcp6c[338]: copyin_option: get DHCP option IA address, len 24
May 26 01:14:48  dhcp6c[338]: copyin_option:  IA_NA address: 2001:558:6016:29:x:x:x:x pltime=345600 vltime=345600
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option IA_PD, len 41
May 26 01:14:48  dhcp6c[338]: IA_PD: ID=1, T1=172800, T2=276480
May 26 01:14:48  dhcp6c[338]: copyin_option: get DHCP option IA_PD prefix, len 25
May 26 01:14:48  dhcp6c[338]: copyin_option:  IA_PD prefix: 2601:5:14c0:40::/60 pltime=345600 vltime=472446748160
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option preference, len 1
May 26 01:14:48  dhcp6c[338]: preference: 0
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option DNS, len 32
May 26 01:14:48  dhcp6c[338]: client6_recvadvert: XID mismatch
May 26 01:14:48  kernel: random: nonblocking pool is initialized
May 26 01:14:48  dhcp6c[338]: client6_recv: receive reply from fe80::201:5cff:fe3f:d241%external on external
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option client ID, len 14
May 26 01:14:48  dhcp6c[338]: DUID: 00:01:00:01:1a:e9:e1:57:a0:36:9f:14:01:ec
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option server ID, len 14
May 26 01:14:48  dhcp6c[338]: DUID: 00:01:00:01:15:5d:94:a6:14:fe:b5:cf:15:b0
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option identity association, len 40
May 26 01:14:48  dhcp6c[338]: IA_NA: ID=1, T1=172800, T2=276480
May 26 01:14:48  dhcp6c[338]: copyin_option: get DHCP option IA address, len 24
May 26 01:14:48  dhcp6c[338]: copyin_option:  IA_NA address: 2001:x:x:x:x:x:x:x pltime=345600 vltime=345600
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option IA_PD, len 41
May 26 01:14:48  dhcp6c[338]: IA_PD: ID=1, T1=172800, T2=276480
May 26 01:14:48  dhcp6c[338]: copyin_option: get DHCP option IA_PD prefix, len 25
May 26 01:14:48  dhcp6c[338]: copyin_option:  IA_PD prefix: 2601:5:1480:7c0::/60 pltime=345600 vltime=472446748160
May 26 01:14:48  dhcp6c[338]: dhcp6_get_options: get DHCP option DNS, len 32
May 26 01:14:48  dhcp6c[338]: info_printf: nameserver[0] 2001:558:feed::1
May 26 01:14:48  dhcp6c[338]: info_printf: nameserver[1] 2001:558:feed::2
May 26 01:14:48  dhcp6c[338]: get_ia: make an IA: PD-1
May 26 01:14:48  dhcp6c[338]: update_prefix: create a prefix 2601:5:1480:7c0::/60 pltime=345600, vltime=532576290304
May 26 01:14:48  dhcp6c[338]: ifaddrconf: add an address 2601:5:1480:7c1:x:x:x:x/64 on internal

May 26 01:14:48  dhcp6c[338]: get_ia: make an IA: NA-1
May 26 01:14:48  dhcp6c[338]: update_address: create an address 2001:558:6016:29:x:x:x:x pltime=345600, vltime=345600
May 26 01:14:48  dhcp6c[338]: ifaddrconf: add an address 2001:558:6016:29:x:x:x:x/128 on external
May 26 01:14:48  dhcp6c[338]: dhcp6_remove_event: removing an event on external, state=REQUEST
May 26 01:14:48  dhcp6c[338]: dhcp6_remove_event: removing server (ID: 00:01:00:01:15:5d:94:a6:14:fe:b5:cf:15:b0)
May 26 01:14:48  dhcp6c[338]: client6_recvreply: got an expected reply, sleeping.


rknichols 05-26-2014 08:31 AM

I'm not actually doing any IPv6 subnetting, so I'm not sure just what is supposed to happen there. Anyone??


All times are GMT -5. The time now is 08:49 PM.