Bug 53704 - Changing IP address, ifdown/ifup causes old IP and route to show up
Summary: Changing IP address, ifdown/ifup causes old IP and route to show up
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: net-tools   
(Show other bugs)
Version: roswell
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Crutcher Dunnavant
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2001-09-16 00:36 UTC by David Morse
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-09-16 00:36:50 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description David Morse 2001-09-16 00:36:46 UTC
Description of problem:
When I change an interface address i.e. from to, 
either via netconfig -d ethN or manually editing /etc/sysconfig/network-
scripts/ifcfg-ethN, ifdown ethN and ifup ethN, and do a route, I still see 
the old IP and two routing entries (one for the old IP, one for the new).

Version-Release number of selected component (if applicable): 1.6.0-3

How reproducible:

Steps to Reproduce:
1. use netconfig -d eth0 to assign eth0 IP, bring interface up.
2. type route, route exists as expected
2. use netconfig -d eth0 to assign eth0 IP, bring interface 
down (gets error) and up
3. type ifconfig, old IP ( still shows up; should 
show up
4. type route, AND exists (only should 

Actual Results:  When bringing interface down after IP change in step 2, I 
get "RTNETLINK answers: Cannot assign requested address." and it doesn't 
appear to remove the route, because running route after bringing 
the interface up after the IP change shows both networks:

Destination   Gateway   Genmask        Flags Metric Ref   Use Iface     *  U     0      0       0 eth0     *  U     0      0       0 eth0     *  U     0      0       0 lo

ifconfig shows old IP address for eth0 (

Expected Results:  ifconfig should show IP after all the above 

It should have correctly removed the route on ifdown, and 
brought ONLY route up and assigned IP.

Additional info:

It seems that the problem lies in the ifdown; if you change the IP 
in /etc/sysconfig/network-scripts/ifcfg-ethN while the interface is still 
up, it gives an error when you try to ifdown it.  Therefore when you try 
to ifup with the new IP, it still has the old IP and route (along with the 
new route which is useless).

Comment 1 Bill Nottingham 2001-09-26 20:44:23 UTC
This should be fixed in initscripts-6.40.1-1.

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