Cisco3560基本配置如下, 3560作为主交换机 划分3个VLAN. VLAN2内接3台2610路由器, VLAN3 VLAN4各接一台2960交换机。 是否可以通过静态路由指定VLAN3 VLAN4 通过相应的路由器访问不同的网络。 3台路由器是在同一个VLAN内,也不想划分不同网段起3层路由端口,因为尽量不想更改路由器的任何现有配置。
VLAN 2
interface VLAN2
ip address 192.168.0.254 255.255.255.0
int f0/1
switchport mode access
switchport access VLAN 2
(联接router1)
int f0/2
switchport mode access
switchport access VLAN 2
(联接router2)
int f0/3
switchport mode access
switchport access VLAN 2
(联接router3)
intVLAN 3
interface VLAN3
ip address 192.168.1.254 255.255.255.0
int f0/10
switchport mode access
switchport access VLAN 3
(联接switch 1)
VLAN 4
interface VLAN4
ip address 192.168.2.254 255.255.255.0
int f0/11
switchport mode access
switchport access VLAN 4
(联接switch 2)
ip routing
ip route 10.1.1.0 255.255.255.0 192.168.0.1(route1)
ip route 10.2.2.0 255.255.255.0 192.168.0.2(route2)
ip route 10.3.3.0 255.255.255.0 192.168.0.3(route3)