OSPF-Routes outside network/area being redistributed
Posted: Wed May 18, 2005 8:58 am
I've got OSPF working between two Mikrotik routers. The problem I'm having is that routes that should NOT be propagated, which don't belong in the network/area, are also being replicated. Essentially I have a 10.0.0.0/8 network which is subnetted and routed between multiple routers (actually wireless access points). In order to work on the units from the ground, the ethernet interface is configured with a 192.168.1.0/30 address (this also serves as the power supply via PoE). Even though the network area 0.0.0.0 is configured for 10.0.0.0/8, the 192.168.1.0/30 route is being propagated to the remote routers. I thought the /routing prefix-list option would allow me to invalidate any routes that don't belong to 10.0.0.0/8, but reading the manual states that it only applies to RIP and BGP....and in fact trying to create a prefix-list just to "see" if it would work didn't yield the desired results...
I've overcome a similar problem with the quagga suite (v0.98.3), by using the following commands:
!
router ospf
... SNIP ...
redistribute connected route-map just-10
network 10.0.0.0/8 area 0.0.0.0
... SNIP ...
!
route-map just-10 permit 10
match ip address net-10
!
This effectively stops those routes from being advertised. In the MikroTik OS, I'm not able to find a similar option or easy work around to avoid replicating the 192.168.1.0/30 address space. Has anyone experienced this or can explain what I'm doing wrong?
Below are the configurations for each of the routers.
First router: (Router OS v2.8.27)
Second router: (Router OS v2.8.27)
If you need more details about the configuration, please let me know and I'll gladly provide.
I've overcome a similar problem with the quagga suite (v0.98.3), by using the following commands:
!
router ospf
... SNIP ...
redistribute connected route-map just-10
network 10.0.0.0/8 area 0.0.0.0
... SNIP ...
!
route-map just-10 permit 10
match ip address net-10
!
This effectively stops those routes from being advertised. In the MikroTik OS, I'm not able to find a similar option or easy work around to avoid replicating the 192.168.1.0/30 address space. Has anyone experienced this or can explain what I'm doing wrong?
Below are the configurations for each of the routers.
First router: (Router OS v2.8.27)
Code: Select all
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.1.1/30 192.168.1.0 192.168.1.3 Configuration
1 10.1.4.1/22 10.1.4.0 10.1.7.255 Omni
2 10.0.0.18/30 10.0.0.16 10.0.0.19 PTP
/ip route print
Flags: X - disabled, I - invalid, D - dynamic, J - rejected,
C - connect, S - static, r - rip, o - ospf, b - bgp
# DST-ADDRESS G GATEWAY DISTANCE INTERFACE
0 Do 0.0.0.0/0 r 10.0.0.17 110 PTP
1 DC 192.168.1.0/30 r 0.0.0.0 0 Configuration
2 Do 10.1.12.0/22 r 10.0.0.17 110 PTP
3 Do 10.1.8.0/22 r 10.0.0.17 110 PTP
4 Io 10.1.4.0/22 110
5 DC 10.1.4.0/22 r 0.0.0.0 0 Omni
6 Io 10.0.0.16/30 110
7 DC 10.0.0.16/30 r 0.0.0.0 0 PTP
8 Do 10.0.0.0/29 r 10.0.0.17 110 PTP
/routing ospf print
router-id: 10.0.0.18
distribute-default: never
redistribute-connected: as-type-1
redistribute-static: no
redistribute-rip: no
redistribute-bgp: no
metric-default: 1
metric-connected: 20
metric-static: 20
metric-rip: 20
metric-bgp: 20
/routing ospf network print
Flags: X - disabled, I - invalid
# NETWORK AREA
0 10.0.0.0/8 backbone
/routing ospf interface print
0 interface=Omni cost=1 priority=1 authentication-key=""
retransmit-interval=5s transmit-delay=1s hello-interval=10s
dead-interval=40s
1 interface=PTP cost=1 priority=1 authentication-key=""
retransmit-interval=5s transmit-delay=1s hello-interval=10s
dead-interval=40s
2 interface=PTP-Future cost=1 priority=1 authentication-key=""
retransmit-interval=5s transmit-delay=1s hello-interval=10s
dead-interval=40s
Code: Select all
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 10.0.0.4/29 10.0.0.0 10.0.0.7 Core
1 10.1.8.1/22 10.1.8.0 10.1.11.255 Sector1
2 10.1.12.1/22 10.1.12.0 10.1.15.255 Sector2
3 10.0.0.17/30 10.0.0.16 10.0.0.19 PTP
/ip route print
Flags: X - disabled, I - invalid, D - dynamic, J - rejected,
C - connect, S - static, r - rip, o - ospf, b - bgp
# DST-ADDRESS G GATEWAY DISTANCE INTERFACE
0 S 0.0.0.0/0 r 10.0.0.1 1 Core
1 Do 192.168.1.0/30 r 10.0.0.18 110 PTP
2 Io 10.1.12.0/22 110
3 DC 10.1.12.0/22 r 0.0.0.0 0 Sector2
4 Io 10.1.8.0/22 110
5 DC 10.1.8.0/22 r 0.0.0.0 0 Sector1
6 Do 10.1.4.0/22 r 10.0.0.18 110 PTP
7 Io 10.0.0.16/30 110
8 DC 10.0.0.16/30 r 0.0.0.0 0 PTP
9 Io 10.0.0.0/29 110
10 DC 10.0.0.0/29 r 0.0.0.0 0 Core
/routing ospf print
router-id: 10.0.0.4
distribute-default: if-installed-as-type-1
redistribute-connected: as-type-1
redistribute-static: no
redistribute-rip: no
redistribute-bgp: no
metric-default: 1
metric-connected: 20
metric-static: 20
metric-rip: 20
metric-bgp: 20
/routing ospf interface print
0 interface=Sector1 cost=1 priority=1 authentication-key=""
retransmit-interval=5s transmit-delay=1s hello-interval=10s
dead-interval=40s
1 interface=Sector2 cost=1 priority=1 authentication-key=""
retransmit-interval=5s transmit-delay=1s hello-interval=10s
dead-interval=40s
2 interface=PTP cost=1 priority=1 authentication-key=""
retransmit-interval=5s transmit-delay=1s hello-interval=10s
dead-interval=40s
/routing ospf network print
Flags: X - disabled, I - invalid
# NETWORK AREA
0 10.0.0.0/8 backbone