10G Core Routing Switch User Manual
陈泽科技有限公司
- - 34 - -
www.stephen-tele.com
Figure 12-3
Networking diagram of the static route configuration example
III. Configuration procedure
# Setting switch A VLAN and specifying IP address for VLAN
switchA(config)#
interface vlan 2
switchA(config-if)#
ipaddress 1.1.1.2 255.255.255.0
switchA(config)#
exit
switchA(config)#
interface vlan 3
switchA(config-if)#
ipaddress 1.1.2.1 255.255.255.0
# Setting default route for switch A
switchA(config)#
ip route 0.0.0.0 0.0.0.0 1.1.2.2
# Setting switch B VLAN and specifying IP address for VLAN
switchB(config)#
interface vlan 2
switchB(config-if)#
ipaddress 1.1.3.2 255.255.255.0
switchB(config)#
exit
switchB(config)#
interface vlan 3
switchB(config-if)#
ipaddress 1.1.4.1 255.255.255.0
# Setting default route for switch B
switchB(config)#
ip route 0.0.0.0 0.0.0.0 1.1.3.1
# Setting switch C VLAN and specifying IP address for VLAN
switchC(config)#
interface vlan 2
switchC(config-if)#
ipaddress 1.1.2.2 255.255.255.0
switchC(config-if)#
exit
switchC(config)#
interface vlan 3
switchC(config-if)#
ipaddress 1.1.3.1 255.255.255.0
switchC(config-if)#
exit
switchC(config)#
interface vlan 4
switchC(config-if)#
ipaddress 1.1.5.2 255.255.255.0