DHCPv6 Commands
Use these M4500 CLI commands to configure the DHCPv6 relay and service, and display DHCPv6 interface information and statistics.
show ipv6 dhcp interface
This command displays the DHCPv6 information for the specific interface.
| Default | None |
| Format | show ipv6 dhcp interface {<slot/port> | vlan <vlan-id>} [statistics] |
| Mode | Privileged Exec |
Example:
(M4500-32C) #show ipv6 dhcp interface 0/1
IPv6 Interface................................. 0/1
Mode........................................... Relay
Relay Address.................................. ::
Relay Interface Number......................... 0/2
Relay Remote ID................................
Option Flags...................................
show ipv6 dhcp statistics
This command displays the DHCPv6 statistics for all interfaces.
| Default | None |
| Format | show ipv6 dhcp statistics |
| Mode | Privileged Exec |
Example:
DHCPv6 Interface Global Statistics
------------------------------------
DHCPv6 Solicit Packets Received................ 0
DHCPv6 Request Packets Received................ 0
DHCPv6 Confirm Packets Received................ 0
DHCPv6 Renew Packets Received.................. 0
DHCPv6 Rebind Packets Received................. 0
DHCPv6 Release Packets Received................ 0
DHCPv6 Decline Packets Received................ 0
DHCPv6 Inform Packets Received................. 0
DHCPv6 Relay-forward Packets Received.......... 0
DHCPv6 Relay-reply Packets Received............ 0
DHCPv6 Malformed Packets Received.............. 0
Received DHCPv6 Packets Discarded.............. 0
Total DHCPv6 Packets Received.................. 0
DHCPv6 Advertisement Packets Transmitted....... 0
DHCPv6 Reply Packets Transmitted............... 0
DHCPv6 Reconfig Packets Transmitted............ 0
DHCPv6 Relay-reply Packets Transmitted......... 0
DHCPv6 Relay-forward Packets Transmitted....... 0
Total DHCPv6 Packets Transmitted............... 0
ipv6 dhcp relay destination
This command configures an interface for DHCPv6 relay functionality on an interface or range of interfaces. Use the destination keyword to set the relay server IPv6 address. Use the interface keyword to set the relay server interface. Use the remote-id keyword to add the Relay Agent Information Option “remote ID”suboption to relayed messages. It can either be DUID plus IFID or a user-defined string.
If relay-address is an IPv6 global address, relay-interface is not required. If relay-address is a link-local address, relay-interface is required.
| Default | None |
| Format | ipv6 dhcp relay destination <relay-address> { [interface <relay-interface>] | [remote-id {<user-defined-string> | duid-ifid}]} |
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| relay-address | IPv6 address of a DHCPv6 relay server |
| relay-interface | The interface to reach a relay server |
| duid-ifid | Specify that the remote ID is derived from the DHCPv6 server DUID and the relay interface |
ipv6 dhcp relay interface
This command configures the relay interface to reach a relay server. Use the remote-id keyword to add the Relay Agent Information Option “remote ID”suboption to relayed messages. It can either be DUID plus IFID or a user-defined string.
| Default | None |
| Format | ipv6 dhcp relay interface <relay-interface> [remote-id {<user-defined-string> | duid-ifid}] |
| Mode | Interface Config |
service dhcpv6
This command enables the DHCPV6 relay. Use the no form of this command to disable the DHCPV6 relay.
| Format | service dhcpv6 |
no service dhcpv6
| Default | Disabled |
| Mode | Global Config |