如图的拓扑。在2台msr800设置了 ospf,邻接关系FULL。因为要上网,在2台msr800也设置了地址转换 。
发现,如果设置了地址转换,能上网,但 192.168.2.0/24 就 无法与 192.168.3.0/24 互通。把两台MSR800的 地址 转换删除了 ,192.168.2.0/24 就 与 192.168.3.0/24 互通,但不能上网。请问要 怎么做到,192.168.2.0/24 与 192.168.3.0/24 互通,又能上网呢?
另外,如果想192.168.2.0/24与 192.168.3.0/24 互通,并且PC端用PPPOE拨号到PPPOE SVR (192.168.88.1),请教怎么设置呢?期望大神老师指点,感谢。
(0)
最佳答案
[RT3]display ospf brief
OSPF Process 1 with Router ID 3.3.3.3
OSPF Protocol Information
RouterID: 3.3.3.3 Router Type:
Route Tag: 0
Multi-VPN-Instance is not enabled
Applications Supported: MPLS Traffic-Engineering
ISPF is not enabled
SPF-schedule-interval: 5
LSA generation interval: 5
LSA arrival interval: 1000
Transmit pacing: Interval: 20 Count: 3
Default ASE parameters: Metric: 1 Tag: 1 Type: 2
Route Preference: 10
ASE Route Preference: 150
SPF Computation Count: 10
RFC 1583 Compatible
Graceful restart interval: 120
Area Count: 1 Nssa Area Count: 0
ExChange/Loading Neighbors: 0
Area: 0.0.0.3 (MPLS TE not enabled)
Authtype: None Area flag: Normal
SPF Scheduled Count: 10
ExChange/Loading Neighbors: 0
Interface: 3.3.3.3 (LoopBack0)
Cost: 0 State: Loopback Type: PTP MTU: 1536
Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1
Interface: 192.168.3.1 (Vlan-interface1)
Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 192.168.3.1
Backup Designated Router: 0.0.0.0
Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1
Interface: 192.168.88.199 (GigabitEthernet0/0)
Cost: 1 State: BDR Type: Broadcast MTU: 1500
Priority: 1
Designated Router: 192.168.88.196
Backup Designated Router: 192.168.88.199
Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1
[RT3]
**************************************************
[RT3]display ospf peer
OSPF Process 1 with Router ID 3.3.3.3 Neighbor Brief Information Area: 0.0.0.3 Router ID Address Pri Dead-Time Interface State 2.2.2.2 192.168.88.196 1 33 GE0/0 Full/DR [RT3]
(0)
您好,请知:
部署NAT后OSPF中断,以下是排查要点,请参考:
1、NAT只需要在外网口配置就好,不需要在内网口和隧道口配置。
2、隧道口的地址也需要在OSPF内宣告。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
[RT3]display ospf brief OSPF Process 1 with Router ID 3.3.3.3 OSPF Protocol Information RouterID: 3.3.3.3 Router Type: Route Tag: 0 Multi-VPN-Instance is not enabled Applications Supported: MPLS Traffic-Engineering ISPF is not enabled SPF-schedule-interval: 5 LSA generation interval: 5 LSA arrival interval: 1000 Transmit pacing: Interval: 20 Count: 3 Default ASE parameters: Metric: 1 Tag: 1 Type: 2 Route Preference: 10 ASE Route Preference: 150 SPF Computation Count: 10 RFC 1583 Compatible Graceful restart interval: 120 Area Count: 1 Nssa Area Count: 0 ExChange/Loading Neighbors: 0 Area: 0.0.0.3 (MPLS TE not enabled) Authtype: None Area flag: Normal SPF Scheduled Count: 10 ExChange/Loading Neighbors: 0 Interface: 3.3.3.3 (LoopBack0) Cost: 0 State: Loopback Type: PTP MTU: 1536 Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1 Interface: 192.168.3.1 (Vlan-interface1) Cost: 1 State: DR Type: Broadcast MTU: 1500 Priority: 1 Designated Router: 192.168.3.1 Backup Designated Router: 0.0.0.0 Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1 Interface: 192.168.88.199 (GigabitEthernet0/0) Cost: 1 State: BDR Type: Broadcast MTU: 1500 Priority: 1 Designated Router: 192.168.88.196 Backup Designated Router: 192.168.88.199 Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1 [RT3]
外网路由器已经做好策略,192.168.88.0/24都能上网的。2个MSR800是自动获取IP(88.X)带两网段的。
配置静态地址吧,不要自动获取
老师 ,是不是,静态与 动态不是很主要,在ospf 中设置的是 192.168.2.0 0.0.0.255 的反掩码。
外网路由器看下路由情况
[admin@MikroTik] /ip route> print Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit # DST-ADDRESS PREF-SRC GATEWAY DISTANCE 0 A S 0.0.0.0/0 192.168.168.1 1 1 ADC 192.168.88.0/24 192.168.88.1 bridge1 0 2 ADC 192.168.168.0/24 192.168.168.253 wan 0