N8406-023 1Gb Intelligent L3 Switch Command Reference Guide (ISCLI) 114
Default Gateway configuration
The switch supports up to four gateways. By default, no gateways are configured on the switch. Enter 1, 2, 3, or 4
in the command as the
<gateway instance>
, depending upon which gateway you want to configure. Gateway 4 is
reserved for switch management.
The following table describes the Default IP Gateway Configuration commands.
Table 121 Default IP Gateway Configuration commands
Command
Description
ip gateway
<
1-4
>
address
<
IP
address
>
Configures the IP address of the default IP gateway using dotted
decimal notation.
Command mode
: Global configuration
ip gateway
<
1-4
>
interval
<
0-
60
>
The switch pings the default gateway to verify that it is up. This option
sets the time between health checks. The range is from 0 to 60
seconds. The default is 2
seconds.
Command mode
: Global configuration
ip gateway
<
1-4
>
retry
<
1-120
>
Sets the number of failed health check attempts required before
declaring this default gateway inoperative. The range is from 1 to 120
attempts. The default is 8 attempts.
Command mode
: Global configuration
[no] ip gateway
<
1-4
>
arp-
health-check
Enables or disables Address Resolution Protocol (ARP) health checks.
This command is disabled by default.
Command mode
: Global configuration
ip gateway
<
1-4
>
enable
Enables the gateway for use.
Command mode
: Global configuration
no ip gateway
<
1-4
>
enable
Disables the gateway.
Command mode
: Global configuration
no ip gateway
<
1-4
>
Deletes the gateway from the configuration.
Command mode
: Global configuration
show ip gateway
<
1-4
>
Displays the current gateway settings.
Command mode
: All except User EXEC
NOTE: Gateway 4 is reserved for switch management interface.
IP Static Route configuration
The following table describes the Static Route Configuration commands.
Table 122 Static Route Configuration commands
Command
Description
ip route <
IP subnet
> <
IP
netmask
> <
IP nexthop
> <
IP
interface (1-256)
>
Adds a static route. You will be prompted to enter a destination IP
address, destination subnet mask, and gateway address. Enter all
addresses using dotted decimal notation.
Command mode
: Global configuration
no ip route <
IP subnet
> <
IP
netmask
>
Removes a static route. The destination address of the route to remove
must be specified using dotted decimal notation.
Command mode
: Global configuration
show ip route static
Displays the current IPstatic route configuration.
Command mode
: All except User Exec