Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

network command on cisco router

Hi all,

I was reading about network command when we configure the Routing protocols like RIP or ospf.

it says network command does two things

what network to advertise to  other routers  and which interfaces it will advertise the network.

if we have 3 routers  , router a b and c

Router  A  has this config

2 interfaces one to WAN  and one to LAN  connection.

Router A  config

fa0/1  wan interface

ip address 70.x.x..x

fa0/0 lan interface

ip address 192.168.5.3

router rip

version 2

network 70.0.0.0

network 192.168.5.0

Router B  config

int fa0/0 connectes to router A

ip address 192.168.5.2

int fa0/1 connects to switch A on vlan 10

ip address 192.168.10.1

int fa0/2 connects to switch B on vlan 20

ip address 192.168.20.1

int fa0/3 connects to Router C 

ip address 192.168.4.2

now we enable RIP on Router 2

router rip

network 192.168.5.0

network 192.168.10.0

network 192.168.20.0

network 192.168.4.0

Router C

int fa0/0

ip address 192.168.4.3   connects to Router B

router rip

network 192.168.4.0

***********************************************************************************

now my question is router B has

network 192.168.5.0 it will advertise that to both Router A and C  right?????

Router A is directly connected to B  Router so it already knows about it right???

Router C  will came to know about Network 192.168.5.0  right ????? when Router B  advertise??????

So Now Router B will advertise network on both interfaces that connect to Router A and C  or only on interface that has ip address 192.168.5.2???

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Purple

network command on cisco router

Hi,

Yep that's it.

Regards.

Alain

Don't forget to rate helpful posts.
4 REPLIES
Purple

network command on cisco router

Hi,

network 192.168.5.0 it will advertise that to both Router A and C  right?????

No it won't advertise it to A but it will listen for rip messages and send rip messages out this interface.

Router A is directly connected to B  Router so it already knows about it right???

Yes for both routers this is a connected route

Router C  will came to know about Network 192.168.5.0  right ????? when Router B  advertise??????

Yes exactly

So Now Router B will advertise network on both interfaces that connect  to Router A and C  or only on interface that has ip address  192.168.5.2???

it will advertise networks on all interfaces where rip is enabled due to network command if the interface is not passive and it will listen to rip updates on all interfaces enabled for rip due to network command But due to spli-horizon it won't advertise a route on an interface where it already received this route.

Regards.

Alain

Don't forget to rate helpful posts.
New Member

network command on cisco router

Hi alain

Thanks for reply.

network 192.168.5.0 it will advertise that to both Router A and C  right?????

No it won't advertise it to A but it will listen for rip messages and send rip messages out this interface.

so this means that as Router A and B are directly connected so thats reason it will not advertise 192.168.5.0 to Router

A??

Purple

network command on cisco router

Hi,

Yep that's it.

Regards.

Alain

Don't forget to rate helpful posts.
New Member

network command on cisco router

Hi Alain,

Many thanks for good explanation.

Regards

Mahesh

1421
Views
0
Helpful
4
Replies