Bug 155522 - system-config-network-tui will not change eth0 from dhcp to static
system-config-network-tui will not change eth0 from dhcp to static
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: system-config-network (Show other bugs)
4.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
:
Depends On:
Blocks: 168429
  Show dependency treegraph
 
Reported: 2005-04-20 21:51 EDT by David Kewley
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2006-0094
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-03-07 13:38:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Kewley 2005-04-20 21:51:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040920

Description of problem:
I installed a new no-X server with eth0 on dhcp for convenience.  Now that I have a static address for it, I am trying to use system-config-network (-tui) to change it to static.

As you'll see from the details below, it looks like system-config-network-tui is borked in more than one way (specifically in this case, failing to change ifcfg-eth0 as requested (indeed its mtime is left the same); instead, changing the mtime on ifcfg-eth1).


Version-Release number of selected component (if applicable):
system-config-network-tui-1.3.22-1

How reproducible:
Always

Steps to Reproduce:
* run system-config-network (-tui screen comes up)
* select Ethernet
* click OK
* change Name and Device fields from eth1 and eth1 (or other randomly-initialized eth{0,1} combinations) to eth0 and eth0
* unselect Use DHCP
* enter all three fields of address information
* click OK
* back on start screen, click Exit



Actual Results:  Now check what happened in /etc/sysconfig/network-scripts:

* ifcfg-eth0 is unchanged (same modtime as before)
* ifcfg-eth1 is changed, and now contains this info (MAC obscured):

DEVICE=eth0
HWADDR=aa:bb:cc:dd:ee:ff
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=dhcp

An ifdown eth0 ; ifup eth0 shows eth0 re-negotiating a DHCP address (it gets the same address as before in this particular trial).

Expected Results:  /etc/sysconfig/network-scripts/ifcfg-eth1 would be unchanged (in this example it is an unused interface; I don't know what would have happened if it had been in use)

/etc/sysconfig/network-scripts/ifcfg-eth0 would have the correct, new static IP information

ifdown eth0 ; ifup eth0 would result in eth0 using its new static IP address properly

Additional info:

I'm just going to edit the ifcfg-ethN files by hand, obviously.  But it'd be nice if people using RHEL 4 AS on "Advanced Servers" (with no X) could actually use the provided tool.
Comment 8 Harald Hoyer 2005-09-09 10:11:22 EDT
Does this version fix your problems?
ftp://people.redhat.com/harald/system-config-network/1.3.22.0.EL.4.1-1/
Comment 14 Red Hat Bugzilla 2006-03-07 13:37:17 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0094.html
Comment 15 Red Hat Bugzilla 2006-03-07 13:37:40 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0094.html
Comment 16 Red Hat Bugzilla 2006-03-07 13:38:04 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0094.html

Note You need to log in before you can comment on or make changes to this bug.