Nortel 2350 用户指南

下载
页码 758
128 Configuring and managing IP interfaces and services
NN47250-500 (320657-F Version 02.01)
This example shows dynamic routes added by WSS Software for two VLAN interfaces, 10.0.1.1/24 on VLAN 1 and 
10.0.2.1/24 on VLAN 2. 
This example also shows two static routes, which have a next-hop type (NH-Type) value of Router. Static routes have a 
default router, listed in the Gateway field. The 0.0.0.0 destination represents a default route. Here, default router 
10.0.1.17 is reachable through the subnet on VLAN 1. Route 10.0.1.1/24 resolves the static route that uses the default 
router. Default router 10.0.2.17 is reachable through the subnet on VLAN 2 and route 10.0.2.1/24 resolves the static 
route to that gateway. 
WSS Software adds routes with next-hop types Direct and Local when you add an IP interface to a VLAN, when the 
VLAN is up. Direct routes are for the locally attached subnets that the switch’s IP addresses are in. Local routes are for 
destination interfaces configured on the WSS itself. 
WSS Software automatically adds the 224.0.0.0 route to support the IGMP snooping feature.
If a VLAN is administratively disabled or all of the links in the VLAN go down or are disabled, WSS Software removes 
the VLAN’s routes from the route table. If the direct route required by a static route goes down, WSS Software changes 
the static route state to Down. If the route table contains other static routes to the same destination, WSS Software selects 
the resolved route that has the lowest cost. In the following example, the default route to 10.0.1.17 is down, so WSS 
Software selects the default route to 10.0.2.17.
WSS
show ip route
Router table for IPv4
(For more information about the fields in the output, see the 
Nortel WLAN Security Switch 2300 Series Command Line 
Reference
.)
Adding a static route
To add a static route, use the following command:
set ip route {default | ip-addr mask | ip-addr/mask-lengthdefault-router metric
       10.0.2.1/32 
IP           
0 Local                   
vlan:2:ip:10.0.1.1/24
     10.0.2.255/32 
IP           
0 Local                   
vlan:2:ip:10.0.1.1/24
            224.0.0.0/  4 
IP                     
0 Local                   
MULTICAST
Destination/
Mask   
Proto   
Metric 
NH-Type 
Gateway         
VLAN:Interface
        0.0.0.0/ 0 
Static       
1 Router  
10.0.1.17       
Down
        0.0.0.0/ 0 
Static       
2 Router  
10.0.2.17       
vlan:2:ip
       10.0.2.1/24 
IP           
0 Direct                  
vlan:2:ip
       10.0.2.1/32 
IP           
0 Direct 
vlan:2:ip:10.0.1.1/24
     10.0.2.255/32 
IP           
0 Direct 
vlan:2:ipp:10.0.1.1/24
            224.0.0.0/  4 
IP                     
0 Local                   
MULTICAST