Nortel Networks 2300 Series manual WSS# set ip route default 10.5.4.1

Models: 2300 Series

1 622
Download 622 pages 48.74 Kb
Page 127
Image 127

 

 

IP Services Commands 127

 

 

default-router

IP address, DNS hostname, or alias of the next-hop router.

metric

 

Cost for using the route. You can specify a value from

 

 

0 through 2,147,483,647. Lower-cost routes are preferred over

 

 

higher-cost routes.

Defaults

None.

 

Access

Enabled.

 

Usage WSS Software can use a static route only if a direct route in the route table resolves the static route. WSS Software adds routes with next-hop types Local and Direct when you add an IP interface to a VLAN, if the VLAN is up. If one of these added routes can resolve the static route, WSS Software can use the static route.

Before you add a static route, use the show interface command to verify that the switch has an IP interface in the same subnet as the route’s next-hop router. If not, the VLAN:Interface field of the show ip route command output shows that the route is down.

You can configure a maximum of 4 routes per destination. This includes default routes, which have destination 0.0.0.0/0. Each route to a given destination must have a unique router address. When the route table contains multiple default or explicit routes to the same destination, WSS Software uses the route with the lowest cost. If two or more routes to the same destination have the lowest cost, WSS Software selects the first route in the route table.

When you add multiple routes to the same destination, WSS Software groups the routes 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.

Examples The following command adds a default route that uses default router 10.5.4.1 and gives the route a cost of 1:

WSS# set ip route default 10.5.4.1 1

success: change accepted.

The following commands add two default routes, and configure WSS Software to always use the route through

10.2.4.69when the WSS interface to that default router is up:

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.

The following command adds 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 gives the route a cost of 1:

WSS# set ip route 192.168.4.0 255.255.255.0 10.5.4.2 1

success: change accepted.

The following command adds another explicit route, using CIDR notation to specify the subnet mask:

WSS# set ip route 192.168.5.0/24 10.5.5.2 1

success: change accepted.

Nortel WLAN—Security Switch 2300 Series Command Line Reference

Page 127
Image 127
Nortel Networks 2300 Series manual WSS# set ip route default 10.5.4.1, WSS# set ip route 192.168.4.0 255.255.255.0 10.5.4.2