- Table of Contents
-
- 04-Layer 3 Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DNS Commands
- 05-NAT Commands
- 06-IPv6 Basics Commands
- 07-DHCPv6 Commands
- 08-IPv6 DNS Commands
- 09-Adjacency Table Commands
- 10-Flow Classification Commands
- 11-IP Performance Optimization Commands
- 12-IPv6 Application Commands
- 13-IP Routing Basics Commands
- 14-Static Routing Commands
- 15-IPv6 Static Routing Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-DHCPv6 Commands | 181.12 KB |
DHCPv6 common configuration commands
DHCPv6 server configuration commands
display ipv6 dhcp server pd-in-use
display ipv6 dhcp server statistics
reset ipv6 dhcp server pd-in-use
reset ipv6 dhcp server statistics
DHCPv6 relay agent configuration commands
display ipv6 dhcp relay server-address
display ipv6 dhcp relay statistics
ipv6 dhcp relay server-address
reset ipv6 dhcp relay statistics
DHCPv6 client configuration commands
display ipv6 dhcp client statistics
reset ipv6 dhcp client statistics
DHCPv6 common configuration commands
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 display ipv6 dhcp duid to display the DUID of the local device.
Examples
# Display the DUID of the device.
<Sysname> display ipv6 dhcp duid
The DUID of this device: 0003-0001-00e0-fc00-5552
DHCPv6 server configuration commands
display ipv6 dhcp pool
Syntax
display ipv6 dhcp pool [ pool-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
pool-number: Address pool number, in the range of 1 to 128. If no pool number is specified, all address pool information is displayed.
|: 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 display ipv6 dhcp pool to display DHCPv6 address pool information.
Examples
# Display all address pool information.
<Sysname> display ipv6 dhcp pool
Pool Prefix-pool
1 1
2 Not configured
Table 1 Command output
Field |
Description |
Pool |
DHCPv6 address pool number |
Prefix-pool |
Prefix pool referenced by the address pool. If no referenced prefix pool is specified, this field displays "Not configured". |
# Display detailed information about a specified address pool.
<Sysname> display ipv6 dhcp pool 1
DHCPv6 pool: 1
Static bindings:
DUID: 0003000100E0FC000001
IAID: 0000003F
Prefix: 2::/64
preferred lifetime 604800, valid lifetime 2592000
Prefix pool: 1
preferred lifetime 201600, valid lifetime 864000
DNS server address:
2::2
2::3
Domain name: aaa.com
SIP server address:
5::1
SIP server domain name:
bbb.com
Table 2 Command output
Field |
Description |
DHCPv6 pool |
DHCPv6 address pool number |
Static bindings |
Static prefix information configured in the address pool. If no static prefix is configured, this field is not displayed. |
DUID |
Client DUID |
IAID |
Client IAID. If the IAID is not configured, this field displays "Not configured". |
Prefix |
IPv6 address prefix |
preferred lifetime |
Preferred lifetime of the prefix, in seconds |
valid lifetime |
Valid lifetime of the prefix, in seconds |
Prefix Pool |
Prefix pool referenced by the address pool. If no prefix pool is referenced, this field is not displayed. |
DNS server address |
DNS server address. If no DNS server address is configured, this field is not displayed. |
Domain name |
Domain name. If no domain name is configured, this field is not displayed. |
SIP server address |
SIP server address. If no SIP server address is configured, this field is not displayed. |
SIP server domain name |
Domain name of the SIP server. If no domain name of the SIP server is configured, this field is not displayed. |
display ipv6 dhcp prefix-pool
Syntax
display ipv6 dhcp prefix-pool [ prefix-pool-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
prefix-pool-number: Prefix pool number, in the range of 1 to 128. If no prefix pool number is specified, the brief information of all prefix pools is displayed.
|: 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 display ipv6 dhcp prefix-pool to display prefix pool information.
Examples
# Display brief information about all prefix pools.
<Sysname> display ipv6 dhcp prefix-pool
Prefix-pool Prefix Available In-use Static
1 5::/64 64 0 0
# Display details about the specified prefix pool.
<Sysname> display ipv6 dhcp prefix-pool 1
Prefix: 5::/64
Assigned length: 70
Total prefix number: 64
Available: 64
In-use: 0
Static: 0
Table 3 Command output
Field |
Description |
Prefix-pool |
Prefix pool number |
Prefix |
Prefix contained in the prefix pool |
Available |
Number of idle prefixes |
In-use |
Number of assigned prefixes |
Static |
Number of static prefixes |
Assigned length |
Length of prefixes to be assigned |
Total prefix number |
Total number of prefixes |
display ipv6 dhcp server
Syntax
display ipv6 dhcp server [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Displays the DHCPv6 server information of the interface specified by interface type and number. If no interface is specified, the DHCPv6 server information of all interfaces is displayed.
|: 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 display ipv6 dhcp server to display DHCPv6 server information.
Examples
# Display the DHCPv6 server information of all interfaces.
<Sysname> display ipv6 dhcp server
DHCPv6 server status: Enabled
Interface Pool
Vlan-interface2 1
Vlan-interface3 2
# Display the DHCPv6 server information on the specified interface.
<Sysname> display ipv6 dhcp server interface vlan-interface 2
Using pool: 1
Preference value: 0
Allow-hint: Enabled
Rapid-commit: Disabled
Table 4 Command output
Field |
Description |
DHCPv6 server status |
DHCPv6 server status, which can be "Enabled" or "Disabled". |
Interface |
Interface on which the DHCPv6 server is enabled |
Pool |
Address pool applied to the interface |
Using pool |
Address pool applied to the interface |
Preference value |
Server priority in the DHCPv6 Advertise message. The value ranges from 0 to 255. |
Allow-hint |
Support for desired prefix assignment. The status can be "Enabled" or "Disabled." |
Rapid-commit |
Support for rapid prefix assignment. The status can be "Enabled" or "Disabled." |
display ipv6 dhcp server pd-in-use
Syntax
display ipv6 dhcp server pd-in-use { all | pool pool-number | prefix prefix/prefix-len | prefix-pool prefix-pool-number } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Displays all PD information.
pool pool-number: Displays the PD information of the address pool specified by the pool number. The value ranges from 1 to 128.
prefix prefix/prefix-len: Displays the PD information of the specified prefix. The prefix/prefix-len indicates the IPv6 prefix and prefix length. The value of the prefix length ranges from 1 to 128.
prefix-pool prefix-pool-number: Displays the PD information of the prefix pool specified by the prefix pool number. The value range of the prefix pool number depends on the device model.
|: 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 display ipv6 dhcp server pd-in-use to display PD information.
The PD information generated for static prefixes is not displayed when you display the PD information of a specific prefix pool.
Examples
# Display all PD information.
<Sysname> display ipv6 dhcp server pd-in-use all
Total number = 3
Prefix Type Pool Lease-expiration
2:1::/24 Auto(O) 1 Jul 10 2008 19:45:01
1:1::/64 Static(F) 2 Not available
1:2::/64 Static(O) 3 Oct 9 2008 09:23:31
# Display the PD information of the specified address pool.
<Sysname> display ipv6 dhcp server pd-in-use pool 1
Total number = 2
Prefix Type Pool Lease-expiration
2:1::/24 Auto(O) 1 Jul 10 2008 22:22:22
3:1::/64 Static(C) 1 Jan 1 2008 11:11:11
# Display the PD information of the specified prefix pool.
<Sysname> display ipv6 dhcp server pd-in-use prefix-pool 1
Total number = 1
Prefix Type Pool Lease-expiration
2:1:1:2::/64 Auto(C) 2 Jan 1 2008 14:45:56
# Display the PD information of the specified prefix.
<Sysname> display ipv6 dhcp server pd-in-use prefix 2:1::3/24
Pool: 1
Prefix pool: 1
Client: FE80::C800:CFF:FE18:0
Type: Auto(O)
DUID: 00030001CA000C180000
IAID: 0x00030001
Prefix: 2:1::/24
Preferred lifetime 400, valid lifetime 500
expires at Jul 10 2008 09:45:01 (288 seconds left)
Table 5 Command output
Field |
Description |
Total number |
Total number of PDs |
Prefix |
Assigned IPv6 prefix |
Type |
PD type, which can be: · Static(F)—Generated for the static prefix that has not been assigned to the client, and is also called the ineffective static PD. · Static(O)—Temporarily generated for the static prefix to be assigned when the server receives a Solicit message from the corresponding client. · Static(C)—Generated for the static prefix that is officially assigned. · Auto(O)—Temporarily generated for the prefix selected from a prefix pool after the server receives a Solicit message from the client. · Auto(C)—Generated for the prefix to be assigned officially after the server receives a Request message, or the server supporting rapid assignment receives the Solicit message containing a Rapid Commit option. |
Pool |
Address pool to which the PD belongs |
Lease-expiration |
Lease expiration time. If the lease will expire after the year 2100, this field displays "after 2100." For the ineffective static PD, this field displays "Not available." |
Prefix Pool |
Prefix pool to which the PD belongs. For the static PD, this field displays null. |
Client |
IPv6 address of the DHCPv6 client. For the ineffective static PD, this field displays null. |
DUID |
Client DUID |
IAID |
Client IAID. For the ineffective static PD with no IAID configured, this field displays null. |
preferred lifetime |
Preferred lifetime of the prefix, in seconds. |
valid lifetime |
Valid lifetime of the prefix, in seconds. |
expires at |
Lease expiration time. If the lease will expire after the year 2100, this field displays "expires after 2100." |
display ipv6 dhcp server statistics
Syntax
display ipv6 dhcp server 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 display ipv6 dhcp server statistics to display packet statistics on the DHCPv6 server.
Examples
# Display packet statistics on the DHCPv6 server.
<Sysname> display ipv6 dhcp server statistics
Packets received : 0
SOLICIT : 0
REQUEST : 0
CONFIRM : 0
RENEW : 0
REBIND : 0
RELEASE : 0
DECLINE : 0
INFORMATION-REQUEST: 0
RELAY-FORWARD : 0
Packets dropped : 0
Packets sent : 0
ADVERTISE : 0
RECONFIGURE : 0
REPLY : 0
RELAY-REPLY : 0
Table 6 Command output
Field |
Description |
Packets received |
Number of messages received by the DHCPv6 server. The message types include: · SOLICIT · REQUEST · CONFIRM · RENEW · REBIND · RELEASE · DECLINE · INFORMATION-REQUEST · RELAY-FORWARD |
Packets dropped |
Number of packets discarded |
Packets sent |
Number of messages sent out from the DHCPv6 server. The message types include: · ADVERTISE · RECONFIGURE · REPLY · RELAY-REPLY |
dns-server
Syntax
dns-server ipv6-address
undo dns-server ipv6-address
View
DHCPv6 address pool view
Default level
2: System level
Parameters
ipv6-address: IPv6 address of a DNS server.
Description
Use dns-server to specify a DNS server for the client.
Use undo dns-server to remove the specified DNS server.
No DNS server address is specified by default.
Note the following:
· You can configure multiple DNS server addresses by using the dns-server command repeatedly.
· You can configure up to eight DNS servers in an address pool.
· The precedence of the specified DNS servers depends on the configuration sequence. The formerly specified DNS server takes precedence over the latter one.
Examples
# Specify the DNS server address to be assigned to the client as 2:2::3.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1] dns-server 2:2::3
domain-name
Syntax
domain-name domain-name
undo domain-name
View
DHCPv6 address pool view
Default level
2: System level
Parameters
domain-name: Domain name, a string of 1 to 50 characters.
Description
Use domain-name to configure the domain name for the client.
Use undo domain-name to remove the configuration.
By default, no domain name is configured for the client.
Note the following:
· You can configure only one domain name in an address pool.
· If you repeatedly use the domain-name command, the latest configuration will overwrite the previous one.
Examples
# Configure the domain name to be assigned to the client as aaa.com.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1] domain-name aaa.com
ds-lite address
Syntax
ds-lite address ipv6-address
undo ds-lite address
View
DHCPv6 address pool view
Default level
2: System level
Parameters
ipv6-address: IPv6 address of the Address Family Translation Router (AFTR).
Description
Use ds-lite address to specify the address of the AFTR.
Use undo ds-lite address to delete the address of the AFTR.
The address of the AFTR is not specified by default.
When you configure a DS-lite tunnel, the Customer Premise Equipment (CPE) sends a DHCPv6 request to obtain the address of the AFTR. Upon receiving the request, the DHCPv6 server sends the address of the AFTR to the CPE.
You can specify only one AFTR address for an address pool. The latest setting overrides the previous one.
Examples
# Specify the AFTR address as 2::1.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1] ds-lite address 2::1
ipv6 dhcp pool
Syntax
ipv6 dhcp pool pool-number
undo ipv6 dhcp pool pool-number
View
System view
Default level
2: System level
Parameters
pool-number: Address pool number, in the range of 1 to 128.
Description
Use ipv6 dhcp pool to create a DHCPv6 address pool and enter DHCPv6 address pool view, or enter DHCPv6 address pool view if the specified address pool already exists.
Use undo ipv6 dhcp pool to remove the address pool.
No DHCPv6 address pool is configured by default.
Examples
# Create DHCPv6 address pool 1 and enter its view.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1]
ipv6 dhcp prefix-pool
Syntax
ipv6 dhcp prefix-pool prefix-pool-number prefix prefix/prefix-len assign-len assign-len
undo ipv6 dhcp prefix-pool prefix-pool-number
View
System view
Default level
2: System level
Parameters
prefix-pool-number: Prefix pool number, in the range of 1 to 128.
prefix prefix/prefix-len: Specifies the prefix contained in the specified prefix pool. The prefix indicates the IPv6 prefix. The prefix-len indicates the prefix length, in the range of 1 to 128.
assign-len assign-len: Specifies the length of the prefix assigned. The value ranges from 1 to 128. The assign-len must be higher than or equal to the prefix-len, and the difference between them must be less than or equal to 16.
Description
Use ipv6 dhcp prefix-pool to create a prefix pool and specify the prefix and the length of the prefix assigned.
Use undo ipv6 dhcp prefix-pool to remove the prefix pool.
No prefix pool is configured by default.
Note the following:
· The prefix ranges of the prefix pools cannot overlap.
· You cannot modify an existing prefix pool.
· Removing a prefix pool will clear all PDs assigned from the prefix pool.
Examples
# Create prefix pool 1 that contains the prefix 2001:0410::/32 and specify the length of prefixes to be assigned as 42. Prefix pool 1 can assign 1024 prefixes in the range of 2001:0410::/42 to 2001:0410:FFC0::/42.
<Sysname> system-view
[Sysname] ipv6 dhcp prefix-pool 1 prefix 2001:0410::/32 assign-len 42
ipv6 dhcp server apply pool
Syntax
ipv6 dhcp server apply pool pool-number [ allow-hint | preference preference-value | rapid-commit ] *
undo ipv6 dhcp server apply pool
View
Interface view
Default level
2: System level
Parameters
pool-number: Address pool number, in the range of 1 to 128.
allow-hint: Configure the server to support desired prefix assignment. If this keyword is not specified, the server does not support assignment of desired prefixes.
preference preference-value: Specifies the server priority in Advertise messages, in the range of 0 to 255. The default value is 0. A higher value indicates a higher priority.
rapid-commit: Configure the server to support rapid prefix assignment. If this keyword is not specified, the server does not support rapid prefix assignment.
Description
Use ipv6 dhcp server apply pool to apply a DHCPv6 address pool to the interface.
Use undo ipv6 dhcp server apply pool to remove the configuration.
No address pool is applied to an interface by default.
Upon receiving a request from a DHCPv6 client on an interface, the DHCPv6 server selects a prefix from the address pool applied to the interface and assigns it to the client.
With the allow-hint keyword specified, the server assigns the desired prefix to the requesting client. If the desired prefix is not included in the assignable prefix pool of the interface, or is already assigned to another client, the server ignores the desired prefix and assigns the client a prefix from the idle prefixes.
Note the following:
· An interface cannot serve as a DHCPv6 server and DHCPv6 relay agent at the same time. It is not recommended that you enable the DHCPv6 server and DHCPv6 client on the same interface.
· Only one address pool can be applied to an interface.
· You can apply a non-existing address pool to an interface. However, the server cannot assign any prefix or other configuration information from the address pool until the address pool is created.
· You cannot modify the address pool applied to an interface or parameters such as the server priority by using the ipv6 dhcp server apply pool command. You need to remove the applied address pool before you can apply another address pool to the interface or modify parameters such as the server priority.
Examples
# Apply prefix pool 1 to VLAN-interface 2, configure the server to support desired prefix assignment and rapid prefix assignment, and set the highest priority of 255.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] ipv6 dhcp server apply pool 1 allow-hint preference 255 rapid-commit
ipv6 dhcp server enable
Syntax
ipv6 dhcp server enable
undo ipv6 dhcp server enable
View
System view
Default level
2: System level
Parameters
None
Description
Use ipv6 dhcp server enable to enable the DHCPv6 server.
Use undo ipv6 dhcp server enable to disable the DHCPv6 server.
By default, the DHCPv6 server is disabled.
Other DHCPv6 server related configuration is effective only when the DHCPv6 server is enabled.
Examples
# Enable the DHCPv6 server.
<Sysname> system-view
[Sysname] ipv6 dhcp server enable
prefix-pool
Syntax
prefix-pool prefix-pool-number [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]
undo prefix-pool
View
DHCPv6 address pool view
Default level
2: System level
Parameters
prefix-pool-number: Prefix pool number, in the range of 1 to 128.
preferred-lifetime preferred-lifetime: Specifies the preferred lifetime of prefixes to be assigned. The value ranges from 60 to 4294967295, in seconds. The default value is 604800 seconds, that is, seven days.
valid-lifetime valid-lifetime: Specifies the valid lifetime of the prefixes to be assigned. The value ranges from 60 to 4294967295, in seconds. The default value is 2592000 seconds, that is, 30 days. The valid lifetime must be greater than or equal to the preferred lifetime.
Description
Use prefix-pool to apply a prefix pool to the DHCPv6 address pool, so that the DHCPv6 server can dynamically select a prefix from the prefix pool and assign it to the client.
Use undo prefix-pool to remove the configuration.
No prefix pool is referenced by an address pool by default.
Note the following:
· Only one prefix pool can be referenced by an address pool.
· A non-existing prefix pool can be referenced by an address pool. However, no prefix is available in the prefix pool for dynamic prefix assignment until the prefix pool is created.
· You cannot modify the prefix pool referenced by an address pool, or the preferred lifetime or valid lifetime by using the prefix-pool command. You need to remove the configuration before you can have another prefix pool referenced by the address pool, or modify the preferred lifetime and valid lifetime.
Examples
# Apply prefix pool 1 to address pool 1, and use the default preferred lifetime and valid lifetime.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1] prefix-pool 1
# Apply prefix pool 1 to address pool 1, and set the valid lifetime to three days, the preferred lifetime to one day.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1] prefix-pool 1 preferred-lifetime 86400 valid-lifetime 259200
reset ipv6 dhcp server pd-in-use
Syntax
reset ipv6 dhcp server pd-in-use { all | pool pool-number | prefix prefix/prefix-len }
View
User view
Default level
1: Monitor level
Parameters
all: Clears all the PD information.
pool pool-number: Clears the PD information of the address pool specified by the pool number. The value ranges from 1 to 128.
prefix prefix/prefix-len: Clears the PD information of the specified prefix. The prefix/prefix-len indicates the IPv6 prefix and prefix length. The value of the prefix length ranges from 1 to 128.
Description
Use reset ipv6 dhcp server pd-in-use to clear the PD information of the DHCPv6 server.
After the PD information of assigned static prefixes is removed, the PDs become ineffective static PDs.
Examples
# Clear all the PD information.
<Sysname> reset ipv6 dhcp server pd-in-use all
# Clear the PD information of the specified address pool.
<Sysname> reset ipv6 dhcp server pd-in-use pool 1
# Clear the PD information of the specified prefix.
<Sysname> reset ipv6 dhcp server pd-in-use prefix 2001:0:0:1::/64
reset ipv6 dhcp server statistics
Syntax
reset ipv6 dhcp server statistics
View
User view
Default level
1: Monitor level
Parameters
None
Description
Use reset ipv6 dhcp server statistics to remove packet statistics on the DHCPv6 server.
Examples
# Clear packet statistics on the DHCPv6 server.
<Sysname> reset ipv6 dhcp server statistics
sip-server
Syntax
sip-server { address ipv6-address | domain-name domain-name }
undo sip-server { address ipv6-address | domain-name domain-name }
View
DHCPv6 address pool view
Default level
2: System level
Parameters
address ipv6-address: Specifies the IPv6 address of a SIP server.
domain-name domain-name: Specifies the domain name of a SIP server. The domain name is a string of 1 to 50 characters.
Description
Use sip-server to configure the IPv6 address or domain name of a SIP server for the client.
Use undo sip-server to remove the configuration.
No SIP server address or domain name is specified by default.
Note the following:
· You can configure up to eight SIP server addresses and eight SIP server domain names in an address pool. The priorities of the specified SIP servers depend on the configuration sequence. The formerly specified SIP server takes precedence over the latter one.
· If you repeatedly use the sip-server command, the latest configuration will not overwrite the previous one.
Examples
# Specify the SIP server address as 2:2::4 for the client.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1] sip-server address 2:2::4
# Specify the domain name of the SIP server as bbb.com for the client.
[Sysname-dhcp6-pool-1] sip-server domain-name bbb.com
static-bind prefix
Syntax
static-bind prefix prefix/prefix-len duid duid [ iaid iaid ] [ preferred-lifetime preferred-lifetime valid-lifetime valid-lifetime ]
undo static-bind prefix prefix/prefix-len
View
DHCPv6 address pool view
Default level
2: System level
Parameters
prefix/prefix-len: Static prefix and prefix length.
duid duid: Client DUID. The value is an even hexadecimal number, in the range of 2 to 256.
iaid iaid: Client IAID. The value is a hexadecimal number in the range of 0 to FFFFFFFF. If no IAID is specified, the server does not match against the client IAID for prefix assignment.
preferred-lifetime preferred-lifetime: Specifies the preferred lifetime of the prefix to be assigned. The value ranges from 60 to 4294967295, in seconds. The default value is 604800 seconds, that is, seven days.
valid-lifetime valid-lifetime: Specifies the valid lifetime of the prefix to be assigned. The value ranges from 60 to 4294967295, in seconds. The default value is 2592000 seconds, that is, 30 days. The valid lifetime must be greater than or equal to the preferred lifetime.
Description
Use static-bind prefix to configure a static prefix.
Use undo static-bind prefix to remove a static prefix.
No static prefix is configured by default.
After a static prefix is bound to a client, the configuration cannot be modified. You need to delete the static prefix before you can bind the prefix to another client.
Examples
# Configure static prefix 2001:0410::/35 in address pool 1, and specify the DUID as 00030001CA0006A400, the IAID as A1A1A1A1, the preferred lifetime as one day, and the valid lifetime as three days.
<Sysname> system-view
[Sysname] ipv6 dhcp pool 1
[Sysname-dhcp6-pool-1] static-bind prefix 2001:0410::/35 duid 00030001CA0006A400 iaid A1A1A1A1 preferred-lifetime 86400 valid-lifetime 259200
DHCPv6 relay agent configuration commands
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 display ipv6 dhcp relay server-address 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: Vlan2
Server address(es) Output Interface
1::1
FF02::1:2 Vlan4
Interface: Vlan3
Server address(es) Output Interface
1::1
FF02::1:2 Vlan4
# Display DHCPv6 server address information of VLAN-interface 2.
<Sysname> display ipv6 dhcp relay server-address interface vlan-interface 2
Interface: Vlan2
Server address(es) Output Interface
1::1
FF02::1:2 Vlan4
Table 7 Command output
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 display ipv6 dhcp relay statistics 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 8 Command output
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 ipv6 dhcp relay server-address to enable DHCPv6 relay agent on the interface and specify a DHCPv6 server.
Use undo ipv6 dhcp relay server-address 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 the following:
· Executing the ipv6 dhcp relay server-address command repeatedly can specify multiple DHCPv6 servers, and up to eight DHCP servers can be specified for an interface. After receiving requests from DHCPv6 clients, the DHCPv6 relay agent forwards the requests 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.
· After you remove all the specified DHCPv6 servers from an interface with the undo ipv6 dhcp relay server-address command, DHCPv6 relay agent is disabled on the interface.
· An interface cannot serve as a DHCPv6 client and DHCPv6 relay agent at the same time.
Related commands: display ipv6 dhcp relay server-address.
Examples
# Enable DHCPv6 relay agent on VLAN-interface 2, and specify the DHCPv6 server address as 2001:1::3.
<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] 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 reset ipv6 dhcp relay statistics 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
DHCPv6 client configuration commands
display ipv6 dhcp client
Syntax
display ipv6 dhcp client [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Displays the DHCPv6 client information of a 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 display ipv6 dhcp client to display DHCPv6 client information.
With no parameters specified, the DHCPv6 client information of all the interfaces will be displayed.
Examples
# Display the DHCPv6 client information of VLAN-interface 2.
<Sysname> display ipv6 dhcp client interface vlan-interface 2
Vlan-interface2 is in stateless DHCPv6 client mode
State is OPEN
Preferred Server:
Reachable via address : FE80::213:7FFF:FEF6:C818
DUID : 0003000100137ff6c818
DNS servers : 1:2:3::5
1:2:4::7
Domain names : abc.com
Table 9 Command output
Field |
Description |
in stateless DHCPv6 client mode |
Indicates the client is in the stateless DHCPv6 configuration mode. |
State is OPEN |
Current state of the DHCPv6 client: · INIT—After enabled, the DHCPv6 client enters the INIT state. · IDLE—After receiving an RA message with the "M" flag set to 0 and "O" flag set to 1 and enabled with stateless DHCPv6, the DHCPv6 client enters the IDLE state. · INFO-REQUESTING—The DHCPv6 client is requesting configuration information. · OPEN—The DHCPv6 client successfully obtained configuration parameters and completed stateless configuration based on the obtained parameters. |
Preferred Server |
Information about the DHCPv6 server selected by the DHCPv6 client |
Reachable via address |
Reachable address, which is the link local address of the DHCPv6 server or relay agent. |
DUID |
DHCP unique identifier (DUID) of the DHCPv6 server |
DNS servers |
DNS server address sent by the DHCPv6 server |
Domain names |
Domain name information sent by the DHCPv6 server |
display ipv6 dhcp client statistics
Syntax
display ipv6 dhcp client statistics [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Displays the DHCPv6 client statistics of a 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 display ipv6 dhcp client statistics to display DHCPv6 client statistics.
With no parameters specified, DHCPv6 client statistics of all the interfaces will be displayed.
Related commands: reset ipv6 dhcp client statistics.
Examples
# Display DHCPv6 client statistics of VLAN-interface 2.
<Sysname> display ipv6 dhcp client statistics interface vlan-interface 2
Interface : Vlan-interface2
Packets Received : 1
Reply : 1
Advertise : 0
Reconfigure : 0
Invalid : 0
Packets Sent : 5
Solicit : 0
Request : 0
Confirm : 0
Renew : 0
Rebind : 0
Information-request : 5
Release : 0
Decline : 0
Table 10 Command output
Field |
Description |
Interface |
Interface that servers as the DHCPv6 client |
Packets Received |
Number of received packets |
Reply |
Number of received reply packets |
Advertise |
Number of received advertise packets |
Reconfigure |
Number of received reconfigure packets |
Invalid |
Number of invalid packets |
Packets Sent |
Number of sent packets |
Solicit |
Number of sent solicit packets |
Request |
Number of sent request packets |
Confirm |
Number of sent confirm packets |
Renew |
Number of sent renew packets |
Rebind |
Number of sent rebind packets |
Information-request |
Number of sent information request packets |
Release |
Number of sent release packets |
Decline |
Number of sent decline packets |
reset ipv6 dhcp client statistics
Syntax
reset ipv6 dhcp client statistics [ interface interface-type interface-number ]
View
User view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Clears DHCPv6 client statistics of a specified interface.
Description
Use reset ipv6 dhcp client statistics to clear DHCPv6 client statistics.
With no parameters specified, DHCPv6 client statistics of all the interfaces will be cleared.
After this command is executed, the packets statistics is displayed as 0 when you use the display ipv6 dhcp client statistics command.
Related commands: display ipv6 dhcp client statistics.
Examples
# Clear DHCPv6 client statistics of all the interfaces.
<Sysname> reset ipv6 dhcp client statistics