Options

Prefix Delegation is killing me

SeekBytesSeekBytes Member Posts: 143
Hei gents.

I was trying to migrate to IPv6, but I am getting some issues with DHCPv6 and subnetting.


DHCPv6 Stateful implements prefix delegation that does not seem very obvious to me.

I have created a pool on R1, which as act central DHCP/DNS
R1(config)#ipv6 local pool CustomPool 2001:db8:12:1250::/60 64
! My overall purpose was to have networks from 1250 - 1252
! I thought that by setting the network ID to 60, I could modify only the last 4 bits in the last hexadecimal character
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 dhcp pool ISP
R1(config-dhcp)#dns-server 2001:db8:12:1250::1/64 !R1 e0/0 interface
R1(config-dhcp)#domain-name cisco.com
R1(config-dhcp)#prefix-delegation pool CustomPool lifetime infinite infinite
R1(config-dhcp)#exit
R1(config)#int e0/0
R1(config-if)#ipv6 address 2001:db8:12:1250::1/64
R1(config-if)#ipv6 enable
R1(config-if)#ipv6 dhcp server ISP
R1(config-if)#no shut

R1(config)#ipv6 unicast-routing
R2(config)#!it acts as dhcp clients and should subnet the main address 2001:db8:12:1250 to obtain networks
R2(config)#! 2001:db8:12:1251::/64 and 2001:db8:12:1251::/64
R2(config)#int e0/2
R2(config-if)#!interface facing the DHCP router
R2(config-if)#ipv6 address autoconfig default
R2(config-if)#ipv6 dhcp client pd prefix
R2(config-if)#ipv6 enable
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int e0/1
R2(config-if)#ipv6 address prefix ::1:0:0:0:1/64 ! notice here I tried to set the last bit of the network ID, but it does not work
R2(config-if)#I cannot change the last bit to obtain 125x
R2(config-if)#ipv6 enable
R2(config-if)#no shut

I hope my objective is clear to you. I was basically trying to receive a prefix, manipulate bits 60-64 which represent the last hex character in the last group of the Network ID part of the address and then leave to the client the option to generate the Host Id using EUI-64.

I would love to hear from you.

Kind Regards, Franky.
Sign In or Register to comment.