Bug 56255 - addresses are not flushed on network stop; dhcpcd is not killed on network stop
Summary: addresses are not flushed on network stop; dhcpcd is not killed on network stop
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.2
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-14 18:06 UTC by Need Real Name
Modified: 2014-03-17 02:24 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-11-14 18:06:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-11-14 18:06:11 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-3 i686)

Description of problem:
"ip route flush dev [dev]" should be done when network is stopped or
restarted. Not doing so causes various kinds of weird problems when old IP
addresses appear again. This kind of behaviour is most noticeable when both
static & DHCP addresses are switched on the same interface. Currently
scripts try to remove the current IP address from list using "ip addr del"
command, however if you change your interface IP address from DHCP to
static the system will keep the DHCP address even after restart and will
show it in "ifconfig" - that's because the DHCP address would not be
deleted, and the new static IP address will be appended to the list of
addresses, and as result will not show in ifconfig (but will show in "ip
addr").

Also dhcpcd is not killed on "service network stop". Personally I find pump
a better solution as it had useful commands such as pump -R, pump -s.


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


How reproducible:
Always

Steps to Reproduce:
1. Configure an interface with static IP, bootproto=static
2. Now run dhcpcd - it will replace the address with a dynamic one
3. Now do service network restart - the main address of the interface will
still be dynamic one, and static IP address will be appended to the list in
"ip addr", but will not be visible in ifconfig.

Actual Results:  Not all of the IP addresses are removed from the interface
during "service network stop".

Expected Results:  All of the IP addresses should be removed from the
interfaces during "service network stop".

Additional info:

Comment 1 Bill Nottingham 2001-11-14 19:51:39 UTC
Addresses should be flushed with initscripts-6.40.1-1 or later.


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