OSPF advertising connected networks
Posted: Mon Feb 11, 2019 12:38 pm
I know I am doing something really dumb here, but I am stuck and I need a hand.
I create a backbone area between two routers using an IP tunnel (over IPSEC). For simplicity, the routers each have their local LAN interfaces, their Internet interfaces and their IP tunnel interface. I number the tunnel interface. E.G. 192.168.220.0/30. Router A has 192.168.220.1 and router B has 192.168.120.2.
I create an OSPF network on each router for the 192.168.220.0/30 subnet. Each router now sees the other as a neighbour. I don't want to add the LAN subnets to OSPF as networks as I don't won't devices on these LANS to learn or advertise anything. However, if I do this to test, each router learns its partner's LAN subnet and I can route between them.
So I then set the redistributed connected routes setting on each router OSPF interface to type 1. As soon as I do this the system starts a loop where it discovers the connected subnets, then drops the IP tunnel (presumably because it learns something from the remote router that breaks the route to it), then it comes back and goes away in an endless loop. It happens very quickly and I can't see what is going on. I really only want to learn the connected route on the LAN interface at each end, but I am unsure of how to get this to work.
Hoping someone can help.
I create a backbone area between two routers using an IP tunnel (over IPSEC). For simplicity, the routers each have their local LAN interfaces, their Internet interfaces and their IP tunnel interface. I number the tunnel interface. E.G. 192.168.220.0/30. Router A has 192.168.220.1 and router B has 192.168.120.2.
I create an OSPF network on each router for the 192.168.220.0/30 subnet. Each router now sees the other as a neighbour. I don't want to add the LAN subnets to OSPF as networks as I don't won't devices on these LANS to learn or advertise anything. However, if I do this to test, each router learns its partner's LAN subnet and I can route between them.
So I then set the redistributed connected routes setting on each router OSPF interface to type 1. As soon as I do this the system starts a loop where it discovers the connected subnets, then drops the IP tunnel (presumably because it learns something from the remote router that breaks the route to it), then it comes back and goes away in an endless loop. It happens very quickly and I can't see what is going on. I really only want to learn the connected route on the LAN interface at each end, but I am unsure of how to get this to work.
Hoping someone can help.