3com WX2200 3CRWX220095A User Manual

Page of 728
112
C
HAPTER
 6: C
ONFIGURING
 
AND
 M
ANAGING
 IP I
NTERFACES
 
AND
 S
ERVICES
To add two default routes and configure MSS to always use the route 
through 10.2.4.69 when the WX interface to that default router is up, 
type the following commands:
WX1200# set ip route default 10.2.4.69 1
success: change accepted.
WX1200# set ip route default 10.2.4.17 2
success: change accepted.
To add an explicit route from a WX switch to any host on the 192.168.4.x 
subnet through the local router 10.5.4.2, and give the route a cost of 1, 
type the following command:
WX1200# set ip route 192.168.4.0 255.255.255.0 10.5.4.2 1
success: change accepted.
Removing a Static
Route
To remove a static route, use the following command:
clear ip route {default | ip-addr mask | ip-addr/mask-length
default-router
After you remove a route, traffic that uses the route can no longer reach 
its destination. For example, if you are managing the WX switch with a 
Telnet session and the session needs the static route, removing the route 
also removes the Telnet connection to the switch.
The following command removes the route to 192.168.4.69/24 that uses 
default router 10.2.4.1:
WX1200# clear ip route 192.168.4.69/24 10.2.4.1
success: change accepted.
The following command removes the default route that uses default 
router 10.5.5.5:
WX1200# clear ip route default 10.5.5.5
success: change accepted.