C
HAPTER
44
| IP Interface Commands
IPv4 Interface
– 1030 –
COMMAND USAGE
â—† A default gateway can only be successfully set when a network
interface that directly connects to the gateway has been configured on
the switch.
â—† A gateway must be defined if the management station is located in a
different IP segment.
EXAMPLE
The following example defines a default gateway for this device:
Console(config)#ip default-gateway 10.1.1.254
Console(config)#
RELATED COMMANDS
ip address (1028)
ipv6 default-gateway (1036)
show ip default-
gateway
This command shows the IPv4 default gateway configured for this device.
DEFAULT SETTING
None
COMMAND MODE
Privileged Exec
EXAMPLE
Console#show ip default-gateway
IP default gateway 10.1.0.254
Console#
RELATED COMMANDS
ip default-gateway (1029)
show ipv6 default-gateway (1044)
show ip interface This command displays the settings of an IPv4 interface.
COMMAND MODE
Privileged Exec
EXAMPLE
Console#show ip interface
Loopback 0 is Administrative Up - Link Up
Address is 00-00-00-00-00-00
Index: 746, MTU: 0
Address Mode is User specified
VLAN 1 is Administrative Up - Link Up