linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jake Ravenwood <jakeravenwood@yahoo.com>
To: linux-admin@vger.kernel.org
Subject: wrong default route
Date: Tue, 8 Jul 2008 07:25:50 -0700 (PDT)	[thread overview]
Message-ID: <765776.95864.qm@web46102.mail.sp1.yahoo.com> (raw)
In-Reply-To: <823742.63573.qm@web46114.mail.sp1.yahoo.com>

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"



      


  reply	other threads:[~2008-07-08 14:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-08 14:21 new member - test post Jake Ravenwood
2008-07-08 14:25 ` Jake Ravenwood [this message]
     [not found]   ` <fff5b0760807080803w6b7b5f44l42a096b7ca2d8d61@mail.gmail.com>
2008-07-08 20:27     ` Fwd: wrong default route Herta Van den Eynde
2008-07-08 21:09       ` Glynn Clements
  -- strict thread matches above, loose matches on Subject: below --
2008-07-08 15:24 Jake Ravenwood
2008-07-08 15:43 Striker
2008-07-08 16:01 ` Yuri Csapo
2008-07-08 16:15   ` Striker
2008-07-08 17:33     ` Jake Ravenwood
2008-07-08 18:24       ` Striker
2008-07-08 16:14 ` Ben Kevan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=765776.95864.qm@web46102.mail.sp1.yahoo.com \
    --to=jakeravenwood@yahoo.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).