1,需要的安装包:
链接:https://pan.baidu.com/s/1U38OENqOeKXDN0-ipFTxwA?pwd=sd12
提取码:sd12
安装eNSP
根据提示:需要先安装wireshark, VirtualBox, winPcap,所以我们接下来先依次安装上面三个安装包。
1,安装wireshark
不用改配置,一直下一步就可以。
更改安装路径:
2,安装winpcap
解决方法:
找到下面相应的文件,并把扩展名修改即可:
C:\Windows\SysWOW64 的wpcap.dll改成 wpcap.dll.old
C:\Windows\SysWOW64的packet.dll改成 packet.dll.old
改了之后再安装可以成功。
3,安装VirtualBix
更改安装路径
4,安装eNsp
安装成功后测试:
点击AR1->右击->启动,后右击->CLI进入华为命令行。
system-view进入命令行配置
<Huawei>######################################################
<Huawei>
Apr 12 2023 10:07:24-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface Ethernet
0/0/0 has turned into UP state.
<Huawei>sys
<Huawei>system-view
[Huawei]interface Ethernet 0/0/0
[Huawei-Ethernet 0/0/0]ip address 10.10.10.1 24
AR2相同的配置
<Huawei>system-view
[Huawei]interface Ethernet 0/0/1
[Huawei-Ethernet /0/1]ip address 10.10.10.3 24
配置完成后,在AR2/AR1上ping包查看通道。
[Huawei]ping 10.10.10.1
PING 10.10.10.1: 56 data bytes, press CTRL_C to break
Reply from 10.10.10.1: bytes=56 Sequence=1 ttl=255 time=110 ms
Reply from 10.10.10.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 10.10.10.1: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.10.10.1: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 10.10.10.1: bytes=56 Sequence=5 ttl=255 time=10 ms--- 10.10.10.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/42/110 ms
[Huawei]display interface Ethernet 0/0/0
Ethernet0/0/0 current state : UP
Line protocol current state : UP
Description:HUAWEI, AR Series, Ethernet0/0/0 Interface
Switch Port, PVID : 1, TPID : 8100(Hex), The Maximum Frame Length is 1628
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fca7-470a
Last physical up time : 2023-04-12 11:11:24 UTC-08:00
Last physical down time : 2023-04-12 11:11:09 UTC-08:00
Current system time: 2023-04-12 11:12:42-08:00
Port Mode: COMMON COPPER
Speed : 100, Loopback: NONE
Duplex: FULL, Negotiation: ENABLE
Mdi : AUTO
Last 300 seconds input rate 128 bits/sec, 0 packets/sec
Last 300 seconds output rate 8 bits/sec, 0 packets/sec
Input peak rate 584 bits/sec,Record time: 2023-04-12 11:11:40
Output peak rate 280 bits/sec,Record time: 2023-04-12 11:11:40
Input: 42 packets, 5166 bytes
Unicast: 0, Multicast: 42
Broadcast: 0, Jumbo: 0
Discard: 0, Total Error: 0
CRC: 0, Giants: 0
Jabbers: 0, Throttles: 0
Runts: 0, Symbols: 0
Ignoreds: 0, Frames: 0
Output: 3 packets, 357 bytes
Unicast: 0, Multicast: 3
Broadcast: 0, Jumbo: 0
Discard: 0, Total Error: 0
Collisions: 0, ExcessiveCollisions: 0
Late Collisions: 0, Deferreds: 0
Input bandwidth utilization threshold : 100.00%
Output bandwidth utilization threshold: 100.00%
Input bandwidth utilization : 0%
Output bandwidth utilization : 0%
[Huawei]lldp enable
Apr 12 2023 11:16:52-08:00 Huawei LLDP/4/ADDCHGTRAP:OID: 16777216.50331648.10066
3296.16777216.67108864.16777216.3674669056.83886080.419430400.2248146944.3355443
2.83886080 Local management address is changed. (LocManIPAddr=1.0.0.127)
[Huawei]
Info: Global LLDP is enabled successfully.
[Huawei]
Apr 12 2023 11:16:52-08:00 Huawei LLDP/4/ENABLETRAP:OID: 16777216.50331648.10066
3296.16777216.67108864.16777216.3674669056.83886080.419430400.2248146944.3355443
2.16777216 Global LLDP is enabled.
[Huawei]display lldp neighbor brief
Local Intf Neighbor Dev Neighbor Intf Exptime
Eth0/0/0 Huawei Eth0/0/1 99