Quantcast
Channel: General Networking
Viewing all articles
Browse latest Browse all 27527

Handling routing with two NICs and two gateways on CentOS

$
0
0

Hello,

I've got two NICs on a CentOS server. One public and one private but I can't reach the internet from it.

NIC 1

IP address: 7.7.7.78

Gateway: 7.7.7.1

NIC 2

IP Address: 192.168.0.5

Gateway: 192.168.0.1

(not actual IPs)

I can reach the 7.7.7.78 from outside my network but I cant hit the internet from within the server.

Nothing happens when I run a traceroute to 8.8.8.8 (which is configured as one of the DNS's). A traceroute to yahoo.com shows;

]# traceroute yahoo.com
yahoo.com: Temporary failure in name resolution
Cannot handle "host" cmdline arg `yahoo.com' on position 1 (argc 1)

I suspect that the server is a bit confused as to which gateway to send traffic to.

Any idea anyone?


Viewing all articles
Browse latest Browse all 27527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>