重新启动数据包跟踪器后,EtherChannel 端口独立

网络工程 思科 以太通道
2021-07-16 16:25:36

我有两个 L3 交换机(Cisco 3560),no switcport端口连接到 L2 交换机(Cisco 2960)。它曾经可以工作,但是当我保存并重新启动 Packet Tracer 时——所有端口都进入了独立模式。这是端口的配置:

VLAN-40-主(L3):

interface Port-channel5
 no switchport
 ip address 192.168.100.7 255.255.255.0
!
interface FastEthernet0/1
 no switchport
 no ip address
 channel-group 5 mode active
 duplex auto
 speed auto
!
interface FastEthernet0/2
 no switchport
 no ip address
 channel-group 5 mode active
 duplex auto
 speed auto
!

VLAN-30-主(L3):

interface Port-channel6
 no switchport
 ip address 192.168.100.6 255.255.255.0
!
interface FastEthernet0/1
 no switchport
 no ip address
 channel-group 6 mode active
 duplex auto
 speed auto
!
interface FastEthernet0/2
 no switchport
 no ip address
 channel-group 6 mode active
 duplex auto
 speed auto
!

上主干 2 (L2):

interface Port-channel1
 switchport mode trunk

interface Port-channel2
 switchport mode trunk

在此处输入图片说明

Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------------------------------

1      Po1(SD)           LACP   Fa0/1(I) Fa0/2(I) 
2      Po2(SD)           LACP   Fa0/3(I) Fa0/4(I) 
3      Po3(SU)           LACP   Fa0/5(P) Fa0/6(P) 
1个回答

您不能将第 3 层通道连接到第 2 层中继通道,因为第 3 层通道只能处理本地 VLAN,除非您为其创建子接口。请记住,交换机上的第 3 层接口与路由器接口基本相同。

你需要这样的东西:

interface Port-channel5
 description Native VLAN
 no switchport
 encapsulation dot1Q <VLAN Number N> native
 ip address 192.168.100.7 255.255.255.0
!
interface Port-channel5.<VLAN Number X>
 description VLAN <VLAN Number X>
 encapsulation dot1Q <VLAN Number X>
 ip address <VLAN X IP address> <VLAN X Mask>
!
interface Port-channel5.<VLAN Number Y>
 description <VLAN Number Y>
 encapsulation dot1Q <VLAN Number Y>
 ip address <VLAN Y IP address> <VLAN Y Mask>
!
interface FastEthernet0/1
 no switchport
 no ip address
 channel-group 5 mode active
!
interface FastEthernet0/2
 no switchport
 no ip address
 channel-group 5 mode active
!