Command:

ip default-gateway


Mode:

Router(config)#

Syntax:

ip default-gateway ip address

no ip default-gateway ip address


Syntax Description:
ip-address IP address of the router

Command Description:

To define a default gateway (router) when IP routing is disabled, use the ip default-gateway global configuration command. To disable this function, use the no form of this command.


Example:
Router(config)#ip default-gateway 192.31.7.18
  

Misconceptions:

The ip default-gateway command is often used to try to set the router's default route. This is incorrect. The ip default-gateway setting is only used when ip routing is disabled. This command does not set the router's default route.


Related Commands:

 

None


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)