华为s5700交换机使用配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_38637595/article/details/89817598

说明

  • 这次要做的是不做任何配置,将设备接到交换机上,测试会发生什么
  • 交换机默认在配置模式下输入命令(即登录设备后执行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
10.1.1.1/24
A:10.1.1.100
B:10.1.1.101
SW:s5700
  • 在看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 

不同网段直接接入

  • 现在再接入两台设备
192.168.1.1/24
10.1.1.1/24
C:192.168.1.100
D:192.168.1.101
A:10.1.1.100
B:10.1.1.101
SW:s5700
  • 此时从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不通

猜你喜欢

转载自blog.csdn.net/weixin_38637595/article/details/89817598