amigan_99
asked on
OSPF Advertising the Address on an interface
Suppose I have a WAN switch with SVI interface vlan 777 and ip address 192.168.99.97/28. If I want that specific address to advertise to the other side of the WAN connection (another interface) what ne.eds to be in the router process?
router ospf 1
router-id 192.168.99.0
no passive-interface 777
network 192.168.99.97 0.0.0.15 area 192.168.99.0
network 192.168.99.0 0.0.0.63 area 0
Should that be enough to get 192.168.99.97 advertised into ospf? Thank you.
router ospf 1
router-id 192.168.99.0
no passive-interface 777
network 192.168.99.97 0.0.0.15 area 192.168.99.0
network 192.168.99.0 0.0.0.63 area 0
Should that be enough to get 192.168.99.97 advertised into ospf? Thank you.
Are you trying to have two separate VLAN's talk to each other? I'm a little confused on your statement "other side of the WAN connection, another interface)
I don't think you need an address after the "area:"
remove 192.168.99.0
remove 192.168.99.0
ASKER
Let's just say this router RTR-A is connected to another router via another router RTR-B via interface TenGig1/1. I want 192.168.99.97/28 to be known at RTR-B, to show up in the routing table when I run "sho ip route".
ASKER
@Ivan the 192.168.99.0 is just the router area. It could be anything.
router ospf 1
network 192.168.99.0 (subnet mask) area 0
network 192.168.?.? (subnet mask) area 0
network 192.168.99.0 (subnet mask) area 0
network 192.168.?.? (subnet mask) area 0
ASKER
^^correction: 192.168.99.0 is an ospf area.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well to simplify it let's use these network statements. Both have and inverse mask.
One's in area 0 and the other area 99. The question is whether that first network
statement is sufficient to advertise that subnet to other routers. Or is there
something else in the OSPF process required to advertise that subnet?
network 192.168.99.97 0.0.0.15 area 99
network 192.168.99.0 0.0.0.63 area 0
One's in area 0 and the other area 99. The question is whether that first network
statement is sufficient to advertise that subnet to other routers. Or is there
something else in the OSPF process required to advertise that subnet?
network 192.168.99.97 0.0.0.15 area 99
network 192.168.99.0 0.0.0.63 area 0
Can be advertised as
Passive interface is there to prevent sending OSPF hellos to routers located in VLAN 777 (no passive interface is default and need to be added only in the case that passive-interface default
is issued).
router ospf 1
router-id 192.168.99.0
passive-interface vlan 777
network 192.168.99.97 0.0.0.0 area 192.168.99.0
network 192.168.99.0 0.0.0.63 area 0
But in that case there is no clear sign that is external network. In area 0 will be marked as IA (like network in any other non backbone area). If you want to mark it as external you can redistribute connected interfaces or static routes. Area number is irrelevant as long as it is 4 octets (IP address format) or decimal number that is less or equal to 4.294.967.296 (equivalent of 255.255.255.255). You can configure SVI for VLAN 777 in area 0 if you want, it is just question of which LSA type you want to have in area 0.Passive interface is there to prevent sending OSPF hellos to routers located in VLAN 777 (no passive interface is default and need to be added only in the case that passive-interface default
is issued).
ASKER
Thanks Predrag. Will the 192.168.99.97 be advertised whether or not "redistribute connected" is configured?
router ospf x
redistribute connected subnets <route-map>
Configured as above, ospf will redistribute all connected networks configured under interfaces into OSPF as external networks type E2 (if route-map is not configured). Route map can be used to filter redistribution into OSPF.
redistribute connected subnets <route-map>
Configured as above, ospf will redistribute all connected networks configured under interfaces into OSPF as external networks type E2 (if route-map is not configured). Route map can be used to filter redistribution into OSPF.
ASKER
Thanks again Predrag. Very much appreciated!
You're welcome.