IP I
NTERFACE
C
OMMANDS
36-6
Related Commands
ip dhcp restart client (36-7)
ipv6 address (36-14)
ip default-gateway
This command specifies the IPv4 default gateway for destinations not
found in the local routing tables. Use the
no
form to remove a default
gateway.
Syntax
ip default-gateway
gateway
no ip default-gateway
gateway
- IP address of the default gateway
Default Setting
No static route is established.
Command Mode
Global Configuration
Command Usage
• The gateway specified in this command is only valid if routing is
disabled with the
no ip routing
command (page 37-2). If IP routing
is disabled, you must define a gateway if the target device is located in
a different subnet.
• If routing is enabled, you can still define a static route using the
ip
route
command (page 37-3) to ensure that traffic to the designated
address or subnet passes through a preferred gateway.
• An default gateway can only be successfully set when a network
interface that directly connects to the gateway has been configured on
the router.
Example
The following example defines a default gateway for this device:
Console(config)#ip default-gateway 10.1.1.254
Console(config)#
Summary of Contents for WPCI-G - annexe 1
Page 2: ......
Page 26: ...TABLE OF CONTENTS xxvi ...
Page 36: ...GETTING STARTED ...
Page 72: ...MANAGING SYSTEM FILES 2 24 ...
Page 74: ...SWITCH MANAGEMENT ...
Page 90: ...CONFIGURING THE SWITCH 3 16 ...
Page 245: ...SHOWING PORT STATISTICS 8 33 Figure 8 12 Port Statistics ...
Page 252: ...ADDRESS TABLE SETTINGS 9 6 ...
Page 318: ...CLASS OF SERVICE 12 16 ...
Page 330: ...QUALITY OF SERVICE 13 12 ...
Page 348: ...DOMAIN NAME SERVICE 15 8 ...
Page 404: ...IP ROUTING 17 44 ...
Page 406: ...COMMAND LINE INTERFACE ...
Page 608: ...MIRROR PORT COMMANDS 26 4 ...
Page 644: ...SPANNING TREE COMMANDS 29 28 ...
Page 668: ...VLAN COMMANDS 30 24 ...
Page 686: ...CLASS OF SERVICE COMMANDS 31 18 ...
Page 700: ...QUALITY OF SERVICE COMMANDS 32 14 ...
Page 792: ...IP INTERFACE COMMANDS 36 50 ...
Page 818: ...APPENDICES ...
Page 824: ...SOFTWARE SPECIFICATIONS A 6 ...
Page 828: ...TROUBLESHOOTING B 4 ...
Page 844: ...INDEX Index 6 ...
Page 845: ......