Chapter 20 DHCPv6 Configuration
As shown in
, enable DHCPv6 relay function on S1. S2 provides DHCPv6
server function. This method is usually used when there are many hosts needing DHCPv6
service.
Figure 20-4 DHCPv6 Relay Configuration Instance
The configuration requirements are described below.
l
Configure an IPv6 address, a DHCPv6 server address and DHCPv6 relay mode on
the interface of S1.
l
Configure an IPv6 address and DHCPv6 server mode on the interface of S2. Bind a
DHCPv6 policy on the interface of S2.
l
In global configuration mode on S2, enable DHCPv6, configure an IPv6 address pool,
a DHCPv6 pool and a DHCPv6 policy, and configure a routes pointing to interface
network segment of S1.
Configuration Thought
1.
Configure an IPv6 address on the interface of the relay and enable DHCPv6.
2.
Configure a relay server group on the relay. Bind the group in the relay policy.
3.
Configure relay agent mode on the interface connected to the PC on the relay.
4.
The configuration on the server is similar to that on the server in the "DHCPv6 Server
Configuration Instance". It is necessary to specify the IPv6 address of the relay
interface in the DHCPv6 policy.
5.
Configure a static route to the network segment of the relay interface on the server.
Configuration Commands
Configuration on S1:
/*Configure an interface*/
S1(config)#switchvlan-configuration
S1(config-swvlan)#interface gei-0/1/1/1
S1(config-swvlan-if-gei-0/1/1/1)#switchport access vlan 10
S1(config-swvlan-if-gei-0/1/1/1)#exit
S1(config-swvlan)#exit
S1(config-swvlan)#interface gei-0/1/1/2
S1(config-swvlan-if-gei-0/1/1/2)#switchport access vlan 20
S1(config-swvlan-if-gei-0/1/1/2)#exit
S1(config-swvlan)#exit
S1(config)#interface vlan10
S1(config-if)#ipv6 enable
S1(config-if)#ipv6 address 86::1:1/96
S1(config-if)#exit
20-13
SJ-20150114102049-011|2015-01-15 (R1.0)
ZTE Proprietary and Confidential