3com WX2200 3CRWX220095A Manuel D’Utilisation

Page de 728
Configuring and Managing IP Routes
111
If a VLAN is administratively disabled or all of the links in the VLAN go 
down or are disabled, MSS removes the VLAN’s routes from the route 
table. If the direct route required by a static route goes down, MSS 
changes the static route state to Down. If the route table contains other 
static routes to the same destination, MSS selects the resolved route that 
has the lowest cost. In the following example, the default route to 
10.0.1.17 is down, so MSS selects the default route to 10.0.2.17.
WX1200# 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
(For more information about the fields in the output, see the 
Wireless 
LAN Switch and Controller Command Reference
.)
Adding a Static Route
To add a static route, use the following command:
set ip route {default | ip-addr mask ip-addr/mask-length
default-router metric
The metric (cost) can be any number between 0 and 2,147,483,647. 
Lower-cost routes are preferred over higher-cost routes. When you add 
multiple routes to the same destination, MSS groups the routes together 
and orders them from lowest cost at the top of the group to highest cost 
at the bottom of the group. If you add a new route that has the same 
destination and cost as a route already in the table, MSS places the new 
route at the top of the group of routes with the same cost. 
To add a default route that uses default router 10.5.4.1 and has a cost of 
1, type the following command:
WX1200# set ip route default 10.5.4.1 1
success: change accepted.