The commands and parameters described in this section apply specifically to a DHCP client operating in IPv4 mode on the 7705 SAR-Hm series of routers. All other applicable commands, as listed in DHCP client configuration, show, tools, debug, and clear command hierarchies, are described in the 7450 ESS, 7750 SR, 7950 XRS, and VSR Classic CLI Command Reference Guide.
autoconfigure
config>router>interface
This command enables the context to autoconfigure a DHCP client.
dhcp-client
config>router>interface>autoconfigure
This command enables the context to configure DHCP client parameters.
class-id [hex hex-string][string ascii-string]
no class-id
config>router>interface>autoconfigure>dhcp-client
This command configures the vendor class identifier (option 60) for the DHCP client.
The no form of the command deletes the vendor class identifier configuration.
n/a
specifies the vendor class identifier for the DHCP client as a hexadecimal string
specifies the vendor class identifier for the DHCP client as an ASCII string
client-id [hex hex-string][interface][string ascii-string][use-mac]
no client-id
config>router>interface>autoconfigure>dhcp-client
This command configures the identifier for the DHCP client (option 61).
The no form of the command deletes the client identifier configuration.
use-mac
specifies the client identifier as a hexadecimal string
specifies the IPv4 interface name as the client identifier
specifies the client identifier as an ASCII string
specifies the IPv4 MAC address of the associated port as the client identifier
lease-time [days days] [hrs hours] [min minutes] [sec seconds] [infinite]
config>router>interface>autoconfigure>dhcp-client
This command configures the lease time granted by the DHCP server to the DHCP client.
1 day
specifies the lease time in days
specifies the lease time in hours
specifies the lease time in minutes
specifies the lease time in seconds
specifies that the lease never expires
request-options
config>router>interface>autoconfigure>dhcp-client
This command configures the DHCP options for the request messages sent to the DHCP server.
n/a
[no] dns-server
config>router>interface>autoconfigure>dhcp-client>request-options
This command enables the DNS server request option in the DHCP OFFER message from the DHCP server if the server supports it. If this option is enabled, it specifies a list of DNS servers available to the client.
The no form of the command disables DNS server as a request option.
n/a
[no] router
config>router>interface>autoconfigure>dhcp-client>request-options
This command enables the router request option in the DHCP OFFER message from the DHCP server if the server supports it. If this option is enabled, the default gateway is assigned by the DHCP server.
The no form of the command disables router as a request option.
n/a
[no] static-route
config>router>interface>autoconfigure>dhcp-client>request-options
This command enables the static route request option in the DHCP OFFER message from the DHCP server if the server supports it. If this option is enabled, it specifies a list of classless static routes (that is, the destination network addresses in these static routes include subnet masks) that a client should add to its routing table.
The no form of the command disables static route as a request option.
n/a
[no] shutdown
config>router>interface>autoconfigure>dhcp-client
This command administratively disables the DHCP client.
The no form of the command enables the DHCP client.
n/a
dhcp-client interface ip-int-name
dhcp-client interface ip-int-name routes
dhcp-client interface ip-int-name statistics
show>router>autoconfigure
This command displays DHCP client information.
displays DHCP client information associated with the specified IP interface name
displays routing table information for routes received by the DHCP protocol
displays DHCP client statistics
The following outputs are examples of DHCP client information:
DHCP client information associated with the specified interface name (Output example (for the specified interface name)
DHCP client routing table information for routes received by the DHCP protocol (Output example (for DHCP client routing table information)
DHCP client statistics (Output example (for DHCP client statistics)
*A:Dut-B# show router autoconfigure dhcp-client interface "to-dhcp"
===============================================================================
DHCP Client state
===============================================================================
Client IP address : 51.53.2.17/24
Client MAC address : 90:3a:a0:f0:ba:d5
Server Identifier : 51.54.2.1
Router IP address : (Not Specified)
Primary DNS : 138.120.252.55
Secondary DNS : 138.120.252.57
Tertiary DNS : (Not Specified)
Lease acquired time : 2021/05/06 23:09:46
Lease renew time : 2021/05/07 05:09:46
Lease rebind time : 2021/05/07 09:39:46
Lease end time : 2021/05/07 11:09:46
DHCP RFC protocol state : bound
DHCP client user status : established
Description : nexthop 51.53.2.1 is reachable (for
routes 135.0.0.0/8)
===============================================================================
Output example (for DHCP client routing table information)
*A:Dut-B# show router autoconfigure dhcp-client interface "to-dhcp" routes
===============================================================================
DHCP client interface route table
===============================================================================
Prefix Status
Next-hop
(Reason)
-------------------------------------------------------------------------------
135.0.0.0/8 installed
51.53.2.1
-------------------------------------------------------------------------------
No. of routes: 1
===============================================================================
Output example (for DHCP client statistics)
*A:Dut-B# show router autoconfigure dhcp-client interface "to-dhcp" statistics
===============================================================================
DHCP Client statistics
===============================================================================
DHCPDISCOVER messages : 10
DHCPREQUEST messages : 8
DHCPRELEASE messages : 7
DHCPDECLINE messages : 0
DHCPOFFER messages : 8
DHCPACK messages : 8
DHCPNAK messages : 0
messages dropped : 0
Statistics last cleared time : N/A
===============================================================================
autoconfigure
tools>dump>router
This command enables the context to display autoconfiguration information for debugging purposes.
dhcp-client interface ip-int-name offer
dhcp-client interface ip-int-name offer config-apply-status
dhcp-client interface ip-int-name offer raw
tools>dump>router>autoconfigure
This command displays IPv4 DHCP client information for debugging purposes.
the IP interface name associated with the DHCP client
displays the contents of the OFFER message
displays the configured DHCP options from the DHCP server OFFER message that are applied to the DHCP client and the status of these options
displays the contents of the OFFER message in hexadecimal format
autoconfigure
tools>perform>router
This command enables the context to perform autoconfiguration operations.
dhcp-client interface ip-int-name lease-renew
dhcp-client interface ip-int-name restart
tools>perform>router>autoconfigure
This command performs IPv4 DHCP client lease operations.
the IP interface name associated with the DHCP client
performs DHCP client operations associated with lease renewals
performs DHCP client operations associated with lease restarts
autoconfigure
debug>router
This command enables the context to perform autoconfiguration debugging operations.
dhcp-client interface ip-int-name
debug>router>autoconfigure
This command enables debugging for an IPv4 DHCP client.
the IP interface name associated with the DHCP client
[no] events
debug>router>autoconfigure>dhcp-client
This command enables or disables debugging for all DHCP client events.
[no] packet
debug>router>autoconfigure>dhcp-client
This command enables or disables debugging for all DHCP client packets.
detail-level {low | medium | high}
no detail-level
debug>router>autoconfigure>dhcp-client>packet
This command sets the level of detail for packet tracing.
specifies a low tracing detail level
specifies a medium tracing detail level
specifies a high tracing detail level
mode {dropped-only | ingr-and-dropped | egr-ingr-and-dropped}
no mode
debug>router>autoconfigure>dhcp-client>packet
This command specifies the types of packets to be debugged.
specifies to debug dropped packets only
specifies to debug ingress packets and dropped packets
specifies to debug egress packets, ingress packets, and dropped packets
[no] rtm
debug>router>autoconfigure>dhcp-client
This command enables or disables debugging for the addition, removal, and modification of DHCP client routes to the system Route Table Manager.
autoconfigure
clear>router
This command enables the context to clear autoconfigured DHCP client information.
dhcp-client interface ip-int-name statistics
clear>router>autoconfigure
This command clears IPv4 DHCP client statistics.
the IP interface name associated with the DHCP client
clears DHCP client statistics