Bug 1038344

Summary: changes to gateway not picked up by ifup or network
Product: Red Hat Enterprise Linux 6 Reporter: Todd <ToddAndMargo>
Component: arpwatchAssignee: Jan Synacek <jsynacek>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.5CC: ajb
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-12 13:57:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Todd 2013-12-05 00:21:57 UTC
Hi All,

Scietific Linux 6.5, 64 bit.

Would one of our intrepid heroes at Red Hat please fix this for me?

I had to manually configure a Tread Net TEW-638PAP as a wireless bridge yesterday.  In the process, I had to change my default router (a.k.a. gateway) three times.  (Networking too, but that worked.) The TEW-638PAP was hooked to my second Ethernet port (eth1).

Problem, I had to reboot to get the new default route to stick.

Now I know of two places I can put my default router:

   /etc/sysconfig/network     <--- where I put it
   GATEWAY=192.168.10.100   and

   /etc/sysconfig/network-scripts/ifcfg-eth1
   GATEWAY=192.168.10.100

I am using /etc/sysconfig/network and the "vi" method.

To check my default router setting, I used "netstat -rn" and looked for the tags "UG".  (It is at the bottom of the list.)

To try to get the new default router setting to take, I used:

    service network restart; netstat -rn
and
    ifdown eth1; ifup eth1; netstat -rn

No joy with either method.  Whatever gateway I had when I booted, was the one I was stuck with.  Reboot was the only way to make the change.  I even tried manually configuring it with "route".  No joy there either.  

The workaround is to manually delete and add with "ip route"
    ip route delete default via xxx.xxx.xxx.xxx dev eth0
    ip route add default via yyy.yyy.yyy.yyy dev eth0
 
    replace xxx.xxx.xxx.xxx with your current router and yyy.yyy.yyy.yyy with the new one 

And the bug is, both  "/etc/rc.d/init.d/network restart" and "ifup ethx" should do pick up a default router (gateway) change on their own and not require manual intervention or a reboot.

Many thanks,
-T

Comment 2 Todd 2014-02-14 20:24:54 UTC
Hi,

  Two days ago, one of my workstations upgrade a ton of packages.  It is not on SL 6.5.

  Two things showed up that concern this bug report.

1)  My "GATEWAY=" setting was removed from /etc/sysconfig/network and moved to
/etc/sysconfig/network-scripts/ifcfg-eth1

"ifup eth1" will now read the "GATEWAY=" from ifcfg-eth1.  If moved back to /etc/sysconfig/network, ifup will no longer read it.

Has "GATEWAY" in /etc/sysconfig/network been depreciated?

2)  in /etc/sysconfig/network-scripts/ifcfg-eth1, "BOOTPROTO=" got changed from "static" to "none".

Has this also been depreciated?

Both of the above freaked out my firewall script as it reads and uses the values above.

Many thanks,
-T

Comment 3 Todd 2014-02-14 20:35:20 UTC
"It is not on SL" should have been " It is now on SL"

Be nice if we had an "edit" function for the typos