- Table of Contents
-
- 05-Layer 3 - IP Services Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DNS Commands
- 05-NAT Commands
- 06-IP Performance Optimization Commands
- 07-Adjacency Table Commands
- 08-UDP Helper Commands
- 09-IPv6 Basics Commands
- 10-DHCPv6 Commands
- 11-IPv6 DNS Commands
- 12-NAT-PT Commands
- 13-Tunneling Commands
- 14-GRE Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
10-DHCPv6 Commands | 72.72 KB |
Contents
display ipv6 dhcp relay server-address
display ipv6 dhcp relay statistics
ipv6 dhcp relay server-address
reset ipv6 dhcp relay statistics
display ipv6 dhcp duid
Syntax
display ipv6 dhcp duid [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display ipv6 dhcp duid command to display the DUID of the local router.
Examples
# Display the DUID of the device.
<Sysname> display ipv6 dhcp duid
The DUID of this device: 0003-0001-00e0-fc00-5552
display ipv6 dhcp relay server-address
Syntax
display ipv6 dhcp relay server-address { all | interface interface-type interface-number } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Displays all DHCPv6 server address information.
interface interface-type interface-number: Displays DHCPv6 server address information of the specified interface.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display ipv6 dhcp relay server-address command to display information about DHCPv6 server addresses specified on the DHCPv6 relay agent.
Examples
# Display all the DHCPv6 server address information.
<Sysname> display ipv6 dhcp relay server-address all
Interface: GE3/1/1
Server address(es) Output Interface
1::1
FF02::1:2 GE3/1/3
Interface: GE3/1/2
Server address(es) Output Interface
1::1
FF02::1:2 GE3/1/3
# Display DHCPv6 server address information of interface GigabitEthernet 3/1/1.
<Sysname> display ipv6 dhcp relay server-address GigabitEthernet 3/1/1
Interface: GE3/1/1
Server address(es) Output Interface
1::1
FF02::1:2 GE3/1/3
Table 1 Output description
Field |
Description |
Interface |
Interface that serves as the DHCPv6 relay agent |
Server address(es) |
DHCPv6 server address(es) specified on the interface |
Output Interface |
Outgoing interface of DHCPv6 packets |
display ipv6 dhcp relay statistics
Syntax
display ipv6 dhcp relay statistics [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use the display ipv6 dhcp relay statistics command to display packet statistics on the DHCPv6 relay agent.
Related commands: reset ipv6 dhcp relay statistics.
Examples
# Display packet statistics on the DHCPv6 relay agent.
<Sysname> display ipv6 dhcp relay statistics
Packets dropped : 4
Error : 4
Excess of rate limit : 0
Packets received : 14
SOLICIT : 0
REQUEST : 0
CONFIRM : 0
RENEW : 0
REBIND : 0
RELEASE : 0
DECLINE : 0
INFORMATION-REQUEST : 7
RELAY-FORWARD : 0
RELAY-REPLY : 7
Packets sent : 14
ADVERTISE : 0
RECONFIGURE : 0
REPLY : 7
RELAY-FORWARD : 7
RELAY-REPLY : 0
Table 2 Output description
Field |
Description |
Packets dropped |
Number of discarded packets |
Error |
Number of discarded error packets |
Excess of rate limit |
Number of packets discarded due to excess of rate limit |
Packets received |
Number of received packets |
SOLICIT |
Number of received solicit packets |
REQUEST |
Number of received request packets |
CONFIRM |
Number of received confirm packets |
RENEW |
Number of received renew packets |
REBIND |
Number of received rebind packets |
RELEASE |
Number of received release packets |
DECLINE |
Number of received decline packets |
INFORMATION-REQUEST |
Number of received information request packets |
RELAY-FORWARD |
Number of received relay-forward packets |
RELAY-REPLY |
Number of received relay-reply packets |
Packets sent |
Number of sent packets |
ADVERTISE |
Number of sent advertise packets |
RECONFIGURE |
Number of sent reconfigure packets |
REPLY |
Number of sent reply packets |
RELAY-FORWARD |
Number of sent Relay-forward packets |
RELAY-REPLY |
Number of sent Relay-reply packets |
ipv6 dhcp relay server-address
Syntax
ipv6 dhcp relay server-address ipv6-address [ interface interface-type interface-number ]
undo ipv6 dhcp relay server-address ipv6-address [ interface interface-type interface-number ]
View
Interface view
Default level
2: System level
Parameters
ipv6-address: IPv6 address of the DHCPv6 server.
interface interface-type interface-number: Specifies an outgoing interface for DHCPv6 packets.
Description
Use the ipv6 dhcp relay server-address command to enable DHCPv6 relay agent on the interface and specify a DHCPv6 server.
Use the undo ipv6 dhcp relay server-address command to remove the DHCPv6 server from the interface.
By default, DHCPv6 relay agent is disabled and no DHCPv6 server is specified on the interface.
Upon receiving a request from a DHCPv6 client, the interface that operates as a DHCPv6 relay agent encapsulates the request into a Relay-forward message and forwards the message to the specified DHCPv6 server, which then assigns an IPv6 address and other configuration parameters to the DHCPv6 client.
Note that:
· Executing the ipv6 dhcp relay server-address command repeatedly can specify multiple DHCPv6 servers, and up to eight DHCP servers can be specifed for an interface. After receiving requests from DHCPv6 clients, the DHCPv6 relay agent forwards the reqests to all the specified DHCPv6 servers.
· If the DHCPv6 server address is a link-local address or link-scoped multicast address on the local link, you need to specify an outgoing interface; otherwise, DHCPv6 packets may fail to be forwarded to the DHCPv6 server.
· Removing all the specified DHCPv6 server addresses from an interface with the undo ipv6 dhcp relay server-address command disables DHCPv6 relay agent on the interface.
Related commands: display ipv6 dhcp relay server-address.
Examples
# Enable DHCPv6 relay agent on GigabitEthernet 3/1/1, and specify the DHCPv6 server address as 2001:1::3.
<Sysname> system-view
[Sysname] interface GigabitEthernet 3/1/1
[Sysname-GigabitEthernet3/1/1] ipv6 dhcp relay server-address 2001:1::3
reset ipv6 dhcp relay statistics
Syntax
reset ipv6 dhcp relay statistics
View
User view
Default level
1: Monitor level
Parameters
None
Description
Use the reset ipv6 dhcp relay statistics command to clear packets statistics on the DHCPv6 relay agent.
After this command is executed, the packets statistics is displayed as 0 when you use the display ipv6 dhcp relay statistics command.
Related commands: display ipv6 dhcp relay statistics.
Examples
# Clear packet statistics on the DHCPv6 relay agent.
<Sysname> reset ipv6 dhcp relay statistics