如何通过 LAN 连接两台 Cisco Catalyst 2950?

如何通过 LAN 连接两台 Cisco Catalyst 2950?

我正在尝试通过各自的 FastEthernet 0/1 端口连接 (2) 个 Cisco Catalyst 2950,但由于某种原因,它们无法通信。我这样做是为了物理扩展我的网络并添加更多网络端口。

在 SwitchA (10.10.10.1) 上我有:

!
interface Porth-Channel1
 description UPLINK
 switchport mode trunk
 switchport nonegotiate
 flowcontrol send off
end
!
interface FastEthernet0/1
 description ETHERNET-UPLINK
 switchport mode trunk
 channel-group 1 mode active
end

在 SwitchB (10.10.10.2) 上我有:

!
interface Porth-Channel1
 description UPLINK
 switchport mode trunk
 switchport nonegotiate
 flowcontrol send off
end
!
interface FastEthernet0/1
 description ETHERNET-UPLINK
 switchport mode trunk
 channel-group 1 mode active
end

我在 8 端口 2960 (SwitchC) 上设置了相同的配置,如果我将 SwitchC 的 FastEthernet 0/1 插入 SwitchB 或 SwitchA,它就可以正常工作。但如果我将 SwitchB 的 FastEthernet 0/1 插入 SwitchA,它就无法正常工作。

我是否遗漏了什么?如何才能将 2 个 Cisco 2950 交换机连接在一起?

更新 1

在SwitchA上:

#show int port-channel 1 trunk

Port        Mode         Encapsulation  Status        Native vlan
Po1         on           802.1q         trunking      1

Port      Vlans allowed on trunk
Po1         1-4094

Port        Vlans allowed and active in management domain
Po1         1-2,5,30,112,115,120

Port        Vlans in spanning tree forwarding state and not pruned
Po1         1-2,5,30,112,115,120

在SwitchB上:

#show int port-channel 1 trunk

Port        Mode         Encapsulation  Status        Native vlan
Po1         on           802.1q         trunking      1

Port      Vlans allowed on trunk
Po1         none

Port        Vlans allowed and active in management domain
Po1         none

Port        Vlans in spanning tree forwarding state and not pruned
Po1         none

对于 SwitchB,我尝试添加所有允许的 VLAN,但没有任何改变:

#config t
#int port-channel 1
#switchport trunk allowed vlan all

我也尝试过:

#switchport trunk allowed vlan 1-4094

但允许的 VLAN 并没有按照我指示的那样改变。我该如何解决这个问题?

更新2

show int po1 switchport我在两个交换机上运行了:

交换机A

#show int po1 switchport
Name: Po1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Protected: false

Appliance trust: none

交换机B

#show int po1 switchport
Name: Po1
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: Off
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Protected: false

Appliance trust: none

仍然不知道为什么show int po1 trunk会这样Vlans allowed on trunk: none

答案1

为什么首先要使用端口通道?我没有看到与该端口通道关联的任何接口。

尝试添加 vlan Fa0/1

Switch(config-if)# switchport trunk allowed vlan add 1

另外,您是否已打开自动 MDIX?如果没有,请确保使用交叉电缆或在接口上启用自动 MDIX:

Switch(config-if)# mdix auto

相关内容