Nortel Networks 2300 Switch User Manual


 
Configuring and managing IP interfaces and services 129
Nortel WLAN—Security Switch 2300 Series Configuration Guide
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, WSS Software 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, WSS Software 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:
WSS# set ip route default 10.5.4.1 1
success: change accepted.
To add two default routes and configure WSS Software to always use the route through 10.2.4.69 when the WSS
interface to that default router is up, type the following commands:
WSS# set ip route default 10.2.4.69 1
success: change accepted.
WSS# set ip route default 10.2.4.17 2
success: change accepted.
To add an explicit route from a WSS 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:
WSS# 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
The following command removes the route to 192.168.4.69/24 that uses defaultgateway router 10.2.4.1:
WSS# 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:
WSS# clear ip route default 10.5.5.5
success: change accepted.
Note. After you remove a route, traffic that uses the route can no longer reach its
destination. For example, if you are managing the WSS with a Telnet session and the
session needs the static route, removing the route also removes the Telnet connection to
the switch.