Sunday 11 August 2013

IPv6 Prefix Delegation

R1 Configuration

ipv6 unicast-routing
ipv6 dhcp pool test
!
ipv6 dhcp pool isp
 prefix-delegation pool cus
!
interface FastEthernet1/0
 ipv6 address FE80::1 link-local
 ipv6 address 2001:DB8:12::1/64
 ipv6 dhcp server isp
!
ipv6 local pool cus 2001:DB8:2::/49 56


R2 Configuration

ipv6 unicast-routing
!
interface FastEthernet1/0
 ipv6 address autoconfig default
 ipv6 enable
 ipv6 dhcp client pd from-isp
!
interface FastEthernet1/1
 ipv6 address from-isp ::1/64
 ipv6 enable


R3 Configuration

ipv6 unicast-routing
!
interface FastEthernet1/0
 no ip address
 speed auto
 duplex auto
 ipv6 address autoconfig default
 ipv6 enable


R1#show ipv6 route
S   2001:DB8:2::/56 [1/0]
     via FE80::C801:BFF:FE4C:1C, FastEthernet1/0
C   2001:DB8:12::/64 [0/0]
     via FastEthernet1/0, directly connected
L   2001:DB8:12::1/128 [0/0]
     via FastEthernet1/0, receive
L   FF00::/8 [0/0]
     via Null0, receive


R2#show ipv6 dhcp interface
FastEthernet1/0 is in client mode
  State is OPEN
  Renew will be sent in 3d11h
  List of known servers:
    Reachable via address: FE80::1
    DUID: 00030001CA000B4C0000
    Preference: 0
    Configuration parameters:
      IA PD: IA ID 0x00030001, T1 302400, T2 483840
        Prefix: 2001:DB8:2::/56
                preferred lifetime 604800, valid lifetime 2592000
                expires at Sep 10 2013 03:33 PM (2590703 seconds)
  Prefix name: from-isp
  Rapid-Commit: disabled


R3#show ipv6 route

S   ::/0 [2/0]
     via FE80::C801:BFF:FE4C:1D, FastEthernet1/0
C   2001:DB8:2::/64 [0/0]
     via FastEthernet1/0, directly connected
L   2001:DB8:2:0:C802:4FF:FED4:1C/128 [0/0]
     via FastEthernet1/0, receive
L   FF00::/8 [0/0]
     via Null0, receive

R3#ping 2001:db8:12::1
Sending 5, 100-byte ICMP Echos to 2001:DB8:12::1, timeout is 2 seconds:
!!!!!