LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do I tell my server to use eth0 for the internet [DNS + gateway] in stead of eth1 (https://www.linuxquestions.org/questions/linux-networking-3/how-do-i-tell-my-server-to-use-eth0-for-the-internet-%5Bdns-gateway%5D-in-stead-of-eth1-704695/)

elvisious 02-14-2009 05:11 PM

How do I tell my server to use eth0 for the internet [DNS + gateway] in stead of eth1
 
Hi,

Since I have a new internetaccount, 2 days ago, I have a problem on my server [Fedora Core 8]. I use it as a router.

eth0 is for the internet.
eth1 is for my LAN.

But since my new internetaccount my server uses eth1 for the internet.
This is a line from my syslog:

Code:

NetworkManager: <info> Policy set 'System eth1' (eth1) as default for routing and DNS.
I killed the NetworkManager daemon and now it works but this must not be the way to do it ??

Where do I tell my server that I use eth0 for routing and DNS?

Greetz
FrankY

chort 02-14-2009 05:53 PM

Apparently you configured a default gateway in NetworkManager for eth1. Don't do that. You can only have one default gateway, and it should be on your interface that points to your Internet provider.


All times are GMT -5. The time now is 11:43 AM.