C
HAPTER
42
| DHCP Commands
DHCP Relay
– 980 –
◆ DHCP requires the server to reassign the client’s last address if
available.
â—† If the BOOTP or DHCP server has been moved to a different domain,
the network portion of the address provided to the client will be based
on this new domain.
EXAMPLE
In the following example, the device is reassigned the same address.
Console(config)#interface vlan 1
Console(config-if)#ip address dhcp
Console(config-if)#exit
Console#ip dhcp restart client
Console#show ip interface
Vlan 1 is Administrative Up - Link Up
Address is 12-34-12-34-12-34 (bia 12-34-12-34-12-34)
Index: 1001, MTU: 1500, Bandwidth: 1g
Address Mode is DHCP
IP Address: 192.168.0.9 Mask: 255.255.255.0
Proxy ARP is disabled
Console#
RELATED COMMANDS
ip address (1006)
DHCP RELAY
This section describes commands used to configure DHCP relay functions
for host devices attached to the switch.
ip dhcp relay server This command specifies the addresses of DHCP servers to be used by the
switch’s DHCP relay agent. Use the no form to clear all addresses.
SYNTAX
ip dhcp relay server address1 [address2 [address3 ...]]
no ip dhcp relay server
address - IP address of DHCP server. (Range: 1-3 addresses)
DEFAULT SETTING
None
Table 130: DHCP Relay Commands
Command Function Mode
ip dhcp relay server Specifies DHCP server addresses for relay IC
ip dhcp restart relay Enables DHCP relay agent PE