The topology diagram is as follows:
1. Create channel ports on two Layer 3 switches: the commands are the same ( note: unlink the two links before configuration )
Switch(config)#int port-channel 1 // Create channel port
Switch(config-if)#exit
Switch(config)#int range g0/1-2
Switch(config-if-range)#switchport trunk encapsulation dot1q
Switch(config-if-range)#switchport mode trunk
Switch(config-if-range)#channel-group 1 mode on // Add the port to the channel port and open it manually
2. Realize vlan synchronization through the vtp domain. Configure the first switch0 as the object:
Switch(config)#vtp domain tt //tt is the domain name
Changing VTP domain name from NULL to tt
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#exit
3. Assign port to vlan
Configuration of switch0:
Switch(config)#int f0/3
Switch(config-if)#sw access vlan 10
Configuration of switch1:
Switch(config)#int f0/3
Switch(config-if)#sw access vlan 20
4. Choose a Layer 3 switch to implement routing between vlans
switch0 is configured for the object:
Switch(config)#ip routing
Switch(config)#int vlan 10
Switch(config-if)#ip address 10.0.0.100 255.0.0.0
Switch(config-if)#exit
Switch(config)#int vlan 20
Switch(config-if)#ip address 20.0.0.100 255.0.0.0
5. Test and view configuration results
Both hosts can ping
View ethernet channels
Switch#show etherchannel summary