Cisco 2600

What is the correct statement to add this static route
send all 192.168.0.0 mask 255.255.255.0 to gateway 172.16.100.1
is it ip route 192.168.0.0 255.255.255.0 172.16.100.1
Let me know.
mleidichAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

maxinglisCommented:
no you have the mask backwards.

ip route 192.168.0.0 0.0.0.255 172.16.100.1

I think, haven't used the cisco part of my brain in a while.

Max.
0
grsteedCommented:
Actually his statement is ok as is.

ip route 192.168.0.0 255.255.255.0 172.16.100.1

The "gateway" portion can be either next hop (as you have) or exit interface.


Also if you have an older version of IOS, (pre 12.x) you also need the following since you are specifying a zero subnet.

ip subnet-zero

Cheers,

Gary

 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mleidichAuthor Commented:
Added note
After I make the change.  The route will not work. Do I have reboot the router?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

mleidichAuthor Commented:
do I need to reboot after the change?
0
grsteedCommented:
No reboot required.

We would need more information to understand your network and what you are trying to accomplish. Basically, static routes are used to direct traffic to a router that knows about the network. They can be used instead of a routing protocol in small networks but require more administration.

In your case, if you have 2 routers, With users connected to router1 and the 192.168.0.0 network connected to router2, (172.16.100.1) your static route on router1 would send traffic destined for 192.168.0.0 network to router 2.  On router2 you need to make sure there is a route back to the originating network or it won't work. If you are using strictly statc routes, you need to create one on router2 to for the traffic to get back.  The "show ip route" command on both routers should tell you what networks they know about.

If this doesn't help perhaps you should post it as a new question. This question was specific to the syntax of the route command and you already accepted an answer.

Gary

 
0
mleidichAuthor Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.