STP+基于LACP的port channel实验_2配置分享

  |   0浏览

核心交换机:switchleft#show running-config Building configuration...

Current configuration : 1826 bytes!version 16.3.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname switchleft!no ip cefip routing!no ipv6 cef!

spanning-tree mode pvst!!

interface Port-channel30no switchportip address 172.16.1.1 255.255.255.0!interface GigabitEthernet1/0/1switchport access vlan 200switchport mode accessswitchport nonegotiate!interface GigabitEthernet1/0/2no switchportno ip addressduplex autospeed autochannel-group 30 mode active!interface GigabitEthernet1/0/3no switchportno ip addressduplex autospeed autochannel-group 30 mode active!!interface Vlan1no ip addressshutdown!interface Vlan200mac-address 0005.5ed6.ad01ip address 192.168.200.1 255.255.255.0!interface Vlan210mac-address 0005.5ed6.ad02no ip address!ip classlessip route 192.168.0.0 255.255.0.0 192.168.200.2 !ip flow-export version 9!!

line con 0!line aux 0!line vty 0 4login!

end

汇聚交换机:leftl2#show running-config Building configuration...

Current configuration : 2810 bytes!version 12.2(37)SE1no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname leftl2!

!ip routing!

spanning-tree mode pvstspanning-tree vlan 20 priority 8192spanning-tree vlan 21 priority 24576!interface Loopback21ip address 172.16.100.21 255.255.255.0!interface Port-channel3switchport trunk encapsulation dot1qswitchport mode trunk!interface Port-channel5switchport access vlan 100switchport mode accessswitchport nonegotiate!interface FastEthernet0/1switchport trunk encapsulation dot1qswitchport mode trunkchannel-protocol lacpchannel-group 3 mode active!interface FastEthernet0/2switchport trunk encapsulation dot1qswitchport mode trunkchannel-protocol lacpchannel-group 3 mode active!interface FastEthernet0/3switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/4switchport trunk encapsulation dot1qswitchport mode trunk!interface FastEthernet0/5switchport access vlan 200switchport mode accessswitchport nonegotiate!interface FastEthernet0/6switchport mode accessswitchport nonegotiateshutdown!

!interface GigabitEthernet0/1switchport access vlan 100switchport mode accessswitchport nonegotiatechannel-group 5 mode on!interface GigabitEthernet0/2switchport access vlan 100switchport mode accessswitchport nonegotiatechannel-group 5 mode on!interface Vlan1no ip addressshutdown!interface Vlan20mac-address 00d0.bcc5.2101ip address 192.168.20.252 255.255.255.0ip helper-address 192.168.200.253standby 20 ip 192.168.20.254standby 20 priority 150standby 20 preempt!interface Vlan21mac-address 00d0.bcc5.2102ip address 192.168.21.252 255.255.255.0ip helper-address 192.168.200.253standby 21 ip 192.168.21.254standby 21 preempt!interface Vlan50mac-address 00d0.bcc5.2103ip address 192.168.50.252 255.255.255.0ip helper-address 192.168.200.253standby 50 ip 192.168.50.254!interface Vlan200mac-address 00d0.bcc5.2104ip address 192.168.200.2 255.255.255.0!ip classlessip route 0.0.0.0 0.0.0.0 192.168.200.1 !ip flow-export version 9!!line con 0!line aux 0!line vty 0 4login!end

原文地址:https://blog.51cto.com/14813861/2507098