根据拓扑图,实现PC端通交换机ping通路由器loop back地址

本文介绍了如何根据拓扑图,实现PC通过交换机ping通路由器的loop back地址。作业要求包括设定AR3的loopback0 IP地址,并配置AR1的默认静态路由,以确保在PC1上能ping通特定地址。文章详细展示了在AR1、AR2、AR3和AR4中的配置步骤,并提供了设备设置和网关计算方法的链接。
摘要由CSDN通过智能技术生成

@根据拓扑图,实现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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值