我设置了帧中继,并且可以成功地从 R1 ping 到 R2。我遇到的问题是没有 OSPF 广告。我在映射 IP 时明确声明了广播。以下是我的配置:
R1:
interface Serial0/0
ip address 10.10.10.1 255.255.255.252
encapsulation frame-relay
ip ospf network broadcast
ip ospf priority 0
no keepalive
serial restart-delay 0
clock rate 64000
frame-relay map ip 10.10.10.2 201 broadcast
router ospf 1
log-adjacency-changes
network 10.10.10.0 0.0.0.3 area 0
R2:
interface Loopback0
ip address 10.12.0.1 255.255.255.0
interface Serial0/0
ip address 10.10.10.2 255.255.255.252
encapsulation frame-relay
ip ospf network broadcast
ip ospf priority 0
no keepalive
serial restart-delay 0
frame-relay map ip 10.10.10.1 201 broadcast
router ospf 1
log-adjacency-changes
network 10.10.10.0 0.0.0.3 area 0
network 10.12.0.0 0.0.0.255 area 0
当我询问路由信息时:
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/30 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Serial0/0
我不明白为什么它不起作用。我正在使用 GNS3。