R1配置
[SW1]vlan 10
[SW1-vlan10]quit
[SW1]int eth	
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]quit
[SW1]int gi0/0/1
[SW1-GigabitEthernet0/0/1]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-GigabitEthernet0/0/1]int gi0/0/2
[SW1-GigabitEthernet0/0/2]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]port link-type ac	
[SW1-Eth-Trunk1]port link-type access 
[SW1-Eth-Trunk1]port default vlan 10
[SW1]int vlanif 10
[SW1-Vlanif10]ip add 12.1.1.1 255.255.255.0
[SW1]display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to SIP-XOR-DIP         
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8              
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------

PortName                      Status      Weight 
GigabitEthernet0/0/1          Up          1      
GigabitEthernet0/0/2          Up          1    



R2配置
[SW2]vlan 10
[SW2-vlan10]int eth	
[SW2-vlan10]quit
[SW2]int Eth-Trunk 1
[SW2-Eth-Trunk1]trunkport gi0/0/1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]trunkport gi0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]port link-type access 
[SW2-Eth-Trunk1]port default vlan 10
[SW2]int vlanif 10
[SW2-Vlanif10]ip add 12.1.1.2 255.255.255.0
[SW2]display eth-trunk 1
Eth-Trunk1's state information is:
WorkingMode: NORMAL         Hash arithmetic: According to SIP-XOR-DIP         
Least Active-linknumber: 1  Max Bandwidth-affected-linknumber: 8              
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
PortName                      Status      Weight 
GigabitEthernet0/0/1          Up          1      
GigabitEthernet0/0/2          Up          1      
测试
[SW2-Eth-Trunk1]ping -c 10000 12.1.1.1
拓扑

三层聚合(交换机)_交换机