01-19-2009 02:08 AM - edited 03-04-2019 12:53 AM
hi experts,
I would like to know exact meaning of this command
network 0.0.0.0 255.255.255.255 area 40
Thanking you,
Prashanth
01-19-2009 02:30 AM
Prasanth
The network statement used under an IGP configuration such as OSPF/EIGRP tells the router which interfaces to start running the routing protocol on. So
router ospf 1
network 192.168.5.0 0.0.0.255 area 0
this tells the router to start OSPF running on any interface that has an address within the 192.168.5.x subnet range. So if the router had an interface
int fa0/0
ip address 192.168.5.1 255.255.255.0
then OSPF would be run on that interface. Note that the network command for an IGP like OSPF/EIGRP does not tell the router which networks to advertise. (It does however for BGP).
0.0.0.0 255.255.255.255 matches anything so
router ospf 1
network 0.0.0.0 255.255.255.255 area 40
tells the router to start OSPF up on all interfaces on the router and that they are all in area 40 which is unusual but not impossible if that is the only area you have.
Jon
01-19-2009 02:39 AM
thanks sir...
01-19-2009 02:43 AM
this means that all interfaces configured under an ospf process (e.g. router ospf 1) gets advertised on a specific area, which in this case, area 40.
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