首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >RIPv2路由不是在两个串连路由器之间切换吗?

RIPv2路由不是在两个串连路由器之间切换吗?
EN

Network Engineering用户
提问于 2019-05-29 11:03:26
回答 1查看 187关注 0票数 0

我刚接触过社交网络,现在已经上了6个月的课程了,所以这里可能会有一些粗俗的错误或愚蠢的答案/问题,但我却没有回答。

我有一项任务要设置RIPv2路由。在下面的图片中,您可以看到两个路由器。一个称为路由器3(底部),另一个称为AccessRouter (顶部)。试着忽略从路由器出来的其他电缆。我特别关注在提到的两个路由器之间的串行电缆。

来自AccessRouter (top)的Se0/0/1接口的IP地址为172.30.150.225。来自Router3 (底部)的Se0/0/1接口的IP地址为172.30.150.226。我的路由在我的运行配置中为每个设备配置如下:

Router3

代码语言:javascript
运行
复制
router rip
version 2
 network 172.30.0.0
 no auto-summary
!
ip classless

接入路由器

代码语言:javascript
运行
复制
router rip
 version 2
 redistribute static 
 network 172.30.0.0
 no auto-summary
!
ip classless

现在我已经配置了RIP路由,难道我不能在AccessRouter和Router3 3‘S串行0/0/1端口之间进行ping吗?反之亦然?ping命令只会在两个路由器上产生超时。

如果你需要更多的信息,告诉我。再说一次,我仍然是个菜鸟,在这门课上我一直在努力奋斗。谢谢各位!

编辑:这是两个路由器的串行接口的配置页面。

访问路由器(顶部)

路由器3(底部)

EDIT2:下面是这两个串行接口上显示接口命令的输出。访问路由器(顶部)

代码语言:javascript
运行
复制
AccessRouter#show interface se0/0/1
Serial0/0/1 is up, line protocol is up (connected)
  Hardware is HD64570
  Internet address is 172.30.150.225/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation HDLC, loopback not set, keepalive set (10 sec)
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0 (size/max/drops); Total output drops: 0
  Queueing strategy: weighted fair
  Output queue: 0/1000/64/0 (size/max total/threshold/drops)
     Conversations  0/0/256 (active/max active/max total)
     Reserved Conversations 0/0 (allocated/max allocated)
     Available Bandwidth 1158 kilobits/sec
  5 minute input rate 7 bits/sec, 0 packets/sec
  5 minute output rate 9 bits/sec, 0 packets/sec
     4 packets input, 388 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     3 packets output, 356 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

路由器3(底部)

代码语言:javascript
运行
复制
Router3#sh interface se0/0/1
Serial0/0/1 is up, line protocol is up (connected)
  Hardware is HD64570
  Internet address is 172.30.150.226/30
  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation HDLC, loopback not set, keepalive set (10 sec)
  Last input never, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0 (size/max/drops); Total output drops: 0
  Queueing strategy: weighted fair
  Output queue: 0/1000/64/0 (size/max total/threshold/drops)
     Conversations  0/0/256 (active/max active/max total)
     Reserved Conversations 0/0 (allocated/max allocated)
     Available Bandwidth 1158 kilobits/sec
  5 minute input rate 5 bits/sec, 0 packets/sec
  5 minute output rate 14 bits/sec, 0 packets/sec
     5 packets input, 260 bytes, 0 no buffer
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     6 packets output, 552 bytes, 0 underruns
     0 output errors, 0 collisions, 1 interface resets
     0 output buffer failures, 0 output buffers swapped out
     0 carrier transitions
     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

编辑3-每个路由器

的运行配置文件

接入路由器:

代码语言:javascript
运行
复制
Building configuration...

Current configuration : 1413 bytes
!
version 15.3
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname AccessRouter
!
!
boot system flash c1900-universalk9-mz.SPA.155-3.M4a.bin 
!
enable password class
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524WR40-
license boot module c1900 technology-package FoundationSuiteK9
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 192.168.125.45 255.255.255.240
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 192.168.125.29 255.255.255.224
 duplex auto
 speed auto
!
interface Serial0/0/0
 ip address 172.20.125.193 255.255.255.252
!
interface Serial0/0/1
 ip address 172.30.150.225 255.255.255.252
!
interface Serial0/1/0
 ip address 192.168.225.129 255.255.255.252
!
interface Serial0/1/1
 no ip address
 clock rate 2000000
!
interface Vlan1
 no ip address
 shutdown
!
router rip
 version 2
 redistribute static 
 network 172.20.0.0
 network 172.30.0.0
 network 192.168.125.0
 network 192.168.225.0
 no auto-summary
!
ip classless
ip route 172.20.125.0 255.255.255.128 172.20.125.194 
ip route 172.20.125.128 255.255.255.192 172.20.125.194 
ip route 172.30.150.0 255.255.255.128 172.30.150.226 
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
 password cisco
 login
!
line aux 0
!
line vty 0 4
 password cisco
 login
!
!
!
end

路由器3:

代码语言:javascript
运行
复制
Building configuration...

Current configuration : 1069 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router3
!
!
!
enable password class
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX15241VLN-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 172.30.150.1 255.255.255.128
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 172.30.150.229 255.255.255.252
 clock rate 2000000
!
interface Serial0/0/1
 ip address 172.30.150.226 255.255.255.252
!
interface Serial0/1/0
 ip address 172.30.150.233 255.255.255.252
!
interface Serial0/1/1
 no ip address
 clock rate 2000000
!
interface Vlan1
 no ip address
 shutdown
!
router rip
 version 2
 passive-interface GigabitEthernet0/0
 network 172.30.0.0
 no auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
 password cisco
 login
!
line aux 0
!
line vty 0 4
 password cisco
 login
!
!
!
end
EN

回答 1

Network Engineering用户

发布于 2019-05-30 11:26:19

您没有将时钟设置在两个路由器之间链路的一端。两个interface Serial0/0/1都没有clock rate命令。这意味着您有两个DTE连接,这将无法工作。在一端设置时钟使其成为DCE,而一端必须有DCE,另一端必须有DTE。

此外,您正在通过设置静态路由来破坏访问路由器。路由器本身就知道直接连接的网络,以及如何路由到这些网络。一个直接连接的网络将有一个0的AD (最优先),但是静态路由有一个AD的1。删除RIP下的静态路由和redistribute static

票数 1
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/59474

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档