华为核心交换机:S5720S-36C-EI-AC 管理IP:172.30.5.1 华为桌面交换机:S5700S-52P-LI-AC 管理IP:172.30.5.10 核心交换机的 G0/0/24,G1/0/24 聚合与 桌面交换机的 G0/0/47 ,G0/0/48的聚合口通过trunk互联
核心交换机配置: [SW_CORE_5.1]interface eth-trunk 1 [SW_CORE_5.1-eth-trunk1]port link-type trunk [SW_CORE_5.1-eth-trunk1]port trunk allow-pass vlan all [SW_CORE_5.1-eth-trunk1]des conn_sw_acc_5.10 [SW_CORE_5.1-eth-trunk1]quit [SW_CORE_5.1]int g0/0/24 [SW_CORE_5.1-G0/0/24]eth-trunk 1 [SW_CORE_5.1-G0/0/24]des conn_sw_acc_5.10-G0/0/47 [SW_CORE_5.1-G0/0/24]quit
[SW_CORE_5.1]int g1/0/24 [SW_CORE_5.1-G1/0/24]eth-trunk 1 [SW_CORE_5.1-G1/0/24]des conn_sw_acc_5.10-G0/0/48 [SW_CORE_5.1-G1/0/24]quit
接入层交换机配置: [SW_ACC_5.10]interface eth-trunk 1 [SW_ACC_5.10-eth-trunk1]port link-type trunk [SW_ACC_5.10-eth-trunk1]port trunk allow-pass vlan all [SW_ACC_5.10-eth-trunk1]des conn_sw_core_5.1 [SW_ACC_5.10-eth-trunk1]quit
[SW_ACC_5.10]int g0/0/24 [SW_ACC_5.10-G0/0/47]eth-trunk 1 [SW_ACC_5.10-G0/0/47]des conn_sw_core_5.1-G0/0/47 [SW_ACC_5.10-G0/0/47]quit
[SW_ACC_5.10]int g0/0/48 [SW_ACC_5.10-G0/0/48]eth-trunk 1 [SW_ACC_5.10-G0/0/48]des conn_sw_core_5.1-G0/0/48 [SW_ACC_5.10-G0/0/48]quit
添加静态路由:
[SW_CORE_5.1]ip route-static 0.0.0.0 0.0.0.0 172.30.5.1
查看聚合端口状态: [SW_CORE_5.1]dis int eth-trunk 1