From: "Herta Van den Eynde" Subject: Fwd: wrong default route Date: Tue, 8 Jul 2008 22:27:04 +0200 Message-ID: References: <823742.63573.qm@web46114.mail.sp1.yahoo.com> <765776.95864.qm@web46102.mail.sp1.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=DFihAOy3DezA75KpXWMhhV/kwWtxjzgKkBEksSaurRc=; b=ek1Ranig1bwxK01lkvZdGqzmseDWlG5bVgVXDH6LX+MmJfDTgIrpWyH9Ri14h5unmA WOdBUKbLrYI0xL5mHZb4TThUvXV56soWSilYGU547/1sgN7D1rUPD3O6YV7TdKJl4ZTD JQOYsKD5DprWnuqtfuzmLyz6zZ2/4lyxQYibg= In-Reply-To: Content-Disposition: inline Sender: linux-admin-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Apologies for using "Reply" instead of "Reply to all". I'm used to mailinglists putting the mailinglist's address in the reply-to field. Any reason why this mailing list does not do that? Anyway, below is my first reply. Kind regards, Herta ---------- Forwarded message ---------- From: Herta Van den Eynde Date: 2008/7/8 Subject: Re: wrong default route To: jakeravenwood@yahoo.com 2008/7/8 Jake Ravenwood : > I have a server out there that i remotely manage. i had a downtime the other day when we > restarted network services. then we found a wrong default route is laoded on the server > upon restart. i have the configs below. The defaultroute should be > GATEWAY=192.168.65.142 but it loaded GATEWAY=10.2.1.14 upon restart. > Could it be the sequence the interfaces are enabled from eth0 then eth1 then eth5, the > last interface activated its own gateway as the default? > > Should i delete the gateway on eth0 and eth5 such that it would make sure only the > defaultgateway on eth1 is loaded upon restart? > > i just can't restart network services and see what happens, the server is in production > and it takes a lot of authorization before i can restart it. > > thanks, > june > > > /etc/sysconfig/network-scripts/ifcfg-eth0 > DEVICE=eth0 > ONBOOT=no > BOOTPROTO=static > IPADDR=10.11.13.150 > NETMASK=255.255.255.192 > GATEWAY=10.11.13.129 > HOSTNAME=web2003 > HWADDR=00:19:BB:AB:CD:EF > ETHTOOL_OPTS="speed > 100 duplex full autoneg off" > > > /etc/sysconfig/network-scripts/ifcfg-eth1 > DEVICE=eth1 > HWADDR=00:19:BB:AA:DD:CC > ONBOOT=yes > TYPE=Ethernet > IPADDR=192.168.65.131 > NETMASK=255.255.255.240 > GATEWAY=192.168.65.142 > HOSTNAME=web2003.domain.net > ETHTOOL_OPTS="speed > 100 duplex full autoneg off" > > > /etc/sysconfig/network-scripts/ifcfg-eth5 > DEVICE=eth5 > HWADDR=00:18:FE:BB:CC:DD > ONBOOT=yes > TYPE=Ethernet > BOOTPROTO=static > IPADDR=10.2.1.1 > NETMASK=255.255.255.240 > GATEWAY=10.2.1.14 > HOSTNAME=web2003.domain.net > ETHTOOL_OPTS="speed > 100 duplex full autoneg off" > Add the default gateway to /etc/sysconfig/network. Use static routes for the others. Kind regards, Herta -- "Life on Earth may be expensive, but it comes with a free ride around the Sun." -- "Life on Earth may be expensive, but it comes with a free ride around the Sun."