ip default-gateway

To define or set a default gateway with an IP address, use the ip default-gateway command in Configuration mode. To disable this function, use the no form of this command.

ip default-gateway ip-address

Syntax Description

ip default-gateway

The command to define a default gateway with an IP address.

ip-address

IP address of the default gateway.

Defaults

Disabled.

Command Modes

Configuration

Usage Guidelines

If you enter more than one argument or no arguments at all, an error occurs.

Examples

/admin(config)# ip default-gateway 209.165.202.129

/admin(config)#

Related Commands

Command

Description

ip address (interface configuration mode)

Sets the IP address and netmask for the Ethernet interface.