- 积分
- 73
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2018-3-12
- 最后登录
- 1970-1-1
- 阅读权限
- 20
- 听众
- 收听
助理工程师
![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 2](https://cdn.hh010.com/static/image/common/star_level1.gif)
|
本帖最后由 lostlsend 于 2018-7-24 13:04 编辑
三台路由器 hub-spoke拓扑 R1Hub R2&R3 Spoke 分别loopback 1.1.1.1 2.2.2.2 和3.3.3.3
Q1: 为什么R2有R3的路由信息 但是ping不通R3
R1能分别ping通R2和R3的loopback
我拿wireshark抓包R2的S2/0端口发现根本没有发送任何ICMP报文 为什么?
R2 route table:
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R 1.1.1.0/24 [120/1] via 202.101.100.1, 00:00:10, Serial2/0
O 1.1.1.1/32 [110/65] via 202.101.100.1, 00:16:43, Serial2/0
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.2.2.0/24 is directly connected, Loopback0
L 2.2.2.2/32 is directly connected, Loopback0
3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R 3.3.3.0/24 [120/2] via 202.101.100.3, 00:00:10, Serial2/0
O 3.3.3.3/32 [110/65] via 202.101.100.3, 00:16:33, Serial2/0
202.101.100.0/24 is variably subnetted, 2 subnets, 2 masks
C 202.101.100.0/24 is directly connected, Serial2/0
L 202.101.100.2/32 is directly connected, Serial2/0
Q2: 为什么R2学习到的RIP和OSPF下一跳地址是R3的而不是R1的?
因为在我重启前RIP的下一跳地址是指向R1而OSPF是直接指向R3
配置如下:
R1:
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
!
interface Serial2/0
ip address 202.101.100.1 255.255.255.0
encapsulation frame-relay
ip ospf priority 255
serial restart-delay 0
frame-relay map ip 202.101.100.2 102
frame-relay map ip 202.101.100.3 103
!
router ospf 1
network 1.1.1.1 0.0.0.0 area 0
network 202.101.100.1 0.0.0.0 area 0
neighbor 202.101.100.3
neighbor 202.101.100.2
!
router rip
version 2
network 1.0.0.0
network 202.101.100.0
neighbor 202.101.100.2
neighbor 202.101.100.3
no auto-summary
R2:
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface Serial2/0
ip address 202.101.100.2 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 202.101.100.1 201
!
router ospf 1
network 2.2.2.2 0.0.0.0 area 0
network 202.101.100.2 0.0.0.0 area 0
neighbor 202.101.100.1
!
router rip
version 2
network 2.0.0.0
network 202.101.100.0
neighbor 202.101.100.1
no auto-summary
R3:
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Serial2/0
ip address 202.101.100.3 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 202.101.100.1 301
!
router ospf 1
network 3.3.3.3 0.0.0.0 area 0
network 202.101.100.3 0.0.0.0 area 0
neighbor 202.101.100.1
!
router rip
version 2
network 3.0.0.0
network 202.101.100.0
neighbor 202.101.100.1
no auto-summary
FRswitch:
interface Serial2/1
no ip address
encapsulation frame-relay
serial restart-delay 0
frame-relay intf-type dce
frame-relay route 102 interface Serial2/2 201
frame-relay route 103 interface Serial2/3 301
!
interface Serial2/2
no ip address
encapsulation frame-relay
serial restart-delay 0
frame-relay intf-type dce
frame-relay route 201 interface Serial2/1 102
!
interface Serial2/3
no ip address
encapsulation frame-relay
serial restart-delay 0
frame-relay intf-type dce
frame-relay route 301 interface Serial2/1 103
所有路由器运行的是i86bi-linux-l3-adventerprisek9-ms.155-2.T.bin 在gns3环境中
|
|