說明
- 這次要做的是不做任何配置,將設備接到交換機上,測試會發生什麼
- 交換機默認在配置模式下輸入命令(即登錄設備後執行
system-view
命令)
結論
- 如果華爲s5700交換機沒做任何配置
No | 說明 |
---|---|
1 | 將同網段設備接入此設備是互通的 |
2 | 將不同網段設備接入此設備是不通的 |
同網段直接接入
- 在A和B接上SW之前,我們登錄SW看下
- 我們可以看到所有的端口都處於down狀態
[Huawei]display interface brief
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
(e): ETHOAM down
(dl): DLDP down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface PHY Protocol InUti OutUti inErrors outErrors
GigabitEthernet0/0/1 down down 0% 0% 0 0
GigabitEthernet0/0/2 down down 0% 0% 0 0
...
GigabitEthernet0/0/23 down down 0% 0% 0 0
GigabitEthernet0/0/24 down down 0% 0% 0 0
MEth0/0/1 down down 0% 0% 0 0
NULL0 up up(s) 0% 0% 0 0
Vlanif1 down down -- -- 0 0
- 現在,將A接到SW的接口1,B接到接口2
- 在看SW的配置
- 這時可以看到(省略沒有發生變化的)
[Huawei]display interface brief
...
Interface PHY Protocol InUti OutUti inErrors outErrors
GigabitEthernet0/0/1 up up 0% 0% 0 0
GigabitEthernet0/0/2 up up 0% 0% 0 0
...
Vlanif1 up down -- -- 0 0
-
這時可以看到接口1和2的PHY和Protocol轉態爲UP
-
此時我們從A ping B是可以ping通的
-
接着我們查看下mac信息
[Huawei]display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
VSI/SI MAC-Tunnel
-------------------------------------------------------------------------------
5489-988c-5665 1 - - GE0/0/2 dynamic 0/-
5489-98b7-4472 1 - - GE0/0/1 dynamic 0/-
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 2
不同網段直接接入
- 現在再接入兩臺設備
- 此時從C ping D是通的
- 在看路由表
[Huawei]display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------
MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
VSI/SI MAC-Tunnel
-------------------------------------------------------------------------------
5489-988c-5665 1 - - GE0/0/2 dynamic 0/-
5489-98b7-4472 1 - - GE0/0/1 dynamic 0/-
5489-98b5-61f4 1 - - GE0/0/3 dynamic 0/-
5489-9893-1c76 1 - - GE0/0/4 dynamic 0/-
-------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 4
- 這時我們從C ping D,結果發現ping不通