Public bug reported:

When poking around with bug 1633479 i realized that 'dhclient -6 -S -1
eth0' will not raise the interface eth0.  if it is not up already and
have link local addresses, then it will fail.

This may well be designed, so I'm fine if this bug is closed as 'INVALID' with 
such an explanation.
One thing I did notice though, when seeing if this was easily fixed was
 a.) previously bringing the link up was not done (no scripts are called)
 b.) the PREINIT script in dhclient.linux does:
     # flush any stale global permanent IPs from interface
     ip -6 addr flush dev ${interface} scope global permanent

That means that currently, a non-stateless dhclient
invocation would flush global permanent addresses, but a stateless
dhclient invocation would not.

If we changed dhclient to call dhclient-script with PREINIT6, then this 
  ip link set down dev eth0
  ip link set up dev eth0
  ip address add fd42::2/64 dev eth0
  dhclient -S -6 -v -1 eth0

will cause the fd42::2 address to be removed from eth0, where
as previously it was not.  I'm not sure if the previous behavior
was designed or chance.

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: isc-dhcp-client 4.3.3-5ubuntu15
ProcVersionSignature: Ubuntu 4.8.0-22.24-generic 4.8.0
Uname: Linux 4.8.0-22-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
ApportVersion: 2.20.3-0ubuntu8
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Oct 14 13:08:13 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-07-23 (449 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
SourcePackage: isc-dhcp
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: isc-dhcp (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: amd64 apport-bug yakkety

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  'dhclient -6 -S' does not bring interface up

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to