参考上图:如果设置正确,10.124.124.141 应该能够 ping 10.124.124.161 吗?中间没有路由器,这个想法是 VLAN 215 跨越两个中继在一起的交换机,如果您愿意,可以组成一个 48 端口交换机。然而,我没有让这个工作(ping 从任何一方都失败)。交换机 2 上端口 16 的配置为:
interface GigabitEthernet1/0/16
switchport trunk allowed vlan 10,20,215
switchport mode trunk
!
交换机 1 上端口 11 的配置为:
interface GigabitEthernet1/0/11
switchport trunk allowed vlan 10,20,215
switchport mode trunk
spanning-tree portfast
!
交换机 1 和 2 上端口 21 的配置为:
interface GigabitEthernet1/0/21
switchport mode trunk
srr-queue bandwidth share 1 30 35 5
priority-queue out
mls qos trust cos
macro description cisco-switch
auto qos trust
spanning-tree link-type point-to-point
!
端口 23 的配置与端口 21 相同。
