为了迁移到数据中心内的新机架,我必须在思科交换机和Dell PowerConnect交换机之间复制VLAN设置。
在戴尔交换机上,我有2个VLAN:
vlan 10:WAN vlan 20:MGMT
在思科交换机上,我创build了相同的VLAN并设置了不同的端口范围
vlan10:端口1-12 vlan20:端口13-24
像这样的例子:
interface gigabitethernet2 switchport mode access switchport access vlan 10 exit
思科和戴尔交换机是这样修补的:
Dell (Port 13) ---> Cisco (Port 1) - VLAN 10 Dell (Port 22) ---> Cisco (Port 13) - VLAN 20
以下是configurationCISCO端口的端口:
interface gigabitethernet1 switchport trunk native vlan 10 exit interface gigabitethernet13 switchport trunk native vlan 20 exit
而在DELL SIDE上:
interface gigabitethernet1/0/13 switchport access vlan 10 ! interface gigabitethernet1/0/22 switchport access vlan 20 !
现在,我可以ping任何在vlan20上的东西; 但不能ping任何vlan10上的东西。 我正在拉我的头发。 这里有什么问题?
根本不需要中继 – 这两个VLAN在单独的电缆上运行,并且您不在Dell一侧使用802.1q。
您在Dell上使用的相同命令(switchport access vlan xxx)也可以在Cisco端使用,因为语法实际上是从Cisco(读取:复制)派生而来的。
像戴尔一样configuration思科端。 而不是switchport trunk native vlan 10使用switchport access vlan 10和switchport mode access 。 如果您想要中继VLAN,则可以使用单根电缆,并通过该电缆运行两个VLAN。 这个configuration只是一对接入端口。