* new member - test post
@ 2008-07-08 14:21 Jake Ravenwood
2008-07-08 14:25 ` wrong default route Jake Ravenwood
0 siblings, 1 reply; 5+ messages in thread
From: Jake Ravenwood @ 2008-07-08 14:21 UTC (permalink / raw)
To: linux-admin
new member - test post. pls ignore.
^ permalink raw reply [flat|nested] 5+ messages in thread* wrong default route 2008-07-08 14:21 new member - test post Jake Ravenwood @ 2008-07-08 14:25 ` Jake Ravenwood [not found] ` <fff5b0760807080803w6b7b5f44l42a096b7ca2d8d61@mail.gmail.com> 0 siblings, 1 reply; 5+ messages in thread From: Jake Ravenwood @ 2008-07-08 14:25 UTC (permalink / raw) To: linux-admin 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" ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <fff5b0760807080803w6b7b5f44l42a096b7ca2d8d61@mail.gmail.com>]
* Fwd: wrong default route [not found] ` <fff5b0760807080803w6b7b5f44l42a096b7ca2d8d61@mail.gmail.com> @ 2008-07-08 20:27 ` Herta Van den Eynde 2008-07-08 21:09 ` Glynn Clements 0 siblings, 1 reply; 5+ messages in thread From: Herta Van den Eynde @ 2008-07-08 20:27 UTC (permalink / raw) To: linux-admin 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 <herta.vandeneynde@gmail.com> Date: 2008/7/8 Subject: Re: wrong default route To: jakeravenwood@yahoo.com 2008/7/8 Jake Ravenwood <jakeravenwood@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" > 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." ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fwd: wrong default route 2008-07-08 20:27 ` Fwd: " Herta Van den Eynde @ 2008-07-08 21:09 ` Glynn Clements 0 siblings, 0 replies; 5+ messages in thread From: Glynn Clements @ 2008-07-08 21:09 UTC (permalink / raw) To: Herta Van den Eynde; +Cc: linux-admin Herta Van den Eynde wrote: > 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? Because the Reply-To header "belongs" to the author. Occasionally, it may be desirable to post private replies, and "stealing" the Reply-To header prevents that (mail clients won't let you reply to the From address if a Reply-To header exists). Not only does a forced Reply-To header prevent the message from being sent directly to the user, but will cause it to be sent to a public mailing list instead. If the reply was intending to be private, the message may well contain information which shouldn't be made public. The author can always choose to add their own Reply-To header if they never want to receive off-list replies. Having the mailing list set its own Reply-To header is a workaround for "non-technical" lists, where many of the subscribers may not understand the difference between "reply" and "follow-up". Presumably the vger admins (naïvely) assumed that a list targeted to Linux sysadmins doesn't need such workarounds. -- Glynn Clements <glynn@gclements.plus.com> -- To unsubscribe from this list: send the line "unsubscribe linux-admin" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: wrong default route
@ 2008-07-08 15:24 Jake Ravenwood
[not found] ` <fff5b0760807080833k3680d1cbk8c8fcb02c9c83b45@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Jake Ravenwood @ 2008-07-08 15:24 UTC (permalink / raw)
To: linux-admin
thanks for the answers. can you confirm that the should be default route eth1 was overwritten by eth5 gateway?
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <fff5b0760807080833k3680d1cbk8c8fcb02c9c83b45@mail.gmail.com>]
* Fwd: wrong default route [not found] ` <fff5b0760807080833k3680d1cbk8c8fcb02c9c83b45@mail.gmail.com> @ 2008-07-08 20:27 ` Herta Van den Eynde 0 siblings, 0 replies; 5+ messages in thread From: Herta Van den Eynde @ 2008-07-08 20:27 UTC (permalink / raw) To: linux-admin And this was my second. Kind regards, Herta ---------- Forwarded message ---------- From: Herta Van den Eynde <herta.vandeneynde@gmail.com> Date: 2008/7/8 Subject: Re: wrong default route To: jakeravenwood@yahoo.com 2008/7/8 Jake Ravenwood <jakeravenwood@yahoo.com>: > thanks for the answers. can you confirm that the should be default route eth1 was overwritten by eth5 gateway? > Yes, it did. You can check the startup script /etc/init.d/network yourself. It does a 'cd /etc/sysconfig/network-scripts' followed by a 'ls ifcfg*', so it will process the ifcfg files in alphabetical order. /var/log/messages should also show you the startup order. 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." ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-08 21:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08 14:21 new member - test post Jake Ravenwood
2008-07-08 14:25 ` wrong default route Jake Ravenwood
[not found] ` <fff5b0760807080803w6b7b5f44l42a096b7ca2d8d61@mail.gmail.com>
2008-07-08 20:27 ` Fwd: " 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
[not found] ` <fff5b0760807080833k3680d1cbk8c8fcb02c9c83b45@mail.gmail.com>
2008-07-08 20:27 ` Fwd: " Herta Van den Eynde
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).