User`s manual
Managing Route Table Entries
Command Line
The routing table contains all routes known to the Switch. It includes:
all static routes created when a routing interface is created
●
all dynamic routes maintained through RIP or OSPF●
Address Resolution Protocol (ARP)
The Address Resolution Protocol is a mechanism for finding a MAC address from an IP address. ARP
broadcasts an IP address onto the network when it needs to find a MAC address. This MAC address is then
used as the destination address for subsequent communication.
This section describes the commands to:
add and maintain static entries
●
see and manipulate ARP cache entries●
set the Switch to advertise its static route to other routers●
To add static route table entries:
>set ip route <ip_address> </mask> <gateway> [metric <metric>]
<ip_address> is the destination's IP address
</mask> is the destination's subnet mask
<gateway> is the destination's gateway
<metric> is the cost assigned to this route
Example: >set ip route 192.168.211.0/24 192.168.2.2 metric 5
1.
To delete route table entries:
>clear ip route <all | ip_address>
<all> erases all routes
<ip_address> deletes a specific route
Example: >clear ip route all
Example: >clear ip route 192.168.3.2
2.
To see route table entries:
>show ip route [mask] [use]
[mask] shows each route's subnet mask in the table
[use] shows the number of times a route was used
These flags may appear:
C - cloned
U - route is up
G - gateway
H - host route
X - route rejected
M - route netmask
T - static route
3.
To modify an existing route:
>route change <ip_address> [/mask] <gateway> [metric <metric>]
<ip_address> is the destination's IP address
<mask> is the destination's subnet mask
4.
79