主要目的:在eNSP里添加路由器,并连接互联网
一、华为模拟器实操录像:
二、步骤:
1、在本机电脑上添加一块LoopBack(环回网卡)。方法:开始,运行,hdwwiz,打开添加硬件向导,下一步,手动,下一步,网络适配器,下一步,左边找到MicroSoft,右边找到MicroSoft KM-TEST环回适配器(Windows10)或MicroSoft LoopBack Adapter(Windows 7),下一步,下一步,完成。
2、在本地连接(连接互联网的本地连接)设置Internet连接共享。
3、在云朵里添加:绑定UDP和“环回网卡”的本地连接,在端口映射设置里,修改入端口编号:2,增加端口映射表。
4、给路由器AR1的Gi0/0/0接口设置和环回网卡同一网段的地址。
5、在路由器AR1上添加默认路由:ip route-static 0.0.0.0 0.0.0.0 192.168.137.1
6、AR1的主要配置:
#
interface GigabitEthernet0/0/0
ip address 192.168.137.2 255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.137.1
#
return
7、测试AR1到云朵(互联网)的连通性
ping 61.128.114.166
PING 61.128.114.166: 56 data bytes, press CTRL_C to break
Reply from 61.128.114.166: bytes=56 Sequence=1 ttl=55 time=50 ms
Reply from 61.128.114.166: bytes=56 Sequence=2 ttl=55 time=30 ms
Reply from 61.128.114.166: bytes=56 Sequence=3 ttl=55 time=20 ms
Reply from 61.128.114.166: bytes=56 Sequence=4 ttl=55 time=20 ms
Reply from 61.128.114.166: bytes=56 Sequence=5 ttl=55 time=30 ms
--- 61.128.114.166 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/30/50 ms
领取专属 10元无门槛券
私享最新 技术干货