Chapter 45: IP Interface Commands
IPv4 Interface
– 1342 –
S
YNTAX
ip default-gateway
gateway
no ip default-gateway
gateway
- IP address of the default gateway
D
EFAULT
S
ETTING
No default gateway is established.
C
OMMAND
M
ODE
Global Configuration
C
OMMAND
U
SAGE
•
A default gateway can only be successfully set when a network
interface that directly connects to the gateway has been configured on
the .
•
The same link-local address may be used by different interfaces/nodes
in different zones (RFC 4007). Therefore, when specifying a link-local
address for a default gateway, include zone-id information indicating
the VLAN identifier after the % delimiter. For example, FE80::7272%1
identifies VLAN 1 as the interface.
E
XAMPLE
The following example defines a default gateway for this device:
Console(config)#ip default-gateway 10.1.1.254
Console(config)#
R
ELATED
C
OMMANDS
show ip interface
This command displays the settings of an IPv4 interface.
C
OMMAND
M
ODE
Privileged Exec
E
XAMPLE
Console#show ip interface
VLAN 1 is Administrative Up - Link Up
Address is 70-72-CF-94-22-34
Index: 1001, MTU: 1500
Address Mode is DHCP
IP Address: 192.168.0.5 Mask: 255.255.255.0
Proxy ARP is disabled
DHCP relay server: 0.0.0.0
Console#
Summary of Contents for SSE-G2252
Page 42: ...44 General IP Routing on page 627...
Page 603: ...Chapter 16 IP Configuration Setting the Switch s IP Address IP Version 6 609...
Page 883: ...Chapter 24 General Security Measures Port based Traffic Segmentation 894...
Page 989: ...Chapter 30 Congestion Control Commands Automatic Traffic Control Commands 1000 Console...
Page 1007: ...Chapter 33 Address Table Commands 1019...
Page 1137: ...Chapter 38 Quality of Service Commands 1150...