在两个cisco路由器的S口之间做了PPP封装,也都通过了认证,可以起动态路由协议,如RIP,EIGRP,OSPF等,但是双方却无法学到对方通告的路由,在本地路由表里只有C状态,也就是直连的路由,没有其他路由。
请问怎么在PPP链路上做动态路由协议?
希望大家不要复制一些概念性的东西,也不要讲PPP是什么,干什么的,我就想知道怎么在PPP链路上做动态路由协议,谢谢!
喔,我忘了说了。
我在两个路由上都加了loopback口,但就是路由协议能起来,但是对方学不到。
你们可以用模拟器试试,做了PPP的链路上好像不能直接起动态路由协议,听说得用到借用IP的方法。
就是在通向PPP链路的S口上用“ip unnumbered [接口]”来借一个接口的IP还是怎么的。我不知道怎么弄
希望有高手指点!!
PPP上做路由协议
答案:3 悬赏:20 手机版
解决时间 2021-12-28 22:55
- 提问者网友:川水往事
- 2021-12-28 02:47
最佳答案
- 五星知识达人网友:舍身薄凉客
- 2021-12-28 03:30
I used packet tracer 5.1 set up a simple topology, 2 routers R1, R2 .
R1: s0/0/0 10.10.10.1/24 DCE
loopback0 192.168.1.1/ 24
R2: s0/0/0 10.10.10.2/24 DTE
loopback0 172.16.0.5/16
configuration on R1:
R1(config)# int s0/0/0
R1(config-if)# ip add 10.10.10.1 255.255.255.0
R1(config-if)# encapsulation PPP
R1(config-if)# clock rate 64000
R1(config-if)# no shut
R1(config-if)# exit
R1(config)# int loopback0
R1(config-if)# ip add 192.168.1.1 255.255.255.0
R1(config-if)# rotuer ospf 1
R1(config-router)# net 10.10.10.0 0.0.0.255 area 0
R1(config-router)# net 192.168.1.0 0.0.0.255 area 0
configuration on R2:
R2(config)# int s0/0/0
R2(config-if)# ip add 10.10.10.2 255.255.255.0
R2(config-if)# encapsulation PPP
R2(config-if)# no shut
R2(config-if)# exit
R2(config)# int loopback 0
R2(config-if)# ip add 172.16.0.5 255.255.0.0
R2(config-if)# router ospf 1
R2(config-rotuer)# net 10.10.10.0 0.0.0.255 area 0
R2(config-router)# net 172.16.0.0 0.0.255.255 area 0
Verification on R1
R1# show ip route
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Serial0/0/0
172.16.0.0/32 is subnetted, 1 subnets
O 172.16.0.5 [110/65] via 10.10.10.2, 00:00:29, Serial0/0/0
C 192.168.1.0/24 is directly connected, Loopback0
R1#ping 172.16.0.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms
Verification on R2
R2# show ip route
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Serial0/0/0
C 172.16.0.0/16 is directly connected, Loopback0
192.168.1.0/32 is subnetted, 1 subnets
O 192.168.1.1 [110/65] via 10.10.10.1, 00:20:31, Serial0/0/0
R2# ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 15/28/32 ms
-----------------------------------------------------------
Are these what u want?
R1: s0/0/0 10.10.10.1/24 DCE
loopback0 192.168.1.1/ 24
R2: s0/0/0 10.10.10.2/24 DTE
loopback0 172.16.0.5/16
configuration on R1:
R1(config)# int s0/0/0
R1(config-if)# ip add 10.10.10.1 255.255.255.0
R1(config-if)# encapsulation PPP
R1(config-if)# clock rate 64000
R1(config-if)# no shut
R1(config-if)# exit
R1(config)# int loopback0
R1(config-if)# ip add 192.168.1.1 255.255.255.0
R1(config-if)# rotuer ospf 1
R1(config-router)# net 10.10.10.0 0.0.0.255 area 0
R1(config-router)# net 192.168.1.0 0.0.0.255 area 0
configuration on R2:
R2(config)# int s0/0/0
R2(config-if)# ip add 10.10.10.2 255.255.255.0
R2(config-if)# encapsulation PPP
R2(config-if)# no shut
R2(config-if)# exit
R2(config)# int loopback 0
R2(config-if)# ip add 172.16.0.5 255.255.0.0
R2(config-if)# router ospf 1
R2(config-rotuer)# net 10.10.10.0 0.0.0.255 area 0
R2(config-router)# net 172.16.0.0 0.0.255.255 area 0
Verification on R1
R1# show ip route
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Serial0/0/0
172.16.0.0/32 is subnetted, 1 subnets
O 172.16.0.5 [110/65] via 10.10.10.2, 00:00:29, Serial0/0/0
C 192.168.1.0/24 is directly connected, Loopback0
R1#ping 172.16.0.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.0.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms
Verification on R2
R2# show ip route
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Serial0/0/0
C 172.16.0.0/16 is directly connected, Loopback0
192.168.1.0/32 is subnetted, 1 subnets
O 192.168.1.1 [110/65] via 10.10.10.1, 00:20:31, Serial0/0/0
R2# ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 15/28/32 ms
-----------------------------------------------------------
Are these what u want?
全部回答
- 1楼网友:七十二街
- 2021-12-28 05:22
说明书。
- 2楼网友:深街酒徒
- 2021-12-28 04:13
你不都做了吗?
你只有一个网络,就是连接2个路由的,再没有网了,怎么会出来呢?
你可以在路由上加环回口,就有了,协议里就体现出来了
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯