Previous Topic

Next Topic

Book Contents

Book Index

DHCPv6 Commands

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.

no service dhcpv6

This command disables DHCPv6 configuration on router.

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.

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.

ipv6 dhcp pool

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.

no ipv6 dhcp pool

This command removes the specified DHCPv6 pool.

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.

This command will remove dhcpv6 domain name from dhcpv6 pool.

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.

no dns-server

This command will remove DHCPv6 server address from DHCPv6 server.

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.

no prefix-delegation

This command deletes a specific prefix-delegation client.

show ipv6 dhcp

This command displays the DHCPv6 server name and status.

show ipv6 dhcp statistics

This command displays the IPv6 DHCP statistics for all interfaces.

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.

If the interface mode is server, the following information displays.

If the interface mode is relay, the following information displays.

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.

show ipv6 dhcp binding

This command displays configured DHCP pool.

show network ipv6 dhcp statistics

This command displays the statistics of the DHCPv6 client running on the network management interface.

show serviceport ipv6 dhcp statistics

This command displays the statistics of the DHCPv6 client running on the serviceport management 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.

clear network ipv6 dhcp statistics

Use this command to clear the DHCPv6 statistics <unit/slot/port> interface.

clear serviceport ipv6 dhcp statistics

Use this command to clear the DHCPv6 client statistics <unit/slot/port> interface.