/etc/network/interfaces ipv6 static gateway not set

Bug #1510098 reported by Andrej Gelenberg
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ifupdown (Debian)
Fix Released
Unknown
ifupdown (Ubuntu)
Confirmed
High
Unassigned

Bug Description

After installing 15.10 ipv6 gateway not set on start up. In 15.04 it worked fine

andrej@nikel:~$ cat /etc/network/interfaces
auto lo enp4s0

iface lo inet loopback
iface enp4s0 inet manual
iface enp4s0 inet6 static
  address ----:200:8221::---
  netmask 64
  gateway ----198:20-----

andrej@nikel:~$ ip -6 route
-------0:8221::/64 dev enp4s0 proto kernel metric 256 mtu 1500 pref medium
fe80::/64 dev enp4s0 proto kernel metric 256 mtu 1500 pref medium
fe80::/64 dev lxcbr0 proto kernel metric 256 pref medium
fe80::/64 dev docker0 proto kernel metric 256 pref medium

3: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc pfifo_fast state UP group default qlen 1000
    link/ether ------7:98 brd ff:ff:ff:ff:ff:ff
    inet 10.0.4.1/8 brd 10.255.255.255 scope global enp4s0
       valid_lft forever preferred_lft forever
    inet6 ----200:8221::--/64 scope global
       valid_lft forever preferred_lft forever
    inet6 ---------15:17ff:fe9e:b798/64 scope global mngtmpaddr dynamic
       valid_lft 83024sec preferred_lft 11024sec
    inet6 fe80::215:17ff:fe9e:b798/64 scope link
       valid_lft forever preferred_lft forever

andrej@nikel:~$ cat /etc/sysctl.conf
net.ipv4.conf.default.rp_filter= 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.tcp_syncookies = 1

net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
net.ipv6.conf.enp4s0.use_tempaddr = 2

andrej@nikel:/proc/sys/net/ipv6/conf/enp4s0$ for i in *; do echo -n "$i: " ; cat $i ; done
accept_dad: 1
accept_ra: 0
accept_ra_defrtr: 1
accept_ra_from_local: 0
accept_ra_mtu: 1
accept_ra_pinfo: 1
accept_ra_rt_info_max_plen: 0
accept_ra_rtr_pref: 1
accept_redirects: 1
accept_source_route: 0
autoconf: 0
dad_transmits: 1
disable_ipv6: 0
force_mld_version: 0
force_tllao: 0
forwarding: 0
hop_limit: 64
max_addresses: 16
max_desync_factor: 600
mc_forwarding: 0
mldv1_unsolicited_report_interval: 10000
mldv2_unsolicited_report_interval: 1000
mtu: 1500
ndisc_notify: 0
proxy_ndp: 0
regen_max_retry: 3
router_probe_interval: 60
router_solicitation_delay: 1
router_solicitation_interval: 4
router_solicitations: 3
cat: stable_secret: Permission denied
stable_secret: suppress_frag_ndisc: 1
temp_prefered_lft: 86400
temp_valid_lft: 604800
use_tempaddr: 2

Maybe related: https://bugs.launchpad.net/ubuntu/+source/miredo/+bug/1510047

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: ifupdown 0.7.54ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
Date: Mon Oct 26 14:41:55 2015
JournalErrors:
 No journal files were found.
 -- No entries --
SourcePackage: ifupdown
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Andrej Gelenberg (andrej-gelenberg) wrote :
description: updated
description: updated
Revision history for this message
Bas Zoetekouw (baszoetekouw) wrote :

Exact same problem here. Setup worked flawlessly in 15.04, but in 15.10 the default gateway isn't set.
After manually adding it, eveything works fine again.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ifupdown (Ubuntu):
status: New → Confirmed
Changed in ifupdown (Ubuntu):
importance: Undecided → High
Revision history for this message
Dan Streetman (ddstreet) wrote :

15.10 is EOL, and this does seem to work in 16.04. Please reopen if you still have this problem in 16.04.

Changed in ifupdown (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
pdf (pdffs) wrote :

This is still valid on all Ubuntu versions when ifupdown is used, and an RA exists on the network - there is a race in assigning the default gateway. See the associated Debian bug for additional details.

Changed in ifupdown (Ubuntu):
status: Invalid → Confirmed
Changed in ifupdown (Debian):
status: Unknown → Confirmed
Changed in ifupdown (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.