dhclient-script does not respect ip6_prefixlen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
isc-dhcp (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
/sbin/dhclient-
The result is that:
$ dhclient -6 -1 -v eth0
results in network configuration like this:
2: eth0: <BROADCAST,
link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
inet6 fd42:83bb:
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
when it should have a /64 on the fd42 address, and subsequently no ability to reach other hosts on that network.
The fix seems simple enough:
ip -6 addr add ${new_ip6_
dev ${interface} scope global
Ie, we just have to add '/${new_
This link seems relevant:
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: isc-dhcp-client 4.3.3-5ubuntu15
ProcVersionSign
Uname: Linux 4.8.0-17-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
Date: Mon Oct 10 20:23:42 2016
DhclientLeases:
JournalErrors:
Error: command ['journalctl', '-b', '--priority=
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: isc-dhcp
UpgradeStatus: No upgrade log present (probably fresh install)
The DHCP v6 protocol does not include prefixlen: On-link indication comes from router- advertisements, only.
So it's not so much that the script is ignoring it, as it is that dhclient is making up answers.