IP Addressing Commands
78-21075-01 Command Line Interface Reference Guide
•
When the device is in Layer 2 (switch mode), interface-id is not required..
•
This command does not enable DHCP on an interface. If DHCP is not
enabled on the requested interface, the command returns an error
message.
•
If DHCP is enabled on the interface and an IP address was already
acquired, the command tries to renew that IP address.
•
If DHCP is enabled on the interface and an IP address has not yet been
acquired, the command initiates a DHCP request.
Example
The following example renews an IP address that was acquired from a DHCP
server for VLAN 19. This assumes that the device is in Layer 3.
switchxxxxxx#
renew dhcp vlan
43 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-address
ip default-gateway
no ip default-gateway
Parameters
ip-address—Specifies the default gateway IP address.
Command Mode
Global Configuration mode
Default Configuration
No default gateway is defined.
19
43
711