cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
383
Views
4
Helpful
3
Replies

network command

bethamprashanth
Level 1
Level 1

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

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

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

thanks sir...

johnlloyd_13
Level 9
Level 9

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: