Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.08 sec)
Forcing a remote IP to use one NIC and not another

How can I get a connection to a remote IP to use a NIC if there's already a default route that sends that traffic to the wrong NIC ?
Asked by:
Mert77
52 points
 Report Abuse
 Share Page - Category: Networking - Tags: Forcing a remote IP to use one NIC and not another
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (2)

Best Answer

Use the command:

route add -host remoteIP dev /dev/ethX

in this way all traffic ro remoteIP are routed by device /dev/ethX (chang ethX with NIC name)

If you neead a gateway add gw IPgateway:

route add -host remoteIP gw IPgateway dev /dev/ethX


Response by:
leoncino
1280 points
Exactly what I needed, thanks.

Response by:
Mert77
52 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle