IP Addressing Commands
OL-32830-01 Command Line Interface Reference Guide
454
22
Command Mode
Privileged EXEC mode
User Guidelines
Use the renew dhcp command in switch mode to renew a DHCP address. This
command does not enable DHCP client and if DHCP client is not enabled, the
command returns an error message.
Use the renew dhcp command in router mode to renew a DHCP address on an
interface. This command does not enable DHCP client on an interface and if DHCP
client is not enabled on the interface, the command returns an error message.
Example
In switch mode:
The following example renews an IP address that was acquired from a DHCP
server:
switchxxxxxx#
renew dhcp
In router mode:
The following example renews an IP address on VLAN 19 that was acquired from
a DHCP server:
switchxxxxxx#
renew dhcp vlan
19
22.4 ip default-gateway
The ip default-gateway Global Configuration mode command defines a default
gateway (device). Use the no form of this command to restore the default
configuration.
Syntax
ip default-gateway
ip-address
no ip default-gateway [
ip-address
]
Parameters
•
ip-address
—Specifies the default gateway IP address.
Summary of Contents for 300 Series
Page 2: ......