Configuring and Managing IP Interfaces and Services 121

Adding a Static Route

To add a static route, use the following command:

set ip route {default ip-addr mask ip-addr/mask-length}gateway 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, 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 gateway 10.5.4.1 and has a cost of 1, type the following command:

23x0# 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 gateway router is up, type the following commands:

23x0# set ip route default 10.2.4.69 1 success: change accepted.

23x0# set ip route default 10.2.4.17 2 success: change accepted.

To add an explicit route from an WSS 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:

23x0# set ip route 192.168.4.0 255.255.255.0 10.5.4.2 1

success: change accepted.

Nortel WLAN Security Switch 2300 Series Configuration Guide

Page 121
Image 121
Nortel Networks 2300 manual Adding a Static Route, 23x0# set ip route default 10.5.4.1