Re: [CentOS] ip route and nexthop: the CentOS way

2012-02-02 Thread Nick
On 01/02/12 21:06, Les Mikesell wrote: Hmm... I just tried this and besides needing ip route add default It does not seem to work when I unplug the cable on my primary link. Well, I should disclose that is an experiment, and I may not have explained the config fully - see the pages I

Re: [CentOS] ip route and nexthop: the CentOS way

2012-02-02 Thread Ljubomir Ljubojevic
On 02/02/2012 11:28 AM, Nick wrote: And if it isn't, is there anything I should bear in mind when hacking a script to do this sort of thing, in order to avoid breaking my system or generally fighting against the system's assumptions? I would have ping the gateway of primary link (maybe both)

Re: [CentOS] ip route and nexthop: the CentOS way

2012-02-02 Thread Steve Clark
On 02/02/2012 05:41 AM, Ljubomir Ljubojevic wrote: On 02/02/2012 11:28 AM, Nick wrote: And if it isn't, is there anything I should bear in mind when hacking a script to do this sort of thing, in order to avoid breaking my system or generally fighting against the system's assumptions? I

Re: [CentOS] ip route and nexthop: the CentOS way

2012-02-02 Thread Gordon Messmer
On 02/01/2012 11:03 AM, Nick wrote: I believe I can configure the routing table manually like this: ip route default scope global \ nexthop via 192.168.1.1 dev eth1 weight 1 \ nexthop via 192.168.0.1 dev eth0 weight 2 This kind of thing doesn't seem to fit into the scheme of

[CentOS] ip route and nexthop: the CentOS way

2012-02-01 Thread Nick
Hi, I'm wanting to configure a CentOS 6 server to have a fall-back default route via a second network interface. Given: - eth0 with 192.168.0.10 on subnet 192.168.0.0/24 gateway 192.168.0.1 - eth1 with 192.168.1.10 on subnet 192.168.1.0/24 gateway 192.168.1.1 Where eth0's network is a back

Re: [CentOS] ip route and nexthop: the CentOS way

2012-02-01 Thread Steve Clark
On 02/01/2012 02:03 PM, Nick wrote: Hi, I'm wanting to configure a CentOS 6 server to have a fall-back default route via a second network interface. Given: - eth0 with 192.168.0.10 on subnet 192.168.0.0/24 gateway 192.168.0.1 - eth1 with 192.168.1.10 on subnet 192.168.1.0/24 gateway

Re: [CentOS] ip route and nexthop: the CentOS way

2012-02-01 Thread Les Mikesell
On Wed, Feb 1, 2012 at 1:35 PM, Steve Clark scl...@netwolves.com wrote: I'm wanting to configure a CentOS 6 server to have a fall-back default route via a second network interface. Given:   - eth0 with 192.168.0.10 on subnet 192.168.0.0/24 gateway 192.168.0.1   - eth1 with 192.168.1.10

Re: [CentOS] ip route and nexthop: the CentOS way

2012-02-01 Thread Steve Clark
On 02/01/2012 04:06 PM, Les Mikesell wrote: On Wed, Feb 1, 2012 at 1:35 PM, Steve Clarkscl...@netwolves.com wrote: I'm wanting to configure a CentOS 6 server to have a fall-back default route via a second network interface. Given: - eth0 with 192.168.0.10 on subnet 192.168.0.0/24