
To enable acquiring a dynamic IP address from a DHCP server on an interface configured with a static IP address, use the
ip
address dhcp
command. A prompt displays to confirm the IP address reconfiguration. If you confirm, the statically configured IP
address is released. An error message displays if you enter the
release dhcp
or
renew dhcp
commands.
To renew the lease time of the dynamically acquired IP, use the
renew dhcp
command on an interface already configured with a
dynamic IP address.
NOTE: To verify the currently configured dynamic IP address on an interface, use the
show ip dhcp lease
command. The
show running-configuration
command output only displays ip address dhcp. The currently
assigned dynamic IP address does not display.
To configure and view an interface as a DHCP client to receive an IP address, use the following commands.
1.
Enter INTERFACE Configuration mode on an Ethernet interface.
CONFIGURATION mode
interface
type slot/port
[
/subport
]
2.
Acquire the IP address for an Ethernet interface from a DHCP network server.
INTERFACE mode
ip address dhcp
Dynamically assigned IP addresses can be released without removing the DHCP client operation on the interface on a switch
configured as a DHCP client.
3.
Manually acquire a new IP address from the DHCP server by releasing a dynamically acquired IP address while retaining the
DHCP client configuration on the interface.
EXEC Privilege mode
release dhcp interface
type slot/port
[
/subport
]
4.
Acquire a new IP address with renewed lease time from a DHCP server.
EXEC Privilege mode
renew dhcp interface
type slot/port
[
/subport
]
To display DHCP client information, use the following
show
commands in EXEC Privilege mode.
•
To display statistics about DHCP client interfaces, use the
show ip dhcp client statistics interface
type
slot/port
[
subport
]
command.
•
To clear DHCP client statistics on a specified or on all interfaces, use the
clear ip dhcp client statistics {all |
interface
type slot/port
[
/subport
]
} command.
•
To display dynamic IP address lease information currently assigned to a DHCP client interface, use the
show ip dhcp lease
[interface
type slot/port
[
/subport
]]
command.
•
To display log messages for all DHCP packets sent and received on DHCP client interfaces, use the
debug ip dhcp client
packets [interface
type slot/port
[
/subport
]
command.
•
To display log message on DHCP client interfaces for IP address acquisition, IP address release, IP address and lease time
renewal, and release an IP address, use the
[no] debug ip dhcp client events [interface
type slot/
port
[
/subport
]
] command.
DHCP Client on a Management Interface
These conditions apply when you enable a management interface to operate as a DHCP client.
•
The management default route is added with the gateway as the router IP address received in the DHCP ACK packet. It is
required to send and receive traffic to and from other subnets on the external network. The route is added irrespective when the
DHCP client and server are in the same or different subnets. The management default route is deleted if the management IP
address is released like other DHCP client management routes.
•
ip route for 0.0.0.0
takes precedence if it is present or added later.
290
Dynamic Host Configuration Protocol (DHCP)
Summary of Contents for S4048-ON
Page 1: ...Dell Configuration Guide for the S4048 ON System 9 9 0 0 ...
Page 146: ...Figure 14 BFD Three Way Handshake State Changes 146 Bidirectional Forwarding Detection BFD ...
Page 522: ...Figure 87 Configuring Interfaces for MSDP 522 Multicast Source Discovery Protocol MSDP ...
Page 523: ...Figure 88 Configuring OSPF and BGP for MSDP Multicast Source Discovery Protocol MSDP 523 ...
Page 528: ...Figure 91 MSDP Default Peer Scenario 1 528 Multicast Source Discovery Protocol MSDP ...
Page 529: ...Figure 92 MSDP Default Peer Scenario 2 Multicast Source Discovery Protocol MSDP 529 ...
Page 530: ...Figure 93 MSDP Default Peer Scenario 3 530 Multicast Source Discovery Protocol MSDP ...
Page 633: ...Policy based Routing PBR 633 ...
Page 777: ...Figure 119 Single and Double Tag TPID Match Service Provider Bridging 777 ...
Page 778: ...Figure 120 Single and Double Tag First byte TPID Match 778 Service Provider Bridging ...