cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2141
Views
2
Helpful
3
Replies

A Quick Question - OSPF

Jaylene
Level 1
Level 1

An OSPF router has 3 directly connected networks;

172.16.0.0/16, 172.16.1.0/16 and 172.16.2.0/16

 Which OSPF network command would advertise only the

172.16.1.0 network

to neighbors?

   

A. rtr(config-router)# network 172.16.1.0 0.0.255.255 area 0
    B. rtr(config-router)# network 172.16.0.0 0.0.15.255 area 0
    C.
rtr(config-router)# network 172.16.1.0 255.255.255.0 area 0
    D.
rtr(config-router)# network 172.16.1.0 0.0.0.0 area 0



Jaylene
1 Accepted Solution

Accepted Solutions

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @Jaylene ,

both the question and all the answers have some errors.

First of all, the network ,mask cannot be

/16

on all three interfaces because this would lead to overlapping addresses that are not supported on real routers.

If you try to configure them in a real device or in an emulated one you get the address overapping error.

Given the

network addresses 172.16.0.0, 172.16.1.0, 172.16.2.0

the first prefix length that avoids overlapping is

/24

So the correct answer should be

network 172.16.1.0 0.0.0.255 area 0

 

as an alternative if the router inferface has

IP address 172.16.1.1

also the following will work

 

network 172.16.1.1 0.0.0.0 area 0

 

Hope to help

Giuseppe

 

View solution in original post

3 Replies 3

luis_cordova
VIP Alumni
VIP Alumni

Hi @Jaylene 

 

Correct answer is A

 

Regards

@luis_cordova  If we go for Option A, it will advertise the rest of the network as well.

Jaylene

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @Jaylene ,

both the question and all the answers have some errors.

First of all, the network ,mask cannot be

/16

on all three interfaces because this would lead to overlapping addresses that are not supported on real routers.

If you try to configure them in a real device or in an emulated one you get the address overapping error.

Given the

network addresses 172.16.0.0, 172.16.1.0, 172.16.2.0

the first prefix length that avoids overlapping is

/24

So the correct answer should be

network 172.16.1.0 0.0.0.255 area 0

 

as an alternative if the router inferface has

IP address 172.16.1.1

also the following will work

 

network 172.16.1.1 0.0.0.0 area 0

 

Hope to help

Giuseppe

 

Review Cisco Networking for a $25 gift card