Command Reference Guide

Error! Use the Home tab to apply 見出し 1 to the text that you want to appear here. 116
Default Gateway configuration
The switch supports up to four gateways, plus management gateway 254. By default, no gateways are
configured on the switch. Enter 1, 2, 3, 4, or 254 in the command as the ip gateway instance, depending
upon which gateway you want to configure.
The following table describes the Default IP Gateway Configuration commands.
Table 121 Default IP Gateway Configuration commands
Command
Description
ip gateway <1-4, 254> address
<IP address>
Configures the IP address of the default IP gateway using dotted
decimal notation.
Command mode: Global configuration
ip gateway <1-4, 254> 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, 254> 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, 254>
arp-health-check
Enables or disables Address Resolution Protocol (ARP) health
checks.
Command mode: Global configuration
ip gateway <1-4, 254> enable
Enables the gateway for use.
Command mode: Global configuration
no ip gateway <1-4, 254>
enable
Disables the gateway.
Command mode: Global configuration
no ip gateway <1-4, 254>
Deletes the gateway from the configuration.
Command mode: Global configuration
show ip gateway <1-4, 254>
Displays the current gateway settings.
Command mode: All
NOTE: Gateway 254 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-249)>
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> <1-250>
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
Address Resolution Protocol configuration
Address Resolution Protocol (ARP) is the TCP/IP protocol that resides within the Internet layer. ARP resolves
a physical address from an IP address. ARP queries machines on the local network for their physical
addresses. ARP also maintains IP to physical address pairs in its cache memory. In any IP communication,
the ARP cache is consulted to see if the IP address of the computer or the router is present in the ARP
cache. Then the corresponding physical address is used to send a packet.
The following table describes the ARP Configuration commands.