cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
581
Views
13
Helpful
3
Replies

ospf

dkblee
Level 1
Level 1

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?

thx.

1 Accepted Solution

Accepted Solutions

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi,

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 116.1.16.0/21 which belongs to area N we can use network 116.1.16.0 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.

Regards

Ganesh.H

View solution in original post

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

Hello,

network 172.16.8.2 0.0.0.0 area 0 This will enable OSPF only on this specific Interface

network 172.16.8.2 0.0.0.128 area 0 This will enable OSPF on all the interfaces whose ip address's fall in between 172.16.8.0-128

HTH

Reza

Jerry Ye
Cisco Employee
Cisco Employee

BTW, you cannot use mask of 0.0.0.128, you have to use 0.0.0.127.

To answer your question, 0.0.0.0 means only the interface 172.16.8.2 will be in area 0. If you are using 0.0.0.127 and you have the following interface configuration

interface lo0

ip address 172.16.8.10 255.255.255.255

interface lo1

ip address 172.16.8.11 255.255.255.255

!
router ospf 1

network 172.16.8.0 0.0.0.127 area 0

both interface lo0 and lo1 will be in OSPF area 0.

HTH,

jerry

Ganesh Hariharan
VIP Alumni
VIP Alumni

Hi,

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 116.1.16.0/21 which belongs to area N we can use network 116.1.16.0 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.

Regards

Ganesh.H

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card