ip route noob question

Answered Question
Aug 15th, 2010
User Badges:

hi guys, this command tells what? ip route 192.168.1.16 255.255.255.0 10.1.1.2

and ip route 0.0.0.0  0.0.0.0.0 192.168.1.17 tells what also? thanks.

Correct Answer by vinod.agrahari about 6 years 10 months ago


Hi Chris,

The first command:

Ip route 192.168.1.16 255.255.255.0 10.1.1.2 is incorrect and will return an error message of bad subnet mask as we are using hop address in place of network address.

The correct configuration of static route should follow the following format:

Ip route and probably we can use it:

Ip route 192.168.1.0 255.255.255.0 10.1.1.2

This is what we call it static routing and in above corrected scenario, all the traffic of network 192.168.1.0 will go via interface 10.1.1.2

In Second command:

Ip route 0.0.0.0 0.0.0.0 192.168.1.17 is wrong and will return incomplete command error as we are using five zero’s in the wild mask option instead of four zero.

The correct configuration for default routing should follow following format:

Ip route 0.0.0.0 0.0.0.0 and probably we can use like this

Ip route 0.0.0.0 0.0.0.0 192.168.1.17

This is what call gateway of last resort and will often configure in the Stub Network where gateway of last resort is not set.

Regards

Vinod Agrahari

Correct Answer by k_srinadh about 6 years 10 months ago

Hi,

Wrong Usage : ip route 192.168.1.16 255.255.255.0 10.1.1.2

-----------------------------------------------------------------

Correct Usage: ip route 192.168.1.0 255.255.255.0 10.1.1.2

In that ip route

We are routing particular network (192.168.1.0) to go out thro/Via (10.1.1.2) this path.

Wrong Usage : ip route 0.0.0.0  0.0.0.0.0 192.168.1.17

-------------------------------------------------------------------

Correct Usage : ip route 0.0.0.0 0.0.0.0 192.168.1.17

this is called Default routing

also known as the gateway of last resort, is the network route used by a router when no other known route exists for a givenIP packets destination address

Hope this helps.


Regards,

Srinadh

Correct Answer by u1kumar2002 about 6 years 10 months ago

Hi,

     ip route 192.168.1.16 255.255.255.0 10.1.1.2---> this statement is wrong...  The network is not in correct format... if you configure this command in router it will show you error - Inconsistent address and mask. it should be --- ip route 192.168.1.0 255.255.255.0 10.1.1.2 , means remote network 192.168.1.0/24 is accessible via 10.1.1.2.



ip route 0.0.0.0  0.0.0.0.0 192.168.1.17 : this statement is wrong, it should not be 5 octet in mask. It should like this 0.0.0.0 0.0.0.0 192.168.1.17 this is a default route means that all packet should go to 192.168.1.17.



Hope this information will help you


Do rate for helpful posts...


Uttam

http://www.startnetworks.blogspot.com/

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
Correct Answer
u1kumar2002 Mon, 08/16/2010 - 02:50
User Badges:

Hi,

     ip route 192.168.1.16 255.255.255.0 10.1.1.2---> this statement is wrong...  The network is not in correct format... if you configure this command in router it will show you error - Inconsistent address and mask. it should be --- ip route 192.168.1.0 255.255.255.0 10.1.1.2 , means remote network 192.168.1.0/24 is accessible via 10.1.1.2.



ip route 0.0.0.0  0.0.0.0.0 192.168.1.17 : this statement is wrong, it should not be 5 octet in mask. It should like this 0.0.0.0 0.0.0.0 192.168.1.17 this is a default route means that all packet should go to 192.168.1.17.



Hope this information will help you


Do rate for helpful posts...


Uttam

http://www.startnetworks.blogspot.com/

Correct Answer
k_srinadh Mon, 08/16/2010 - 03:05
User Badges:

Hi,

Wrong Usage : ip route 192.168.1.16 255.255.255.0 10.1.1.2

-----------------------------------------------------------------

Correct Usage: ip route 192.168.1.0 255.255.255.0 10.1.1.2

In that ip route

We are routing particular network (192.168.1.0) to go out thro/Via (10.1.1.2) this path.

Wrong Usage : ip route 0.0.0.0  0.0.0.0.0 192.168.1.17

-------------------------------------------------------------------

Correct Usage : ip route 0.0.0.0 0.0.0.0 192.168.1.17

this is called Default routing

also known as the gateway of last resort, is the network route used by a router when no other known route exists for a givenIP packets destination address

Hope this helps.


Regards,

Srinadh

Correct Answer
vinod.agrahari Mon, 08/16/2010 - 08:13
User Badges:


Hi Chris,

The first command:

Ip route 192.168.1.16 255.255.255.0 10.1.1.2 is incorrect and will return an error message of bad subnet mask as we are using hop address in place of network address.

The correct configuration of static route should follow the following format:

Ip route and probably we can use it:

Ip route 192.168.1.0 255.255.255.0 10.1.1.2

This is what we call it static routing and in above corrected scenario, all the traffic of network 192.168.1.0 will go via interface 10.1.1.2

In Second command:

Ip route 0.0.0.0 0.0.0.0 192.168.1.17 is wrong and will return incomplete command error as we are using five zero’s in the wild mask option instead of four zero.

The correct configuration for default routing should follow following format:

Ip route 0.0.0.0 0.0.0.0 and probably we can use like this

Ip route 0.0.0.0 0.0.0.0 192.168.1.17

This is what call gateway of last resort and will often configure in the Stub Network where gateway of last resort is not set.

Regards

Vinod Agrahari

Actions

This Discussion