各设备的端口配置如下:
按照网络拓扑图,各设备按照从上到下的顺序配置如下:
①ISP各端口参数配置如下:
[ISP]display ip interface brief
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 1.1.1.2/24 up up
GigabitEthernet0/0/1 5.5.5.1/24 up up
LoopBack0 2.2.2.2/24 up up(s)
②AR各端口参数配置如下:
[AR]display ip interface brief
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 1.1.1.1/24 up up
GigabitEthernet0/0/1 172.16.1.2/24 up up
GigabitEthernet0/0/2 172.16.2.2/24 up up
③Core1各端口参数配置如下:
[Core1]display ip interface brief
Interface IP Address/Mask Physical Protocol
Vlanif10 192.168.10.250/24 up up
Vlanif20 192.168.20.250/24 up up
Vlanif30 192.168.30.250/24 up up
Vlanif40 192.168.40.250/24 up up
Vlanif50 192.168.50.250/24 up up
Vlanif100 172.16.1.1/24 up up
[Core1]interface Eth-Trunk 1 //创建链路聚合
[Core1-Eth-Trunk1]port link-type trunk
[Core1-Eth-Trunk1]port trunk allow-pass vlan 10 20 30 40 50
[Core1-Eth-Trunk1]mode lacp-static //配置模式为LACP
[Core1-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/2 //捆绑接口
[Core1]interface GigabitEthernet0/0/3
[Core1-GigabitEthernet0/0/3]port link-type access
[Core1-GigabitEthernet0/0/3]port default vlan 100
[Core1]interface GigabitEthernet0/0/4
[Core1-GigabitEthernet0/0/4]port link-type trunk
[Core1-GigabitEthernet0/0/4]port trunk allow-pass vlan 10 20
[Core1]interface GigabitEthernet0/0/5
[Core1-GigabitEthernet0/0/5]port link-type trunk
[Core1-GigabitEthernet0/0/5]port trunk allow-pass vlan 30
[Core1]interface GigabitEthernet0/0/6
[Core1-GigabitEthernet0/0/6]port link-type trunk
[Core1-GigabitEthernet0/0/6]port trunk allow-pass vlan 40
[Core1]interface GigabitEthernet0/0/7
[Core1-GigabitEthernet0/0/7]port link-type trunk
[Core1-GigabitEthernet0/0/7]port trunk allow-pass vlan 50
④Core2各端口参数配置如下:
[Coer2]vlan batch 10 20 30 40 50 101
[Coer2]display ip interface brief
Interface IP Address/Mask Physical Protocol
Vlanif10 192.168.10.251/24 up up
Vlanif20 192.168.20.251/24 up up
Vlanif30 192.168.30.251/24 up up
Vlanif40 192.168.40.251/24 up up
Vlanif50 192.168.50.251/24 up up
Vlanif101 172.16.2.1/24 up up
[Coer2]interface Eth-Trunk 1
[Coer2-Eth-Trunk1]port link-type trunk
[Coer2-Eth-Trunk1]port trunk allow-pass vlan 10 20 30 40 50
[Coer2-Eth-Trunk1]mode lacp-static
[Coer2-Eth-Trunk1]trunkport GigabitEthernet 0/0/1 to 0/0/2
[Core2]interface GigabitEthernet0/0/3
[Core2-GigabitEthernet0/0/3]port link-type access
[Core2-GigabitEthernet0/0/3]port default vlan 101
[Core2]interface GigabitEthernet0/0/4
[Core2-GigabitEthernet0/0/4]port link-type trunk
[Core2-GigabitEthernet0/0/4]port trunk allow-pass vlan 10 20
[Core2]interface GigabitEth