CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure the Function of a DHCPv6 Relay

Configuration Condition

None

Configure a DHCPv6 Relay

If multiple subnets exist in a network and the hosts of the subnets need to obtain configuration information such as IPv6 address through the DHCPv6 server, the hosts of the subnets communicate with the DHCPv6 server through a DHCPv6 relay to obtain IPv6 addresses and other configuration information. If an interface is configured to work in DHCPv6 relay mode, after the interface receives DHCPv6 packets from a DHCPv6 client, it relays the packet to the specified DHCPv6 server. The DHCPv6 server then allocates an IP address.

Table 6-12 Configuring a DHCPv6 Relay

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Enter the interface configuration mode

interface interface-name

-

Configure the DHCPv6 relay function

ipv6 dhcp relay

Mandatory

By default, do not configure the DHCPv6 relay function.

Configure Source Address of DHCPv6 Relay

DHCPv6 relays the DHCPv6 client to the source address of the server packet. By default, use the address of the egress interface of the route to the DHCPv6 server. In some special environment, the DHCPv6 server cannot communicate with the address. Therefore, users can configure the source address of the DHCPv6 relay packet to the DHCPv6 server and the LinkAddr field in the packet through the ipv6 dhcp relay source-address command.

Table 6-13 Configure the source address of the DHCPv6 relay packet

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Enter the interface configuration mode

interface interface-name

-

Configure the source address of the DHCPv6 relay

ipv6 dhcp relay source-address ipv6-address

Mandatory

By default, do not configure the source address of the DHCPv6 relay packet.

Configure the Address of the DHCPv6 Server

When the interface receives the DHCPv6 packet sent by the DHCPv6 client, relay the packet to the configured DHCPv6 server, which distributes the IPv6 address.

Table 6-14 Configure the address of the DHCPv6 server

Step Command Description

Enter the global configuration mode.

configure terminal

-

Enter the interface configuration mode

interface interface-name

-

Configure the address of the DHCPv6 server

ipv6 dhcp relay server-address ipv6-address

Mandatory

By default, do not configure the address of the DHCPv6 server.

Configure DHCPv6 interface-id Option

The command is used to configure the interface-id option supported by DHCPv6 relay.

Table 6-15 Configure DHCPv6 interface-id option

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure DHCPv6 interface-id option

ipv6 dhcp relay interface-id [ interface | user-define defined-string ]

Mandatory

By default, do not configure DHCPv6 interface-id option.

Configure DHCPv6 remote-id Option

This command is used to configure the filling mode of the remote ID option supported by DHCPv6 relay.

Table 6-16 Configure DHCPv6 server address

Step

Command

Description

Enter the global configuration mode.

configure terminal

-

Configure the DHCPv6 remote-id option

ipv6 dhcp relay remote-id user-define defined-string

Mandatory

By default, do not configure the filling mode of remote-id option.