hi! i've multiple vlan interface in my 6509 with one of the interface as
interface vlan 10
ip address 172.16. 8.2 255.255.255.128
and i;ve the router ospf configured as
network 172.16.8.2 0.0.0.0 area 0
My question is, what's the different if in the network command instead of using 0.0.0.0, i use 0.0.0.128?
To understand the interafaces addition in ospf configuration see the below explanation hope this helps out !!
1. The definition of only one interface
Definitions of only one interface are done with a wildcard-mask of 0.0.0.0 and the exact IP address of the given interface. This will match exact on that interface and nothing else.
2. The definition of mutiple but not all interfaces into one area
If you have to specify multiple interfaces and the IP concept has been done nicely, you might be able to summarize them all into one network statement. So if we have an address range like 18.104.22.168/21 which belongs to area N we can use network 22.214.171.124 0.0.7.255 area N to define them in one network statement. Every new interface on that router with an IP in that range will automatically be added into the OSPF process and added to that area.
3. The definition of all interfaces into one area
If you want to specify all interfaces on the router, the network statement network 0.0.0.0 255.255.255 area N will do the trick. Every new interface with an IP address on the router will automatically join OSPF and this area.