08-28-2020 07:28 AM
I configured a interface ip address 192.168.1.1/24
And configured
Router ospf 1
Network 192.168.1.0 255.255.255.0 area 0
In short, by mistake,i configured subnet mask instead of wildcard mask
But still ospf is enabled on that interface and...other end router become an ospf neighbour
How is this possible?
Solved! Go to Solution.
08-28-2020 08:22 AM
Hello,
how does that show up in your running configuration ? When I configure:
network 192.168.1.0 255.255.255.0 area 0
It shows up as:
router ospf 1
router-id 1.1.1.1
network 192.168.1.0 0.0.0.255 area 0
It looks like OSPF automatically converts that into a wildcard. Never seen that to be honest...
08-28-2020 08:34 AM
Hello Aniketdey9804@gmail.com ,
the OSPF command reference
specifies the network area command expects a wildcard and not a subnet mask
>>"The Cisco IOS software sequentially evaluates the ip-address wildcard-mask pair for each interface as follows:
The wildcard-mask argument is logically ORed with the interface IP address.
The wildcard-mask argument is logically ORed with the ip-address argument in the network command.
The software compares the two resulting values. If they match, OSPF is enabled on the associated interface and this interface is attached to the OSPF area specified."it is possible in your specific case that the binary math provides the same result as the first three bytes are the same in the IP address and in the network command and 0 exor 1 provides 1 but 0 exor 0 is 0 !Well, probably what Georg has found in his tests explains what you have seen an auto-correction in CLI parser.
Hope to help
Giuseppe
08-28-2020 08:22 AM
Hello,
how does that show up in your running configuration ? When I configure:
network 192.168.1.0 255.255.255.0 area 0
It shows up as:
router ospf 1
router-id 1.1.1.1
network 192.168.1.0 0.0.0.255 area 0
It looks like OSPF automatically converts that into a wildcard. Never seen that to be honest...
09-02-2020 05:59 PM
Ummm... I understand.... thank you sir😇
08-28-2020 08:28 AM
I think that command depends on the version of IOS you use. Some support and take the subnet mask and some don't.
HTH
08-28-2020 08:34 AM
Hello Aniketdey9804@gmail.com ,
the OSPF command reference
specifies the network area command expects a wildcard and not a subnet mask
>>"The Cisco IOS software sequentially evaluates the ip-address wildcard-mask pair for each interface as follows:
The wildcard-mask argument is logically ORed with the interface IP address.
The wildcard-mask argument is logically ORed with the ip-address argument in the network command.
The software compares the two resulting values. If they match, OSPF is enabled on the associated interface and this interface is attached to the OSPF area specified."it is possible in your specific case that the binary math provides the same result as the first three bytes are the same in the IP address and in the network command and 0 exor 1 provides 1 but 0 exor 0 is 0 !Well, probably what Georg has found in his tests explains what you have seen an auto-correction in CLI parser.
Hope to help
Giuseppe
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