兩臺交換機S5720經過堆疊線進行堆疊,並設置虛擬管理IP地址爲172.30.5.1;
與防火牆USG6305E進行互聯,,防火牆IP地址:172.30.5.40,以下圖所示:
防火牆的GE0/0/0 與 GE0/0/1 聚合爲access口,與兩臺交換機的G0/0/24口互聯。ide
設置 vlanif 5 的接口類型及IP地址:
ui
端口GE0/0/0 以及 GE0/0/1 加入到vlanif5 的接口,並設置爲交換模式:
blog
[sw-core1]interface stack-port 0/2
[sw-core1-stack-port0/2]port interface xgigabitethernet 0/0/4 enable
[sw-core1-stack-port0/2]quit接口
[sw-core1]stack slot 0 priority 200ip
[sw-core2]interface stack-port 0/1
[sw-core2-stack-port0/1]port interface xgigabitethernet 0/0/3 enable
[sw-core2-stack-port0/1]quit路由
[sw-core2]interface stack-port 0/2
[sw-core2-stack-port0/2]port interface xgigabitethernet 0/0/4 enable
[sw-core2-stack-port0/2]quitit
[sw-core2]stack slot 0 renumber 1io
保存後重啓交換(先重啓sw-core1,再重啓sw-core2)class
查看堆疊狀態:
[sw-core1]display stack
配置
交換機與防火牆互聯
[sw-core1]int eth-trunk 1
[sw-core1-Eth-trunk1]port link-type access
[sw-core1-Eth-trunk1]port default vlan 5
[sw-core1-Eth-trunk1]description conn_fw-5.40-GE0/0/1-0/0/2
[sw-core1]interface g0/0/24
[sw-core1-gigabitEthernet0/0/24]eth-trunk 1
[sw-core1-gigabitEthernet0/0/24]description conn_fw-5.40-GE0/0/0
[sw-core1-gigabitEthernet0/0/24]quit
[sw-core1]interface g1/0/24
[sw-core1-gigabitEthernet1/0/24]eth-trunk 1
[sw-core1-gigabitEthernet1/0/24]description conn_fw-5.40-GE0/0/1
[sw-core1-gigabitEthernet1/0/24]quit