Options

Network 0.0.0.0 0.0.0.0 routing process

JeromeTechieJeromeTechie Member Posts: 10 ■□□□□□□□□□
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
:o CCIE is tough

Comments

  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    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.
    An expert is a man who has made all the mistakes which can be made.
  • Options
    JeromeTechieJeromeTechie Member Posts: 10 ■□□□□□□□□□
    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 pal
    :o CCIE is tough
  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    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.
    An expert is a man who has made all the mistakes which can be made.
  • Options
    JeromeTechieJeromeTechie Member Posts: 10 ■□□□□□□□□□
    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.
    I feel smarter than when i woke up :> at least i knowhoe to skin a cat now icon_twisted.gif
    :o CCIE is tough
  • Options
    BeTheNetworkBeTheNetwork 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
  • Options
    nerdydadnerdydad Member Posts: 261
    Besides, it is much quicker to type the quad 0's vs quad 255's.
Sign In or Register to comment.