5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
640
7-16
ip address dhcp
Enable the DHCPv4 client on an in-band interface so that it can acquire network information, such as the
IP address, subnet mask, and default gateway, from a network DHCP server. When DHCP is enabled on
the interface, the system automatically deletes all manually configured IPv4 addresses on the interface.
To enable the DHCPv4 client on an in-band interface and send DHCP client messages with the client
identifier option (DHCP Option 61), use the
ip address dhcp client-id
configuration command in
interface configuration mode.
No
command releases a leased address and disable DHCPV4 on an interface. The no form of the
ip
address dhcp client-id
command removes the client-id option and also disables the DHCP client on the
in-band interface.
ip address dhcp [client-id]
no ip address dhcp [client-id]
Parameters
client-id
Enable the DHCP client to specify the unique client identifier (option 61).
Default
The default is Disabled.
Command Mode
I
nterface Config
Example
In the following example, DHCPv4 is enabled on interface 0/1.
(routerl)#config
(routerl)(Config)#interface 0/1
(routerl)(Interface 0/1)#ip address dhcp
7-17
ip default-gateway
Manually configures a default gateway for the switch. Only one default gateway can be configured. If you
invoke this command multiple times, each command replaces the previous value.
No
command removes the default gateway address from the configuration.
ip default-gateway ipaddr
no ip default-gateway ipaddr
Parameters
ipaddr
Indicates the IPv4 address of an attached router.
Содержание 5000 Series
Страница 1: ...Draft 1 2 1 ...
Страница 141: ...5000 Series Layer 2 3 Managed Data Center Switch CLI Reference Guide 135 ...