Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

ip route noob question

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.

3 ACCEPTED SOLUTIONS

Accepted Solutions
New Member

Re: ip route noob question

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/

New Member

Re: ip route noob question

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

New Member

Re: ip route noob question

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

4 REPLIES
New Member

Re: ip route noob question

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/

New Member

Re: ip route noob question

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

New Member

Re: ip route noob question

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

New Member

Re: ip route noob question

thanks guys, for your help

722
Views
0
Helpful
4
Replies
CreatePlease to create content