Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
There is less than 12 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I guess it is the route table configuration problem, when the sendmail deamon tries to deliver non-local message, it will try connecting to remote mail server with the default route (it should be eth0 in your case).
My suggestion -- if possible, set your default route to eth0:1.
First, check your route table with "route -n", and make sure whether your default route is going through the NIC eth0 or eth0:1
2nd, vi /etc/sysconfig/network/scripts folder for every NIC configuration (meybe various for different linux distribution)..check the GATEWAY option for every NIC script.In your case, the GATEWAY option should present in the eth0:1 script, delete/comment this option for eth0 script.
Alternative solution, execute this command in root shell--- route add default gw 10.0.0.X eth0:1, if it doesnt overwrite the old one, you may run route -delete ....for deleting the eth0 one.
Sorry, you may need to put tabs back into that code above. I couldnt get it to submit to this forum and keep the tabs. It will work either way though. Just make sure to set the $GW_IF to your interface you want it to be the default gw on.