11-19-2016 05:52 AM - last edited on 03-25-2019 03:48 PM by ciscomoderator
Dear Experts,
I always have a confusion with below cmd under different routing protocols like RIPv2, EIGRP and OSPF?
Consider a router "R" with 4 different interfaces directly connected to NW 10.0.0.0/8 || 11.0.0.0/8 || 12.0.0.0/8 || 13.0.0.0/8
Example-1)
Under RIP,
R(Config)# router rip
R(Cf-R)#version 2
R(Cf-R)# network 10.0.0.0
R(Cf-R)#exit
Example-2)
Under EIGRP,
R(Config)# router eigrp 10
R(Cf-R)# network 10.0.0.0 0.255.255.255
Example-3)
Under OSPF,
R(Config)# router OSPF 1
R(Cf-R)# network 10.0.0.0 0.255.255.255 area 1
Query: What do we mean by this cmd in pink under different routing protocols (RIP, OSPF, EIGRP)?
Does it mean that it will put the corresponding interface of this router in RIP(Ex-1), EIGRP(Ex-2) and OSPF(Ex-3) and will advertise this network in the direction of router-R's interface 10.0.0.0/8 only? i.e. next hop router connected to NW 10.0.0.0/8 will only receive this advertisement & adjacent routers corresponding to NW 11.0.0.0 || 12.0.0.0 || 13.0.0.0 will not receive this advertisement from router-R (even though corresponding routing protocol is enabled on adjacent router of NW 10.0.0.0 || 11.0.0.0 || 12.0.0.0 || 13.0.0.0).
I will have to write similar network statements for NW 11.0.0.0 || 12.0.0.0 || 13.0.0.0 & then only advertisement of network 10.0.0.0 (& other networks now) will reach in all the four directions of router-R?
OR,
Does it mean that it will advertise 10.0.0.0 network on all the interfaces of this router-R and corresponding next hop routers connected through different interfaces of this router-R in discussion will also learn 10.0.0.0 network?
I haven't written similar network statements for NW 11.0.0.0 || 12.0.0.0 || 13.0.0.0 on this Router-R in discussion. Only one network statement i.e. for NW 10.0.0.0 but I have enabled RIP/EIGRP/OSPF as per the case on all the next hop routers of these 4 networks?
Best Regards!
11-19-2016 02:04 PM
Hello,
I don't want to be cheap, but check the document below, it gives an excellent explanation of the implications of using the network statement in IGP:
https://rednectar.net/2011/06/23/understanding-the-network-statement-in-igp-configuration-on-cisco-routers/
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