Configuring the optional default gateway

Prerequisites

Before you use the CLI to configure the optional default gateway, you must be at the global configuration level.

One default gateway can be manually assigned to the switch. The switch does not allow IP addressing received from a DHCP or Bootp server to replace a manually configured default gateway.

Configuring the optional default gateway

Use the ip default-gateway <ip-address> command to configure the optional default gateway:

Examples

The following example shows the configuration of the default gateway with the IP address 10.28.227.115.

switch(config)# ip default-gateway 10.28.227.115