A-A+

在华为eNSP模拟器中设置路由与本机网卡通信

2015年11月21日 站长资讯 暂无评论

这次采用的是华为eNSP模拟器,来设置路由器和电脑的本地网卡的通信。

1、在模拟器中添加一个AR1220路由,设置GE0/0/0接口与本机网卡绑定。

2、启动AR1路由,进入GE0/0/0接口: interface giga 0/0/0

3、设置GE0/0/0接口IP地址与本机的在同一子网: ip add 192.168.1.7 24

4、退出并与本机互ping,如果安装有360安全卫士、QQ电脑管家等安全/杀毒软件,请关闭软件或将eNSP加入白名单。

在ensp模拟器中的命令如下:

  1. <Huawei>system-view  
  2.   
  3. Enter system view, return user view with Ctrl+Z.  
  4.   
  5. [Huawei]interface giga 0/0/0  
  6.   
  7. [Huawei-GigabitEthernet0/0/0]quit  
  8.   
  9. [Huawei]ping 192.168.1.7  
  10.   
  11.   PING 192.168.1.7: 56  data bytes, press CTRL_C to break  
  12.   
  13.     Request time out  
  14.   
  15.     Request time out  
  16.   
  17.     Request time out  
  18.   
  19.   --- 192.168.1.7 ping statistics ---  
  20.   
  21.     3 packet(s) transmitted  
  22.   
  23.     0 packet(s) received  
  24.   
  25.     100.00% packet loss  
  26.   
  27. [Huawei]interface giga 0/0/0  
  28.   
  29. [Huawei-GigabitEthernet0/0/0]ip address 192.168.1.7 24  
  30.   
  31. [Huawei-GigabitEthernet0/0/0]  
  32.   
  33. Jan 25 2013 09:22:20-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol  
  34.   
  35.  IP on the interface GigabitEthernet0/0/0 has entered the UP state.  
  36.   
  37. Jan 25 2013 09:22:20-08:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5  
  38.   
  39. .25.191.3.1 configurations have been changed. The current change number is 1, th  
  40.   
  41. e change loop count is 0, and the maximum number of records is 4095.  
  42.   
  43. [Huawei-GigabitEthernet0/0/0]quit  
  44.   
  45. [Huawei]ping 192.168.1.7  
  46.   
  47.   PING 192.168.1.7: 56  data bytes, press CTRL_C to break  
  48.   
  49.     Reply from 192.168.1.7: bytes=56 Sequence=1 ttl=255 time=30 ms  
  50.   
  51.     Reply from 192.168.1.7: bytes=56 Sequence=2 ttl=255 time=1 ms  
  52.   
  53.     Reply from 192.168.1.7: bytes=56 Sequence=3 ttl=255 time=20 ms  
  54.   
  55.     Reply from 192.168.1.7: bytes=56 Sequence=4 ttl=255 time=20 ms  
  56.   
  57.     Reply from 192.168.1.7: bytes=56 Sequence=5 ttl=255 time=30 ms  
  58.   
  59.   --- 192.168.1.7 ping statistics ---  
  60.   
  61.     5 packet(s) transmitted  
  62.   
  63.     5 packet(s) received  
  64.   
  65.     0.00% packet loss  
  66.   
  67.     round-trip min/avg/max = 1/20/30 ms  
  68.   
  69. [Huawei]ping 192.168.1.111  
  70.   
  71.   PING 192.168.1.111: 56  data bytes, press CTRL_C to break  
  72.   
  73.     Reply from 192.168.1.111: bytes=56 Sequence=1 ttl=64 time=30 ms  
  74.   
  75.     Reply from 192.168.1.111: bytes=56 Sequence=2 ttl=64 time=1 ms  
  76.   
  77.     Reply from 192.168.1.111: bytes=56 Sequence=3 ttl=64 time=30 ms  
  78.   
  79.     Reply from 192.168.1.111: bytes=56 Sequence=4 ttl=64 time=1 ms  
  80.   
  81.     Reply from 192.168.1.111: bytes=56 Sequence=5 ttl=64 time=20 ms  
  82.   
  83.   --- 192.168.1.111 ping statistics ---  
  84.   
  85.     5 packet(s) transmitted  
  86.   
  87.     5 packet(s) received  
  88.   
  89.     0.00% packet loss  
  90.   
  91.     round-trip min/avg/max = 1/16/30 ms  
  92.   
  93. [Huawei]  

到此,华为路由器就可以和自己本机上的网卡实现数据交换和共享了。

标签:

给我留言