2 show ip route – Accton Technology ES4626 User Manual
Page 385

385
no ip route {
|
[
Function:
Configure the static route. The “no ip route {
|
[
” command deletes the static route.
Parameter:
The
subnet mask, shown in dotted decimal notation;
respectively the destination IP address and the length of prefix;
the next-hop IP address shown in dotted decimal notation;
next-hop interface, < distance > is the manage distance of route management, ranging
between 1~255.
Default:
The management distance of static routing is defaulted at 1.
Command Mode:
Global Mode.
Usage Guide:
When configuring the next-hop of static routing, both by specifying the
next-hop IP address of the route data packet and the exit interface are available.
The default distance values of each route type in the layer 3 switch of our company are
listed below:
Route Type
Distance Value
Direct Route
0
Static Route
1
OSPF 110
RIP 120
IBGP 200
EBGP 20
The direct route has the highest priority when each route management distance
value remain unchanged and followed by static route, EBGP、OSPF、RIP、IBGP.
Example:
Example 1.Add a static route
Switch(config)#ip route 1.1.1.0 255.255.255.0 2.1.1.1
Example 2.Add default route
Switch(config)#ip route 0.0.0.0 0.0.0.0 2.2.2.1
13.3.4.2 show ip route
Command: show ip route [<destination>|<destination >/<length>|connected | static
| rip| ospf | bgp | isis| kernel| statistics| database [connected | static | rip| ospf | bgp
| isis| kernel] |fib [default|main|local]]
Function:
Show the route table
Parameter: <destination> is the destination network address; <destination >/<length>