cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
482
Views
5
Helpful
3
Replies

OSPF wildcard mask

jtorkos
Level 1
Level 1

I'm curious why the following occurs.

interface e0 172.16.4.1/21

serial s0 172.16.20.1/29

conf t

router ospf 1

network 172.16.4.0 0.0.7.255 area 0

network 172.16.20.0 0.0.0.7 area 0

show run

router ospf 1

network 172.16.0.0 0.0.7.255 area 0

network 172.16.20.0 0.0.0.7 area 0

My question is why don't I see "network 172.16.4.0 0.0.7.255 area 0"?

3 Replies 3

n2-goes
Level 1
Level 1

Hello,

if you have 172.16.4.1 255.255.248.0 is part of network 172.16.0.0 255.255.248.0 with the range for hosts from 172.16.0.1 to 172.16.7.254 and broadcast of 172.16.7.255.

Hope this help,

Nadine.

Harold Ritter
Cisco Employee
Cisco Employee

with 0.0.7.255 will tell OSPF not to care about the 11 last bits of the subnet. The 4 bit is actually part of these 11 last bits.

dec: 172.16.4.0 0.0.7.255

hex: 1010 1100 0001 0000 0000 0100 0000 0000

0000 0000 0000 0000 0000 0111 1111 1111

Hence this bit being ignore and being set to zero when you do a "sh conf".

Hope this helps,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thanks. It makes a bit more sense now.