04-10-2007 06:03 AM - edited 02-21-2020 01:28 AM
Below is my setup,
on the router R2
interface Loopback0
ip address 150.1.2.2 255.255.255.0
!
interface Loopback1
ip address 192.168.1.2 255.255.255.0
!
interface Loopback2
ip address 192.168.3.2 255.255.255.0
!
interface Loopback3
ip address 192.168.5.2 255.255.255.0
!
interface Ethernet0/0
ip address 136.1.0.2 255.255.255.0
router ospf 1
router-id 150.1.2.2
log-adjacency-changes
network 136.1.0.0 0.0.0.255 area 0
network 150.1.2.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
network 192.168.3.0 0.0.0.255 area 0
network 192.168.5.0 0.0.0.255 area 0
routes on the asa,
C 136.1.0.0 255.255.255.0 is directly connected, outside
O 192.168.5.2 255.255.255.255 [110/11] via 136.1.0.2, 0:14:11, outside
O 192.168.1.2 255.255.255.255 [110/11] via 136.1.0.2, 0:14:11, outside
O 150.1.2.2 255.255.255.255 [110/11] via 136.1.0.2, 0:14:11, outside
O 192.168.3.2 255.255.255.255 [110/11] via 136.1.0.2, 0:14:11, outside
on the ASA, I see the host routes instead of the networks, Am I missing something? Thanks in advance
Ganesh
04-10-2007 06:33 AM
Hi Ganesh
It's not a problem with the ASA but to do with how OSPF advertises loopback addresses. By default OSPF advertises loopback addresses as /32's regardless of the subnet mask you actually use. If you want to to advertise the subnet mask as well you need to add the following to your config
interface loopback0
ip address 150.1.2.2 255.255.255.0
ip ospf network point-to-point
Do this under all your loopback interfaces.
HTH
Jon
04-10-2007 06:36 AM
yes, you are right. it worked :-)
Thanks Jon
04-10-2007 06:44 AM
No problem. Glad to have helped.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide