Users Guide

Switch Management Commands 2004
In addition to leasing an IP address and subnet mask, the DHCP client may
learn the following parameters from a DHCP server:
The IPv4 address of a default gateway. If the device learns different default
gateways on different interfaces, the system uses the first default gateway
learned. The system installs a default route in the routing table, with the
default gateway’s address as the next hop address. This default route has a
preference of 254.
The IPv4 address of a DNS server. The DNS client stores each DNS server
address in its server list.
A domain name. The DNS client stores each domain name in its domain
name list.
A VLAN routing interface configured for DHCP address assignment will send
the following text string in DHCP Option 60 of the DHCPDISCOVER
message to assist the DHCP server in identification of the switch:
"DellEMC;<switch model>;<firmware version>;<serial number>". The
left and right angle brackets and quotation marks are not sent. An example
option 60 string might be: DellEMC;N2128PX-
ON;6.5.2.0;TW06G93K282986CR0040
Examples
To enable DHCPv4 on vlan 2:
console#config
console(config)#interface vlan 2
console(config-if-vlan2)#ip address dhcp
ip default-gateway
Use the ip default-gateway command to configure a default gateway (router).
Syntax
ip default-gateway ip-address
no ip default-gateway ip-address
ip-address—Valid IPv4 address of an attached router.
Default Configuration
No default gateway is defined.