beautypg.com

Displaying and maintaining the dhcpv6 relay agent, Dhcpv6 relay agent configuration example, Network requirements – H3C Technologies H3C S10500 Series Switches User Manual

Page 145: Configuration procedure

background image

134

Displaying and maintaining the DHCPv6 relay

agent

To do…

Use the command…

Remarks

Display the DUID of the local device

display ipv6 dhcp duid [ | { begin | exclude |
include } regular-expression ]

Available in any view

Display DHCPv6 server addresses
specified on the DHCPv6 relay agent

display ipv6 dhcp relay server-address { all |
interface interface-type interface-number } [ |

{ begin | exclude | include }
regular-expression ]

Available in any view

Display packet statistics on the

DHCPv6 relay agent

display ipv6 dhcp relay statistics [ | { begin |

exclude | include } regular-expression ]

Available in any view

Clear packets statistics on the
DHCPv6 relay agent

reset ipv6 dhcp relay statistics

Available in user view

DHCPv6 relay agent configuration example

Network requirements

As shown in

Figure 57

, the network address prefix of DHCPv6 clients is 1::/64, and the IPv6 address of

the DHCPv6 server is 2::2/64. The DHCPv6 client and server need to communicate via a DHCPv6 relay

agent (Switch A).
Switch A acts as the gateway of network 1::/64. It sends RA messages to notify the hosts to obtain IPv6
addresses and other configuration parameters through DHCPv6.

Figure 57 DHCPv6 relay agent configuration

Configuration procedure

1.

Configure Switch A as a DHCPv6 relay agent

# Enable the IPv6 packet forwarding function.

system-view

[SwitchA] ipv6

# Configure the IPv6 addresses of VLAN-interface 2 and VLAN-interface 3 respectively.

[SwitchA] interface vlan-interface 2