Nortel Networks 2300 Switch User Manual


 
Configuring and managing IP interfaces and services 127
Nortel WLAN—Security Switch 2300 Series Configuration Guide
Default route—Forwarding path for traffic to a destination without an explicit route in the route table
A destination can be a subnet or network. If two static routes specify a destination, the more specific route is always
chosen (longest prefix match). For example, if you have a static route with a destination of 10.10.1.0/24, and another
static route with a destination of 10.10.0.0/16, the first static route is chosen to reach 10.10.1.15, because it has the
longer prefix match.
If the IP route table contains an explicit route for a given destination, WSS Software uses the route. Otherwise, WSS
Software uses a default route. For example, if the route table does not have a route to host 192.168.1.10, the WSS uses
the default route to forward a packet addressed to that host. Nortel recommends that you configure at least one default
route.
You can configure a maximum of four 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 gateway address. When the route table contains multiple
default routes or multiple explicit routes to the same destination, WSS Software uses the route with the lowest metric
(cost for using the route). If two or more routes to the same destination have the lowest cost, WSS Software selects the
first route in the route table.
WSS Software can use a route only if the route is resolved by a direct route on one of the WSS switch’s VLANs.
Displaying IP routes
To display IP routes, use the following command:
show ip route [destination]
The destination parameter specifies a destination IP address.
To display the IP route table, type the following command:
WSS# show ip route
Router table for IPv4
Note. 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 default router (gateway). WSS
Software requires the routes for the interface to resolve the static route. If the switch does
not have an interface in the default router’s subnet, the static route cannot be resolved and
the VLAN:Interface field of the show ip route command output shows that the static route
is down.
Destination/
Mask
Proto Metric NH-Type
Gateway
VLAN:Interface
0.0.0.0/ 0 Static 1 Router 10.0.1.17 vlan:1:ip
0.0.0.0/ 0 Static 2 Router 10.0.2.17 vlan:2:ip
1 0. 0. 1 . 1/ 2 4 I P 0 D i r ec t vl an : 1 :i p
1 0. 0. 1 . 1/ 3 2 I P 0 Lo ca l vl a n :1 :i p : 10 . 0 .1 .1 / 2 4
10.0.1.255/32 IP 0 Local vlan:1:ip:10.0.1.1/24
1 0. 0. 2 . 1/ 2 4 I P 0 D i r ec t vl an : 2 :i p