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) |