交换机端口聚合

交换机端口聚合
SW1:
undo terminal monitor
[~SW1]sysname SW1
[~SW1]interface Eth-Trunk 1
[~SW1-Eth-Trunk1]undo portswitch
[~SW1-Eth-Trunk1]ip address 192.168.1.1 24

[~SW1]int g1/0/0
[~SW1-GE1/0/0]eth-trunk 1

[~SW1]int g1/0/1
[~SW1-GE1/0/1]eth-trunk 1

[~SW1]int g1/0/2
[~SW1-GE1/0/2]eth-trunk 1
[~SW1]interface LoopBack 0
[~SW1-LoopBack0]ip address 172.16.1.1 24

SW2:
undo terminal monitor
[~SW2]sysname SW2
[~SW2]interface Eth-Trunk 1
[~SW2-Eth-Trunk1]undo portswitch
[~SW2-Eth-Trunk1]ip address 192.168.1.2 24

[~SW2]int g1/0/0
[~SW2-GE1/0/0]eth-trunk 1

[~SW2]int g1/0/1
[~SW2-GE1/0/1]eth-trunk 1

[~SW2]int g1/0/2
[~SW2-GE1/0/2]eth-trunk 1
[~SW2]interface LoopBack 0
[~SW2-LoopBack0]ip address 172.16.1.2 24
SW1静态路由:
[~SW1]ip route-static 172.16.2.0 24 192.168.1.2
SW2静态路由:
[~SW2]ip route-static 172.16.1.0 24 192.168.1.1