This section describes the commands you use to configure the DHCPv6 server on the system and to view DHCPv6 information.
NOTE: These commands are applicable only for TJ1400P-M3 switch.
service dhcpv6
This command enables DHCPv6 configuration on the router.
Default: enabled
Format: service dhcpv6
Mode: Global Config
no service dhcpv6
This command disables DHCPv6 configuration on router.
Format: no service dhcpv6
Mode: Global Config
ipv6 dhcp server
Use this command to configure DHCPv6 server functionality on an interface or range of interfaces. The pool-name is the DHCPv6 pool containing stateless and/or prefix delegation parameters, rapid-commit is an option that allows for an abbreviated exchange between the client and server, and pref-value is a value used by clients to determine preference between multiple DHCPv6 servers. For a particular interface DHCPv6 server and DHCPv6 relay functions are mutually exclusive.
Format: ipv6 dhcp server pool-name [rapid-commit] [preference pref-value]
Mode: Interface Config
ipv6 dhcp relay destination
Use this command to configure an interface for DHCPv6 relay functionality on an interface or range of interfaces. Use the destination keyword to set the relay server IPv6 address. The relay-address parameter is an IPv6 address of a DHCPv6 relay server. Use the interface keyword to set the relay server interface. The relay-interface parameter is an interface (unit/slot/port) to reach a relay server. The optional remote-id is the Relay Agent Information Option "remote ID" sub-option to be added to relayed messages.This can either be the special keyword duid-ifid, which causes the "remote ID" to be derived from the DHCPv6 server DUID and the relay interface number, or it can be specified as a user-defined string.
NOTE: If relay-address is an IPv6 global address, then relay-interface is not required. If relay-address is a link-local or multicast address, then relay-interface is required. Finally, if you do not specify a value for relay-address, then you must specify a value for relay-interface and the DHCPV6-ALL-AGENTS multicast address (i.e. FF02::1:2) is used to relay DHCPv6 messages to the relay server.
Use this command from Global Config mode to enter IPv6 DHCP Pool Config mode. Use the exit command to return to Global Config mode. To return to the User EXEC mode, enter CTRL+Z. The pool-name should be less than 31 alpha-numeric characters. DHCPv6 pools are used to specify information for DHCPv6 server to distribute to DHCPv6 clients. These pools are shared between multiple interfaces over which DHCPv6 server capabilities are configured.
Format: ipv6 dhcp pool pool-name
Mode: Global Config
no ipv6 dhcp pool
This command removes the specified DHCPv6 pool.
Format: no ipv6 dhcp pool pool-name
Mode: Global Config
domain-name (IPv6)
This command sets the DNS domain name which is provided to DHCPv6 client by DHCPv6 server. DNS domain name is configured for stateless server support. Domain name consist of no more than 31 alpha-numeric characters. DHCPv6 pool can have multiple number of domain names with maximum of 8.
Format: domain-name dns-domain-name
Mode: IPv6 DHCP Pool Config
This command will remove dhcpv6 domain name from dhcpv6 pool.
Format: no domain-name dns-domain-name
Mode: IPv6 DHCP Pool Config
dns-server (IPv6)
This command sets the ipv6 DNS server address which is provided to dhcpv6 client by dhcpv6 server. DNS server address is configured for stateless server support. DHCPv6 pool can have multiple number of domain names with maximum of 8.
Format: dns-server dns-server-address
Mode: IPv6 DHCP Pool Config
no dns-server
This command will remove DHCPv6 server address from DHCPv6 server.
Format: no dns-server dns-server-address
Mode: IPv6 DHCP Pool Config
prefix-delegation (IPv6)
Multiple IPv6 prefixes can be defined within a pool for distributing to specific DHCPv6 Prefix delegation clients. Prefix is the delegated IPv6 prefix. DUID is the client's unique DUID value (Example: 00:01:00:09:f8:79:4e:00:04:76:73:43:76'). Name is 31 characters textual client’s name which is useful for logging or tracing only. Valid lifetime is the valid lifetime for the delegated prefix in seconds and preferred lifetime is the preferred lifetime for the delegated prefix in seconds.
This command deletes a specific prefix-delegation client.
Format: no prefix-delegation prefix/prefix-delegation DUID
Mode: IPv6 DHCP Pool Config
show ipv6 dhcp
This command displays the DHCPv6 server name and status.
Format: show ipv6 dhcp
Mode: Privileged EXEC
DHCPv6 is Enabled (Disabled): The status of the DHCPv6 server
Server DUID: If configured, shows the DHCPv6 unique identifier.
show ipv6 dhcp statistics
This command displays the IPv6 DHCP statistics for all interfaces.
Format: show ipv6 dhcp statistics
Mode: Privileged EXEC
DHCPv6 Solicit Packets Received: Number of solicit received statistics.
DHCPv6 Request Packets Received: Number of request received statistics.
DHCPv6 Confirm Packets Received: Number of confirm received statistics.
DHCPv6 Renew Packets Received: Number of renew received statistics.
DHCPv6 Rebind Packets Received: Number of rebind received statistics.
DHCPv6 Release Packets Received: Number of release received statistics.
DHCPv6 Decline Packets Received: Number of decline received statistics.
DHCPv6 Inform Packets Received: Number of inform received statistics.
DHCPv6 Relay-forward Packets Received: Number of relay forward received statistics.
DHCPv6 Relay-reply Packets Received: Number of relay-reply received statistics.
DHCPv6 Malformed Packets Received: Number of malformed packets statistics.
Received DHCPv6 Packets Discarded: Number of DHCP discarded statistics.
Total DHCPv6 Packets Received: Total number of DHCPv6 received statistics
DHCPv6 Advertisement Packets Transmitted: Number of advertise sent statistics.
DHCPv6 Reply Packets Transmitted: Number of reply sent statistics.
DHCPv6 Reconfig Packets Transmitted: Number of reconfigure sent statistics.
DHCPv6 Relay-reply Packets Transmitted: Number of relay-reply sent statistics.
DHCPv6 Relay-forward Packets Transmitted: Number of relay-forward sent statistics.
Total DHCPv6 Packets Transmitted: Total number of DHCPv6 sent statistics.
show ipv6 dhcp interface
This command displays DHCPv6 information for all relevant interfaces or the specified interface. If you specify an interface, you can use the optional statistics parameter to view statistics for the specified interface.
Format: show ipv6 dhcp interface unit/slot/port [statistics]
Mode: Privileged EXEC
IPv6 Interface: The interface name in unit/slot/port format.
Mode: Shows whether the interface is a IPv6 DHCP relay or server.
If the interface mode is server, the following information displays.
Pool Name: The pool name specifying information for DHCPv6 server distribution to DHCPv6 clients.
Server Preference: The preference of the server.
Option Flags: Shows whether rapid commit is enabled.
If the interface mode is relay, the following information displays.
Relay Address: The IPv6 address of the relay server.
Relay Interface Number: The relay server interface in unit/slot/port format.
Relay Remote ID: If configured, shows the name of the relay remote.
Option Flags: Shows whether rapid commit is configured.
If you use the statistics parameter, the command displays the IPv6 DHCP statistics for the specified interface.
show ipv6 dhcp pool
This command displays configured DHCP pool.
Format: show ipv6 dhcp pool pool-name
Mode: Privileged EXEC
DHCP Pool Name: Unique pool name configuration.
Client DUID: Client’s DHCP unique identifier. DUID is generated using the combination of the local system burned-in MAC address and a timestamp value.
Host: Name of the client.
Prefix/Prefix Length: IPv6 address and mask length for delegated prefix.
Preferred Lifetime: Preferred lifetime in seconds for delegated prefix.
Valid Lifetime: Valid lifetime in seconds for delegated prefix.
DNS Server Address: Address of DNS server address.
Domain Name: DNS domain name.
show ipv6 dhcp binding
This command displays configured DHCP pool.
Format: show ipv6 dhcp binding [ipv6-address]
Mode: Privileged EXEC
DHCP Client Address: Address of DHCP Client.
DUID: String that represents the Client DUID.
IAID: Identity Association ID.
Prefix/Prefix Length: IPv6 address and mask length for delegated prefix.
Prefix Type: IPV6 Prefix type (IAPD, IANA, or IATA).
Client Address: Address of DHCP Client.
Client Interface: IPv6 Address of DHCP Client.
Expiration: Address of DNS server address.
Valid Lifetime: Valid lifetime in seconds for delegated prefix.
Preferred Lifetime: Preferred lifetime in seconds for delegated prefix.
show network ipv6 dhcp statistics
This command displays the statistics of the DHCPv6 client running on the network management interface.
Format: show network ipv6 dhcp statistics
Mode: Privileged EXEC\User EXEC
DHCPv6 Advertisement Packets Received: The number of DHCPv6 Advertisement packets received on the network interface.
DHCPv6 Reply Packets Received: The number of DHCPv6 Reply packets received on the network interface.
Received DHCPv6 Advertisement Packets Discarded: The number of DHCPv6 Advertisement packets discarded on the network interface.
Received DHCPv6 Reply Packets Discarded: The number of DHCPv6 Reply packets discarded on the network interface.
DHCPv6 Malformed Packets Received: The number of DHCPv6 packets that are received malformed on the network interface.
Total DHCPv6 Packets Received: The total number of DHCPv6 packets received on the network interface.
DHCPv6 Solicit Packets Transmitted: The number of DHCPv6 Solicit packets transmitted on the network interface.
DHCPv6 Request Packets Transmitted: The number of DHCPv6 Request packets transmitted on the network interface.
DHCPv6 Renew Packets Transmitted: The number of DHCPv6 Renew packets transmitted on the network interface.
DHCPv6 Rebind Packets Transmitted: The number of DHCPv6 Rebind packets transmitted on the network interface.
DHCPv6 Release Packets Transmitted: The number of DHCPv6 Release packets transmitted on the network interface.
Total DHCPv6 Packets Transmitted: The total number of DHCPv6 packets transmitted on the network interface.
show serviceport ipv6 dhcp statistics
This command displays the statistics of the DHCPv6 client running on the serviceport management interface.
Format: show serviceport ipv6 dhcp statistics
Mode: Privileged EXEC\User EXEC
DHCPv6 Advertisement Packets Received: The number of DHCPv6 Advertisement packets received on the service port interface.
DHCPv6 Reply Packets Received: The number of DHCPv6 Reply packets received on the service port interface.
Received DHCPv6 Advertisement Packets Discarded: The number of DHCPv6 Advertisement packets discarded on the service port interface.
Received DHCPv6 Reply Packets Discarded: The number of DHCPv6 Reply packets discarded on the service port interface.
DHCPv6 Malformed Packets Received: The number of DHCPv6 packets that are received malformed on the service port interface.
Total DHCPv6 Packets Received: The total number of DHCPv6 packets received on the service port interface.
DHCPv6 Solicit Packets Transmitted: The number of DHCPv6 Solicit packets transmitted on the service port interface.
DHCPv6 Request Packets Transmitted: The number of DHCPv6 Request packets transmitted on the service port interface.
DHCPv6 Renew Packets Transmitted: The number of DHCPv6 Renew packets transmitted on the service port interface.
DHCPv6 Rebind Packets Transmitted: The number of DHCPv6 Rebind packets transmitted on the service port interface.
DHCPv6 Release Packets Transmitted: The number of DHCPv6 Release packets transmitted on the service port interface.
Total DHCPv6 Packets Transmitted: The total number of DHCPv6 packets transmitted on the service port interface.
clear ipv6 dhcp
Use this command to clear DHCPv6 statistics for all interfaces or for a specific interface. Use the <unit/slot/port> parameter to specify the interface.