06-29-2015 03:59 AM - edited 03-05-2019 01:46 AM
Hi,
There is an interface with 2 ip, when i configure this port in ospf, how is it react?
Is it like a connection with 2 link?
Thanks,
06-29-2015 04:54 AM
To answer your questions, exactly how were you going to configure the port for OSPF?
06-29-2015 04:54 AM
You know, I saw this configuration on an interface of a router like below:
int vlan 100
ip address 10.99.64.1 255.255.255.192 secondary
ip address 10.197.0.2 255.255.255.192
router ospf 100
network 10.0.0.0 0.255.255.255 area 0
I want to know with this configuration, Should i expect there are 2 routers connected to this link? Are there another possible scenarios for this kind of configuration?
Thanks,
06-29-2015 05:03 AM
The additional information is helpful. No you should not expect two routers on this link. With this configuration OSPF will advertise both subnets. But OSPF hello messages are sent using the IP address of the primary address. So if there were a second router using the secondary address as its subnet then the router would not become OSPF neighbors. So what you should expect is a single router where the other router probably also has a secondary address configured.
There are multiple reasons why routers may be configured with secondary addresses. These include the original subnet was getting full and a second subnet was configured to provide additional address capacity, or a secondary address may be configured to aid in changing IP addressing. Perhaps a network was configured with one subnet and then a decision was made to transition that network to a new address. You could configure the new subnet as secondary address so that the transition could be gradual. In this configuration devices with original addresses co-exist with devices with new addresses and all are functional. When the transition is complete and no devices are using the original subnet then you remove the primary IP and make the secondary address into the primary address.
HTH
Rick
06-29-2015 05:51 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
The configuration, alone, will not tell you how many router are connected to that link.
As Rick has already noted, OSPF neighbor adjacency will only form on the primary IP. So, if there are any adjacent OSPF routers, they would likely be configured like what you posted, but that's not guaranteed.
Since the primary IP subnet is not point-to-point, there could be zero, one, two, three, ..., or up to the whole address range might comprise routers.
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