400
target network exists, the kernel route will
only shows those with high priority.
14.3.4.3 show ip route fib
Command: show ip route fib
Function:
Show all the contents in the route table including: route type, destination
network, mask, next-hop address, interface, etc.
Command Mode:
all modes
Usage Guide:
With show ip route command, contents about static route in the route
table can be shown, including destination IP address, network mask and next-hop IP
address or forwarding interfaces.
Example:
Switch#show ip route fib
Codes: C - connected, S - static, R - RIP derived, O - OSPF derived
A - OSPF ASE, B - BGP derived
Destination Mask Nexthop Interface Pref
C 2.2.2.0 255.255.255.0 0.0.0.0 vlan1 0
S 6.6.6.0 255.255.255.0 2.2.2.9 vlan1 1
Among those message, S is static route with network address as 6.6.6.0
、
network mask
as 255.255.255.0
、
next-hop address as 2.2.2.9 and Ethernet port vlan1 as its
forwarding interface, of which the priority is 1
14.3.4.4 show ip route vrf
Command:show ip route vrf <name> [connected | static | rip| ospf | bgp | isis|
kernel|statistics| database[connected | static | rip| ospf | bgp | isis|kernel] ]
show ip route fib vrf <name> [default|main|local]
Function:
Show the routing table
Parameter:
<name>
is the name of VPN route forwarding instances;
<destination>
is
the destination network address;
<destination >/<length>
为
is the prefix-length plus
destination network address
; connected
is direct routed;
static
is static route;
rip
is
RIP route;
ospf
is OSPF route;
bgp
is BGP route;
isis
is ISIS route;
kernel
is kernel ;
statistics
shows the number of routes;
database
is the route database;
fib
is the kernel
route table.
Command Mode:
all modes
Usage Guide:
Show VPN route table contents includingL route type, destination network,
mask, next-hop, interface, etc.
14.3.4.5 ip route vrf