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.
|