Hello, how do I configure my router to allocate less than 64 bits to the host portion of the ipv6 address?
My ISP gives me an IPv6 prefix via PPPoE and DHCPv6 and initially an ipv6 was associated with the router wan interface (pppoe-wan).
However, after making configuration changes to assign ipv6 to lan and loopback interfaces, pppoe-wan does not receive such an address. What am I doing wrong?
Also what do I need to do to segment my :: /64 link into smaller subnets, say :: /72? I expected that if I allocate a Site Leve Aggregator of 8, the router would subtract that portion out of the :: /64 bits of the host. As it turns out the router makes this add_ifprefix: invalid prefix length 64 + 8 + 64 and that does not resolve to 128 bits.
This is the log I obtained with 'lan' section enabled and 'pppoe-wan' section commented out:
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: client6_recv: receive reply from fe80::1 on pppoe-wan
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: dhcp6_get_options: get DHCP option server ID, len 25
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: DUID: 00:02:00:00:86:38:00:00:00:64:2a:57:32:27:4e:eb:e8:4c:dd:e9:4b:e7:c7:eb:3a
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: dhcp6_get_options: get DHCP option client ID, len 10
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: DUID: 00:03:00:06:20:4e:7f:6f:5e:64
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: dhcp6_get_options: get DHCP option DNS, len 32
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: dhcp6_get_options: get DHCP option IA_PD, len 41
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: IA_PD: ID=0, T1=0, T2=0
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: copyin_option: get DHCP option IA_PD prefix, len 25
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: copyin_option: IA_PD prefix: 2xxx:xxxx:xxxx:1001::/64 pltime=4294967295 vltime=4294967295
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: info_printf: nameserver[0] 2xxx:xxxx:xxxx:xxxx:xxxx:xxxx:465:1
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: client6_script: script "/usr/bin/dhcp6c-state" terminated
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: get_ia: make an IA: PD-0
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: update_prefix: create a prefix 2xxx:xxxx:xxxx:xxxx::/64 pltime=4294967295, vltime=4294967295
Apr 26 04:58:00 capsuna2 daemon.info dhcp6c[1311]: add_ifprefix: invalid prefix length 64 + 8 + 64
Apr 26 04:58:00 capsuna2 daemon.info dhcp6c[1311]: update_ia: T1(4294967295) and/or T2(4294967295) is locally determined
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: dhcp6_remove_event: removing an event on pppoe-wan, state=REQUEST
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: dhcp6_remove_event: removing server (ID: 00:02:00:00:86:38:00:00:00:64:2a:57:32:27:4e:eb:e8:4c:dd:e9:4b:e7:c7:eb:3a)
Apr 26 04:58:00 capsuna2 daemon.debug dhcp6c[1311]: client6_recvreply: got an expected reply, sleeping.
My configuration file /etc/config/dhcp6c with pppoe-wan commented and lan uncommented:
config 'dhcp6c' 'basic'
option 'enabled' '1' # 1 = enabled; 0 = disabled
option 'interface' 'wan' # This is the interface the DHCPv6 client will run on
option 'dns' 'dnsmasq' # Which DNS server you run (only dnsmasq currently supported)
option 'debug' '1' # 1 = enable debugging; 0 = disable debugging
# Send options (1 = send; 0 = do not send)
option 'pd' '1' # Prefix Delegation
option 'na' '0' # Non-Temporary Address
option 'rapid_commit' '1' # Rapid Commit
# Request options (1 = request; 0 = do not request)
option 'domain_name_servers' '1'
option 'domain_name' '0'
option 'ntp_servers' '0'
option 'sip_server_address' '0'
option 'sip_server_domain_name' '0'
option 'nis_server_address' '0'
option 'nis_domain_name' '0'
option 'nisp_server_address' '0'
option 'nisp_domain_name' '0'
option 'bcmcs_server_address' '0'
option 'bcmcs_server_domain_name' '0'
# Override the used DUID, by default it is derived from the interface MAC
# The given value must be uppercase and globally unique!
#option 'duid' '00:03:00:06:D8:5D:4C:A5:03:F2'
# Script to run when a reply is received
option 'script' '/usr/bin/dhcp6c-state'
# Define one or more interfaces on which prefixes should be assigned
#config 'interface' 'loopback'
# option 'enabled' '1' # 1 = enabled; 0 = disabled
# option 'sla_id' '0' # Site level aggregator identifier specified in decimal (subnet)
# option 'sla_len' '8' # Site level aggregator length (64 - size of prefix being delegated)
# e.g. /60 from ISP -> 64 - 60 = 4
config 'interface' 'lan'
option 'enabled' '1'
option 'sla_id' '0'
option 'sla_len' '8'
#config 'interface' 'pppoe-wan'
# option 'enabled' '1'
# option 'sla_id' '0'
# option 'sla_len' '0'
(Last edited by bogdanbiv on 26 Apr 2012, 05:53)