22.2.5 Through several IPv6 DHCP relays
- Points to note
-
The example below shows how to use the ipv6 dhcp relay destination command to specify the IPv6 addresses of the relay destinations.
Figure 22-5: Configuration that uses two or more IPv6 DHCP relays
Command examples
-
Configuration on Switch A
-
(config)# no service ipv6 dhcp
Disables the IPv6 DHCP server on the Switch.
-
(config)# service ipv6 dhcp relay
Enables the IPv6 DHCP relay on the Switch.
-
(config)# interface vlan 2
(config-if)# ipv6 dhcp relay destination 3ffe:100::2
Sets 3ffe:100::2 as the relay destination.
-
(config-if)# ipv6 dhcp relay hop-limit 0
(config-if)# exit
Sets 0 as the maximum hop count.
-
(config)# ipv6 dhcp relay static-route-setting
On the Switch, enables the automatic generation of routes from the DHCP servers to the client to which prefixes are distributed. Note that the routes are not configured until the prefixes have been completely distributed.
-
Configuration on Switch B
-
(config)# no service ipv6 dhcp
Disables the IPv6 DHCP server on the Switch.
-
(config)# service ipv6 dhcp relay
Enables the IPv6 DHCP relay on the Switch.
-
(config)# interface vlan 3
(config-if)# ipv6 dhcp relay destination 3ffe:200::2 3ffe:300::2
Sets 3ffe:200::2 and 3ffe:300::2 as relay destinations.
-
(config-if)# ipv6 dhcp relay hop-limit 1
(config-if)# exit
Sets the maximum number of hops to 1.