3com WX1200 User Manual

Page of 646
display ip route
147
Usage — When you add an IP interface to a VLAN that is up, MSS adds 
direct and local routes for the interface to the route table. If the VLAN is 
down, MSS does not add the routes. If you add an interface to a VLAN 
but the routes for that interface do not appear in the route table, use the 
display vlan config command to check the VLAN state. 
If you add a static route and the route’s state is shown as Down, use the 
display interface command to verify that the route has an IP interface in 
the gateway router’s subnet. MSS cannot resolve a static route unless one 
of the WX switch’s VLANs has an interface in the gateway router’s 
subnet. If the WX switch has such an interface but the static route is still 
down, use the display vlan config command to check the state of the 
VLAN’s ports. 
Examples — The following command shows all routes in a WX switch’s 
IP route table:
WX4400# display ip route
Router table for IPv4
Destination/Mask   Proto   Metric NH-Type Gateway         VLAN:Interface
__________________ _______ ______ _______ _______________ _______________
0.0.0.0/ 0 Static       1 Router  10.0.1.17       Down
        0.0.0.0/ 0 Static       2 Router  10.0.2.17       vlan:2:ip
       10.0.2.1/24 IP           0 Direct                  vlan:2:ip
       10.0.2.1/32 IP           0 Direct                  vlan:2:ip:10.0.1.1/24
     10.0.2.255/32 IP           0 Direct                  vlan:2:ip:10.0.1.1/24
      224.0.0.0/ 4 IP           0 Local                   MULTICAST
Table 37 describes the fields in this display.
Table 37   Output of display ip route
Field
Description
Destination/Mask IP address and subnet mask of the route destination.
The 244.0.0.0 route is automatically added by MSS and 
supports the IGMP snooping feature. 
Proto
Protocol that added the route to the IP route table. The protocol 
can be one of the following:
„
IP — MSS added the route.
„
Static — An administrator added the route.
Metric
Cost for using the route.