ip route command

Unanswered Question
Feb 10th, 2009
User Badges:

Hi Friends,


Just would like to know what is the diffrence between the command "ip route 0.0.0.0 0.0.0.0" and "ip route 0.0.0.0 255.255.255.255" ??


Thanks in advance.


Regards,

Manoj


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
massimiliano.se... Wed, 02/11/2009 - 00:34
User Badges:
  • Silver, 250 points or more

Hi,

if you use ip route 0.0.0.0 0.0.0.0 you insert in the routing table a default route.

instead if you use 0.0.0.0 255.255.255.255 you insert in the routing table only the route toward host 0.0.0.0


I hope this helps.

Best regards.

Massimiliano.

Manoj Wadhwa Wed, 02/11/2009 - 00:45
User Badges:

Hi Massimiliano,


Thanks for the reply. Since there is no host with ip 0.0.0.0, does it mean that this command ip route 0.0.0.0 255.255.255.255 does not have any impact ?


Regards,

Manoj


Richard Burts Wed, 02/11/2009 - 04:44
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Manoj


Since there should not be a host with address 0.0.0.0 then the route to 0.0.0.0 255.255.255.255 would never be used.


HTH


Rick

Actions

This Discussion