I have a complex topology and a problem. First, the complete scenario:
HQ - (PPTP over Intranet) - HAS - (Wireless Link) - K1 - (PPTP over Intranet) - K2
And also:
HQ - (PPTP over Intranet) - K1Backup - (Cable) - K1
HQ - (PPTP over Intranet) - K2Backup - (Cable) - K2
K1Backup and K2Backups are connected through LTE for failover connecting to HQ. There are 5 other routers not running OSPF connected to this network via static routes.
And configurations (only non-OSPF routes displayed):
HQ:
Code: Select all
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.134.30/24 192.168.134.0 Local
1 w.x.y.z/29 w.x.y.z Internet
2 192.168.126.220/29 192.168.126.216 Intranet
3 192.168.125.202/25 192.168.125.128 Local
4 172.15.0.1/32 172.15.0.1 loopback
5 D 192.168.134.30/32 192.168.124.102 <pptp-PSJ>
6 D 192.168.134.30/32 192.168.124.52 <pptp-BIK>
7 D 172.16.2.9/32 172.16.2.10 K1
8 D 172.16.2.13/32 172.16.2.14 K2
9 D 172.16.2.5/32 172.16.2.6 HAS
10 D 192.168.134.30/32 192.168.183.102 <pptp-MYZ>
/ip route print where !ospf
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 w.x.y.z 1
1 ADC w.x.y.z/29 w.x.y.x Internet 0
2 ADC 172.15.0.1/32 172.15.0.1 loopback 0
3 A S 172.16.0.0/12 192.168.134.10 1
4 ADC 172.16.2.6/32 172.16.2.5 HAS 0
5 ADC 172.16.2.10/32 172.16.2.9 K1 0
6 ADC 172.16.2.14/32 172.16.2.13 K2 0
7 A S 192.168.0.0/16 192.168.134.10 1
8 A S 192.168.23.168/29 192.168.126.217 1
9 A S 192.168.52.208/29 192.168.126.217 1
10 A S 192.168.111.184/29 192.168.126.217 1
11 A S 192.168.124.0/26 192.168.124.52 1
12 ADC 192.168.124.52/32 192.168.134.30 <pptp-BIK> 0
13 A S 192.168.124.64/26 192.168.124.102 1
14 ADC 192.168.124.102/32 192.168.134.30 <pptp-PSJ> 0
15 ADC 192.168.125.128/25 192.168.125.202 Local 0
16 ADC 192.168.126.216/29 192.168.126.220 Intranet 0
17 ADC 192.168.134.0/24 192.168.134.30 Local 0
18 A S 192.168.183.64/26 192.168.183.102 1
19 ADC 192.168.183.102/32 192.168.134.30 <pptp-MYZ> 0
/routing ospf export
/routing ospf area
add area-id=1.0.0.0 name=KFI
/routing ospf instance
set [ find default=yes ] metric-connected=1 metric-static=10 redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=172.15.0.1
/routing ospf interface
add cost=100 interface=K1 network-type=point-to-point
add cost=100 interface=K2 network-type=point-to-point
add interface=HAS network-type=point-to-point
/routing ospf network
add area=KFI network=192.168.0.0/16
add area=KFI network=172.16.0.0/12
add area=backbone network=172.16.2.4/30
add area=backbone network=172.16.2.8/30
add area=backbone network=172.16.2.12/30
/routing filter print
Flags: X - disabled
0 chain=ospf-out prefix=w.x.y.z/29 invert-match=no action=discard set-bgp-prepend-path=""
1 chain=ospf-out prefix=192.168.23.168/29 invert-match=no action=discard set-bgp-prepend-path=""
2 chain=ospf-in prefix=192.168.23.168/29 invert-match=no action=discard set-bgp-prepend-path=""
3 chain=ospf-out prefix=192.168.52.208/29 invert-match=no action=discard set-bgp-prepend-path=""
4 chain=ospf-in prefix=192.168.52.208/29 invert-match=no action=discard set-bgp-prepend-path=""
5 chain=ospf-out prefix=192.168.111.184/29 invert-match=no action=discard set-bgp-prepend-path=""
6 chain=ospf-in prefix=192.168.111.184/29 invert-match=no action=discard set-bgp-prepend-path=""
7 chain=ospf-out prefix=192.168.126.216/29 invert-match=no action=discard set-bgp-prepend-path=""
8 chain=ospf-in prefix=192.168.126.216/29 invert-match=no action=discard set-bgp-prepend-path=""
HAS:
Code: Select all
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.23.174/29 192.168.23.168 Intranet
1 172.16.2.17/30 172.16.2.16 K1
2 172.27.2.2/24 172.27.2.0 PSJ
3 172.27.5.2/24 172.27.5.0 GBB
4 172.15.0.2/32 172.15.0.2 loopback
5 D 172.16.2.6/32 172.16.2.5 HQ
/ip route print where !ospf
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 172.16.2.5 1
1 ADC 172.15.0.2/32 172.15.0.2 loopback 0
2 ADC 172.16.2.5/32 172.16.2.6 HQ 0
3 ADC 172.16.2.16/30 172.16.2.17 K1 0
4 ADC 172.27.2.0/24 172.27.2.2 PSJ 0
5 ADC 172.27.5.0/24 172.27.5.2 GBB 0
6 ADC 192.168.23.168/29 192.168.23.174 Intranet 0
7 A S 192.168.25.128/27 172.27.5.1 1
8 A S 192.168.52.208/29 192.168.23.169 1
9 A S 192.168.111.184/29 192.168.23.169 1
10 A S 192.168.126.216/29 192.168.23.169 1
11 A S 192.168.169.0/25 172.27.2.1 1
/routing ospf export
/routing ospf area
add area-id=1.0.0.0 name=KFI
/routing ospf instance
set [ find default=yes ] metric-connected=1 metric-static=10 redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=172.15.0.2
/routing ospf network
add area=KFI network=172.27.2.0/24
add area=backbone network=172.16.2.16/30
add area=KFI network=172.27.5.0/24
add area=backbone network=172.16.2.4/30
/routing filter print
Flags: X - disabled
0 chain=ospf-out prefix=192.168.23.168/29 invert-match=no action=discard set-bgp-prepend-path=""
1 chain=ospf-in prefix=192.168.23.168/29 invert-match=no action=discard set-bgp-prepend-path=""
2 chain=ospf-out prefix=192.168.52.208/29 invert-match=no action=discard set-bgp-prepend-path=""
3 chain=ospf-in prefix=192.168.52.208/29 invert-match=no action=discard set-bgp-prepend-path=""
4 chain=ospf-out prefix=192.168.111.184/29 invert-match=no action=discard set-bgp-prepend-path=""
5 chain=ospf-in prefix=192.168.111.184/29 invert-match=no action=discard set-bgp-prepend-path=""
6 chain=ospf-out prefix=192.168.126.216/29 invert-match=no action=discard set-bgp-prepend-path=""
7 chain=ospf-in prefix=192.168.126.216/29 invert-match=no action=discard set-bgp-prepend-path=""
K1:
Code: Select all
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.125.102/25 192.168.125.0 Local
1 172.16.2.18/30 172.16.2.16 HAS
2 172.19.0.0/24 172.19.0.0 Local
3 172.20.0.0/24 172.20.0.0 Local
4 172.31.7.126/30 172.31.7.124 TCI
5 172.16.2.25/30 172.16.2.24 Backup
6 172.15.0.3/32 172.15.0.3 loopback
7 D 172.16.2.21/32 172.16.2.22 <pptp-K2>
/ip route print where !ospf
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 172.16.2.17 1
1 A S 10.139.2.0/24 172.31.7.125 1
2 ADC 172.15.0.3/32 172.15.0.3 loopback 0
3 ADC 172.16.2.16/30 172.16.2.18 HAS 0
4 ADC 172.16.2.22/32 172.16.2.21 <pptp-K2> 0
5 ADC 172.16.2.24/30 172.16.2.25 Backup 0
6 ADC 172.19.0.0/24 172.19.0.0 Local 0
7 ADC 172.20.0.0/24 172.20.0.0 Local 0
8 ADC 172.31.7.124/30 172.31.7.126 TCI 0
9 ADC 192.168.125.0/25 192.168.125.102 Local 0
/routing ospf export
/routing ospf area
add area-id=1.0.0.0 name=KFI
/routing ospf instance
set [ find default=yes ] metric-connected=1 metric-static=10 redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=172.15.0.3
/routing ospf network
add area=KFI network=192.168.125.0/25
add area=KFI network=172.19.0.0/24
add area=KFI network=172.20.0.0/24
add area=backbone network=172.16.2.16/30
add area=backbone network=172.16.2.20/30
add area=backbone network=172.16.2.24/30
K1Backup:
Code: Select all
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 172.16.2.26/30 172.16.2.24 K1
1 172.15.0.5/32 172.15.0.5 loopback
2 D 199.168.88.254/24 199.168.88.0 Internet
3 D 172.16.2.10/32 172.16.2.9 HQ
/ip route print where !ospf
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 ADS 0.0.0.0/0 199.168.88.1 1
1 ADC 172.15.0.5/32 172.15.0.5 loopback 0
2 ADC 172.16.2.9/32 172.16.2.10 HQ 0
3 ADC 172.16.2.24/30 172.16.2.26 K1 0
4 ADC 199.168.88.0/24 199.168.88.254 Internet 0
/routing ospf export
/routing ospf area
add area-id=1.0.0.0 name=KFI
/routing ospf instance
set [ find default=yes ] metric-connected=1 metric-static=10 redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=172.15.0.5
/routing ospf interface
add cost=100 interface=HQ network-type=point-to-point
/routing ospf network
add area=backbone network=172.16.2.24/30
add area=backbone network=172.16.2.8/30
/routing filter print
Flags: X - disabled
0 chain=ospf-out prefix=199.168.88.0/24 invert-match=no action=discard set-bgp-prepend-path=""
K2:
Code: Select all
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.179.52/25 192.168.179.0 Local
1 172.21.0.0/24 172.21.0.0 Local
2 10.139.2.2/24 10.139.2.0 TCI
3 172.16.2.29/30 172.16.2.28 Backup
4 172.15.0.4/32 172.15.0.4 loopback
5 D 172.16.2.22/32 172.16.2.21 K1
/ip route print where !ospf
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 172.16.2.21 1
1 ADC 10.139.2.0/24 10.139.2.2 TCI 0
2 ADC 172.15.0.4/32 172.15.0.4 loopback 0
3 ADC 172.16.2.21/32 172.16.2.22 K1 0
4 ADC 172.16.2.28/30 172.16.2.29 Backup 0
5 ADC 172.21.0.0/24 172.21.0.0 Local 0
6 A S 172.31.7.124/30 10.139.2.1 1
7 ADC 192.168.179.0/25 192.168.179.52 Local 0
/routing ospf export
/routing ospf area
add area-id=1.0.0.0 name=KFI
/routing ospf instance
set [ find default=yes ] metric-connected=1 metric-static=10 redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=172.15.0.4
/routing ospf network
add area=KFI network=172.21.0.0/24
add area=KFI network=192.168.179.0/25
add area=backbone network=172.16.2.28/30
add area=backbone network=172.16.2.20/30
K2Backup:
Code: Select all
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 172.16.2.30/30 172.16.2.28 K2
1 172.15.0.6/32 172.15.0.6 loopback
2 D 199.168.89.254/24 199.168.89.0 Internet
3 D 172.16.2.14/32 172.16.2.13 HQ
/ip route print where !ospf
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 ADS 0.0.0.0/0 199.168.89.1 1
1 ADC 172.15.0.6/32 172.15.0.6 loopback 0
2 ADC 172.16.2.13/32 172.16.2.14 HQ 0
3 ADC 172.16.2.28/30 172.16.2.30 K2 0
4 ADC 199.168.89.0/24 199.168.89.254 Internet 0
/routing ospf export
/routing ospf area
add area-id=1.0.0.0 name=KFI
/routing ospf instance
set [ find default=yes ] metric-connected=1 metric-static=10 redistribute-connected=as-type-1 redistribute-static=as-type-1 router-id=172.15.0.6
/routing ospf interface
add cost=100 interface=HQ network-type=point-to-point
/routing ospf network
add area=backbone network=172.16.2.28/30
add area=backbone network=172.16.2.12/30
/routing ospf virtual-link
add disabled=yes neighbor-id=172.15.0.1
add disabled=yes neighbor-id=172.15.0.4
/routing filter print
Flags: X - disabled
0 chain=ospf-out prefix=199.168.89.0/24 invert-match=no action=discard set-bgp-prepend-path=""
Now, the problem: 192.168.126.216/29 appears everywhere in routing tables, but all of the other route filters work great. If the problem was that this subnet is a part of 192.168.0.0/16 (in KFI area), then 192.168.23.168/29 (HAS Intranet interface) would have been advertised like this, too. But routing tables show that this doesn't happen. The problem with this advertisement is that when HQ-HAS link is dropped, HAS makes its PPTP connection to HQ via K1-K1Backup, which shouldn't. A similar issue appears when K1-K2 link is dropped (I haven't have tried to filter routes on K1 or K2 because I'm stuck in this case). I'm currently preventing these by filtering PPTP connections on K1Backup and K2Backup, but this isn't a good idea. Please help.
Thanks