[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Easy one - how do I tell linux 7.3 to direct traffic for a specufuc IP to my router?

Dumb question, how do I use something like route add in the Windows world to route traffic for a specific IP to another IP.

I want to route stuff for 10.1.2.20 to 192.168.1.1

I used:

route add host 10.1.2.20 gw 192.168.1.1

but i got the message RTNETLINK answers: Network is unreachable

I can ping 192.168.1.1 though.

0
AnimatorThree
Asked:
AnimatorThree
  • 4
1 Solution
 
pablouruguayCommented:
route add 0.0.0.0 mask 0.0.0.0 192.168.12.1

0;.0.0.0 change for  your ips
0
 
pablouruguayCommented:
example

route add 10.1.2.20 mask 255.255.255.255 192.168.1.1
0
 
pablouruguayCommented:
im sorry i miss understand your question   sorry


check this link you have a solution in here

http://www.experts-exchange.com/Networking/Linux_Networking/Q_21195972.html
0
 
pablouruguayCommented:
in your sintaxis you need -host     oyu miss the -

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now