@根据拓扑图,实现PC端通交换机ping通路由器loop back地址TOC
实现PC端通交换机ping通路由器loop back地址
一. 拓扑图
二、要求
作业要求:
1、AR3上的loopback0 x.x.x.x (x代表学号最后两位,便学号从01-09的取1-9)。
举例学号为2017107201则AR3的loopback0IP地址为1.1.1.1。
2、在PC1上ping 通4.4.4.4和41.41.41.41。
3、在AR1上配置默认静态路由。
三、实现
在AR1中添加如下:
在AR2中添加如下:
然后启动程序。
开始在AR1,AR2,AR3,AR4中配置静态路由。
AR1
AR1
[Huawei]sysname AR1
[AR1]int loopback0
[AR1-LoopBack0]ip address 192.168.20.1 24
[AR1-LoopBack0]qin
[AR1]int s1/0/0
[AR1-Serial1/0/0]ip add 192.168.12.1 24
[AR1-Serial1/0/0]q
[AR1]q
<AR1>save
[AR1]ping 192.168.12.2
PING 192.168.12.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.12.2: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 192.168.12.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.12.2: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.12.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.12.2: bytes=56 Sequence=5 ttl=255 time=20 ms
--- 192.168.12.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/32/60 ms
[AR1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR1>system-view
Enter system view, return user view with Ctrl+Z.
[AR1]ping 41.41.41.41
PING 41.41.41.41: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
--- 41.41.41.41 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
[AR1]ip route-static 41.41.41.41 32 192.168.12.2
[AR1]ping 41.41.41.41
PING 41.41.41.41: 56 data bytes, press CTRL_C to break
Reply from 41.41.41.41: bytes=56 Sequence=1 ttl=254 time=100 ms
Reply from 41.41.41.41: bytes=56 Sequence=2 ttl=254 time=80 ms
Reply from 41.41.41.41: bytes=56 Sequence=3 ttl=254 time=60 ms
Reply from 41.41.41.41: bytes=56 Sequence=4 ttl=254 time=60 ms
Reply from 41.41.41.41: bytes=56 Sequence=5 ttl=254 time=60 ms
--- 41.41.41.41 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 60/72/100 ms
[AR1]ip route-static 4.4.4.4 32 192.168.12.2
[AR1]ping 4.4.4.4
PING 4.4.4.4: 56 data bytes, press CTRL_C to break
Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=254 time=130 ms
Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=254 time=80 ms
Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=254 time=50 ms
Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=254 time=60 ms
Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=254 time=40 ms
--- 4.4.4.4 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/72/130 ms
[AR1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR1>
<AR1>system-view
Enter system view, return user view with Ctrl+Z.
[AR1]int s4/0/1
[AR1-Serial4/0/1]ip add 192.168.12.1
^
Error:Incomplete command found at '^' position.
[AR1-Serial4/0/1]ip add 192.168.12.1 24
Error: The address already exists.
[AR1-Serial4/0/1]q
[AR1]int g0/0/2
[AR1-GigabitEthernet0/0/2]ip add 192.168.20.2 24
Error: The specified address conflicts with another address.
[AR1-GigabitEthernet0/0/2]ip add 192.168.20.1 24
Error: The specified address conflicts with another address.
[AR1-GigabitEthernet0/0/2]ping 192.168.20.1
PING 192.168.20.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.20.1: bytes=56 Sequence=1 ttl=255 time=1 ms
Reply from 192.168.20.1: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 192