Network 0.0.0.0 0.0.0.0 routing process
JeromeTechie
Member Posts: 10 ■□□□□□□□□□
in CCIE
Hello guys (and gals),
while preparing for CCIE I went across a weird command and I have no clue whatsoever as to what it does.
Router Ospf (or Eigrp) 1
network 0.0.0.0 0.0.0.0 area 1
I know network 0.0.0.0 255.255.255.255 will advertise any interface on the router
But 0.0.0.0 0.0.0.0 I got no clue as to what it will advertise. Default route? I thought default information originate (ospf) IP default-network (EIGRP) was allready doing that
If anyone has a clue thanks in advance for your educated answer
while preparing for CCIE I went across a weird command and I have no clue whatsoever as to what it does.
Router Ospf (or Eigrp) 1
network 0.0.0.0 0.0.0.0 area 1
I know network 0.0.0.0 255.255.255.255 will advertise any interface on the router
But 0.0.0.0 0.0.0.0 I got no clue as to what it will advertise. Default route? I thought default information originate (ospf) IP default-network (EIGRP) was allready doing that
If anyone has a clue thanks in advance for your educated answer
CCIE is tough
Comments
-
networker050184 Mod Posts: 11,962 ModIt just includes all interfaces the same way as if you do 0.0.0.0 255.255.255.255 as far as I know.An expert is a man who has made all the mistakes which can be made.
-
JeromeTechie Member Posts: 10 ■□□□□□□□□□networker050184 wrote: »It just includes all interfaces the same way as if you do 0.0.0.0 255.255.255.255 as far as I know.
Jeez this is lame not only is itnot good practice but 2 commands which are fundamentally different according to the wildcard mask do the same ... Thanks for the answer palCCIE is tough -
networker050184 Mod Posts: 11,962 ModThere's always more than one way to skin a cat!
If you use the 0.0.0.0 0.0.0.0 method the IOS will change it to 0.0.0.0 255.255.255.255 in the running config.An expert is a man who has made all the mistakes which can be made. -
JeromeTechie Member Posts: 10 ■□□□□□□□□□networker050184 wrote: »There's always more than one way to skin a cat!
If you use the 0.0.0.0 0.0.0.0 method the IOS will change it to 0.0.0.0 255.255.255.255 in the running config.CCIE is tough -
BeTheNetwork Member Posts: 18 ■□□□□□□□□□I've always considered it shorthand for 0.0.0.0 255.255.255.255. I sorta like the macros like that in the IOS. That said, nuances like that have always caused confusion in IGP configuration. And, is the reason why they are moving the routing protocol configuration to the interfaces.
router ospf 1
network 192.168.0.1 0.0.0.0 area 0
-or-
interface g0/0
ip address 192.168.0.1 255.255.255.0
ip ospf 1 area 0