LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-30-2012, 01:01 PM   #1
601
LQ Newbie
 
Registered: Dec 2009
Posts: 6

Rep: Reputation: 5
Advice on faulty network - switching to backup


I've got a remote machine and I'm experiencing a faulty network on it's default gateway (router probably falling apart). I'll give a short setup overview and some steps I'm planning to fix this. So if you guys notice anything that may brick my network to the remote machine, please let me know. Thank you in advance!

Setup: CentOS 6.x server with 2 NICs (eth0 and eth1) connected to 2 different ISPs (NICs are configured static).
eth0 serves as default gateway. Trying to get rid of Network Manager at install time, I went on and configured /etc/sysconfig/network-scripts/ifcfg-eth<n> for each device, however left NM_CONTROLLED=yes for eth0 by mistake. I guess this is how the system has been working anyway since /etc/sysconfig/network does not have any GATEWAY parameter specified.

Problem: router connected to eth0 is most likely failing (massive packet loss, have noticed strange behavior with it before but came back to normal, so ignored - yeah I know..).
This makes it very difficult to get a connection to the box, but it eventually completes.

Solution: connect to remote machine and:
- edit /etc/sysconfig/network-scripts/ifcfg-eth1: set DEFROUTE=yes
- edit /etc/sysconfig/network-scripts/ifcfg-eth0: set DEFROUTE=no and NM_CONTROLLED=no
- edit /etc/sysconfig/network: set GATEWAY to ip of router corresponding to eth1
- update /etc/resolv.conf: setup new nameserver

/etc/init.d/networking restart

So, do you guys think I missed some step (I understand, there may be cofiguration quirks specific to each machine, but I'm only asking if this looks ok in principle).

Last edited by 601; 09-30-2012 at 01:02 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Faulty card or faulty config? svar Linux - Networking 4 09-02-2009 09:39 AM
Advice on backup software for network kayasaman Linux - Software 3 11-08-2008 06:17 AM
How do I find/determine faulty network hardware? essdeeay Linux - Networking 1 07-15-2006 09:58 AM
Switching over...ADVICE PLEASE godzilla_roar20 Linux - Newbie 2 07-18-2004 11:25 PM
Linux is extremely slow, network faulty? niklasa Linux - Networking 4 02-10-2003 01:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration