• 【关于ensp的bug】关于网传mac地址颠倒学习的现象


    lab

    一台交换机下挂两台pc机,分别为pc1和pc2,pc1和pc2的网络规划如下表。

    host nameip address/subnet mastMac-addressGateway
    PC110.1.1.1/2454-89-98-6A-7B-E1-
    PC110.1.1.2/2454-89-98-EA-60-B0-

    确保switch的Mac地址表和arp表是空的

    dis mac-address 
    
    dis arp all
    IP ADDRESS      MAC ADDRESS     EXPIRE(M) TYPE INTERFACE      VPN-INSTANCE      
                                              VLAN 
    ------------------------------------------------------------------------------
    ------------------------------------------------------------------------------
    Total:0         Dynamic:0       Static:0     Interface:0    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8

    如果mac地址非空使用undo Mac-address

    <Huawei>system-view 
    [Huawei]undo mac-address 
    Info: This operation will delete all MAC address entries except DHCP sticky MAC 
    and NAC MAC.
    
    • 1
    • 2
    • 3
    • 4

    pc1 ping 不存在的ip地址(10.1.1.10)

    PC>ping 10.1.1.10
    
    Ping 10.1.1.10: 32 data bytes, Press Ctrl_C to break
    From 10.1.1.1: Destination host unreachable
    From 10.1.1.1: Destination host unreachable
    From 10.1.1.1: Destination host unreachable
    From 10.1.1.1: Destination host unreachable
    From 10.1.1.1: Destination host unreachable
    
    --- 10.1.1.10 ping statistics ---
      5 packet(s) transmitted
      0 packet(s) received
      100.00% packet loss
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13

    swicth

    [Huawei]dis mac-address 
    MAC address table of slot 0:
    -------------------------------------------------------------------------------
    MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
                   VSI/SI                                              MAC-Tunnel  
    -------------------------------------------------------------------------------
    5489-986a-7be1 1           -      -      GE0/0/1         dynamic   0/-         
    -------------------------------------------------------------------------------
    Total matching items on slot 0 displayed = 1 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9

    pc1 ping pc2

    PC>ping 10.1.1.2
    
    Ping 10.1.1.2: 32 data bytes, Press Ctrl_C to break
    From 10.1.1.2: bytes=32 seq=1 ttl=128 time=46 ms
    From 10.1.1.2: bytes=32 seq=2 ttl=128 time=63 ms
    From 10.1.1.2: bytes=32 seq=3 ttl=128 time=46 ms
    From 10.1.1.2: bytes=32 seq=4 ttl=128 time=63 ms
    From 10.1.1.2: bytes=32 seq=5 ttl=128 time=46 ms
    
    --- 10.1.1.2 ping statistics ---
      5 packet(s) transmitted
      5 packet(s) received
      0.00% packet loss
      round-trip min/avg/max = 46/52/63 ms
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14

    swicth

    [Huawei]dis mac-address
    MAC address table of slot 0:
    -------------------------------------------------------------------------------
    MAC Address    VLAN/       PEVLAN CEVLAN Port            Type      LSP/LSR-ID  
                   VSI/SI                                              MAC-Tunnel  
    -------------------------------------------------------------------------------
    5489-986a-7be1 1           -      -      GE0/0/1         dynamic   0/-         
    5489-98ea-60b0 1           -      -      GE0/0/2         dynamic   0/-         
    -------------------------------------------------------------------------------
    Total matching items on slot 0 displayed = 2 
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10

    实验结果并未出现mac地址颠倒的现象,ensp正常。

  • 相关阅读:
    数据结构与算法之堆: Leetcode 451. 根据字符出现频率排序 (Typescript版)
    C语言与Java语言传输数据 需要转位
    CentOS7.9 安装postgresql
    【无标题】
    多目标优化算法:基于非支配排序的高尔夫优化算法(NSGOA)MATLAB
    单链表头尾指针
    递归求数组笛卡尔积
    JAVA八股文面经问题整理第5弹
    java特种兵读书笔记(4-3)——java通信之IO与通信调度方式
    Go-Python-Java-C-LeetCode高分解法-第十周合集
  • 原文地址:https://blog.csdn.net/qq_33980465/article/details/128138316