Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

and thank you in advanced for your time and cooperation.

I have a simple scenary. We have a VPS (venet0) with IP x.x.x.251 and currently, the main IP is part of eth1, but I need to force the traffic from (src x.251) to IP 8.8.8.8 to be out using eth0.

I already tried few commands like these:

[root@dns02 ~]# ip route add 8.8.8.8 via $ETH0GATEWAY dev eth0 src X.X.X.251 dev venet0 RTNETLINK answers: No such process [root@dns02 ~]#

Can someone give us an idea of what is wrong?

share|improve this question
    
Use the code-block to format your command line output correctly. Why does your command to have a route have 2 dev options? Is it eth0, or venet0? –  Zoredache Apr 28 at 21:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.