Introduction
This document describes how to use the Prefix Delegation feature in order to configure the DHCPv6 (Dynamic Host Configuration Protocol for IPv6) server and client. This feature can be used to manage link, subnet, and site addressing changes.
In this example configuration, the router named DHCPv6 server has the Prefix Delegation feature enabled and acts as a delegating router. The delegating router automates the process of assigning prefixes to the requesting router (that is, the DHCP client). Once the server has delegated prefixes to the client, the interface that is connected to the local area network (LAN) of the requesting router has an IPv6 address using the received prefix block. The requesting router then announces this address in the Router Advertisement messages. The client routers (that is, the routers in the local network) can use the autoconfig option to pull the global IP address from the advertised Router Advertisement messages by the DHCP client.
Components Used
This document is not restricted to specific software and hardware versions.
The configurations in this document are based on the Cisco 3700 series router on Cisco IOS®Software Release software 12.4 (15)T 13.
Configure
In this section, you are presented with the information to configure the features described in this document.
Network Diagram
This document uses this network setup:
Configurations
This document uses these configurations:
- DHCP Serve Configuration
- DHCP Client Configuration
- Local LAN Clients 1 and 2 Configuration
DHCPSERVER#show running-config version 12.4 ! hostname DHCPSERVER ! ipv6 unicast-routing ipv6 dhcp pool dhcpv6 !--- The DHCP pool is named "dhcpv6." ! prefix-delegation pool dhcpv6-pool1 lifetime 1800 600 !--- The prefix delegation pool name is "dhcpv6-pool1." ! dns-server 2001:DB8:3000:3000::42 domain-name example.com ! interface Serial0/0 no ip address ipv6 address 2010:AB8:0:1::1/64 ipv6 enable ipv6 dhcp server dhcpv6 clock rate 2000000 ! ipv6 local pool dhcpv6-pool1 2001:DB8:1200::/40 48 !--- The prefix pool named dhcpv6-pool1 has a prefix of length !--- /40 from which it will delegate (sub)prefixes of length /48. ! end
DHCPCLIENT#show running-config version 12.4 ! hostname DHCPCLIENT ! ipv6 unicast-routing ! interface Serial0/0 no ip address ipv6 address autoconfig default !--- The autoconfig default adds a static ipv6 !--- default route pointing to upstream DHCP server. ! ipv6 enable ipv6 dhcp client pd prefix-from-provider !--- The DHCP client prefix delegation is !--- given the name prefix-from-provider. ! clock rate 2000000 ! interface FastEthernet0/0 no ip address duplex auto speed auto ipv6 address prefix-from-provider ::1:0:0:0:1/64 !--- The first 48 bits are imported from the delegated !--- prefix (2001:db8:1200) and the ::/64 is the client !--- identifier that gives the interface Fa0/1 the !--- global IPv6 address 2001:DB8:1200:1::1/64. ! ipv6 enable ! interface FastEthernet0/1 no ip address duplex auto speed auto ipv6 enable ipv6 address prefix-from-provider ::1/64 !--- Similarly, the global IPv6 address !--- for fa0/1 is 2001:DB8:1200::1. ! end
Client 1
CLIENT1#show running-config version 12.4 ! hostname CLIENT1 ! ipv6 unicast-routing ! interface FastEthernet0/0 no ip address duplex auto speed auto ipv6 address autoconfig !--- The clients can run autoconfig to get an IPv6 !--- address depending on the router advertisements !--- sent by the DHCP client (requesting router). ! ipv6 enable ! end
Client 2
CLIENT2#show running-config version 12.4 ! hostname CLIENT2 ! ipv6 unicast-routing ! interface FastEthernet0/0 no ip address duplex auto speed auto ipv6 address autoconfig ipv6 enable ! endVerify
Use the commands described in this section in order to verify the configuration.On the DHCP ServerThe output in this section shows that the number of active clients is 1 by using the command show ipv6 dhcp pool and also shows other configuration parameter information, such as domain name server address and preferred life time information.The show ipv6 dhcp binding command provides information about the clients, which includes their DUIDs, IAPDs, prefixes, and preferred and valid lifetimes.On the DHCP ClientThe show ipv6 dhcp interface command shows that interface S0/0 is configured in client mode and also shows the details of the DNS server address and the domain name that it received from the DHCP server.The show ipv6 interface command on the FastEthernet interfaces Fa0/0 and Fa0/1.Therefore we have studied about DHCPv6 using prefix delegation feature configuration.
No comments:
Post a Comment