ipv6 static address lost after ifconfig down/up ipv4 stays

Bug #599340 reported by Arjan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netscript-2.4 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: netscript-2.4

Hello,

using static configured ipv4 and ipv6 in /etc/networking/interfaces with ubuntu 10.04LTS 64 bits

like:
iface bck-int--eth1 inet static
 address 119.72.176.36
 netmask 255.255.255.240
 ip-proxy-arp 0
 ip-rp-filter 0

iface bck-int--eth1 inet6 static
 address 2C00:1388:FFFF::3
 netmask 124
 ip-proxy-arp 0
 ip-rp-filter 0

which works fine after a reboot, but when executing a manual "ifconfig bck-int--eth1 down" and up afterwards the ipv6 address gets lost.

hereby the output of a scenario, where you can see the steps. and what goes wrong. In the end i need a "ifconfig down" (again) folowed with ifup "bck-int--eth1" to get my ipv6 address back

root@ubuntu1004lts:/etc/network# ip addr show bck-int--eth1
5: bck-int--eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:24:81:e4:ab:42 brd ff:ff:ff:ff:ff:ff
    inet 119.72.176.36/28 brd 119.72.176.47 scope global bck-int--eth1
    inet6 2c00:1388:ffff::3/124 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::224:81ff:fee4:ab42/64 scope link
       valid_lft forever preferred_lft forever

root@ubuntu1004lts:/etc/network# ifconfig bck-int--eth1 down

root@ubuntu1004lts:/etc/network# ip addr show bck-int--eth1
5: bck-int--eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 00:24:81:e4:ab:42 brd ff:ff:ff:ff:ff:ff
    inet 119.72.176.36/28 brd 119.72.176.47 scope global bck-int--eth1

root@ubuntu1004lts:/etc/network# ifconfig bck-int--eth1 up

root@ubuntu1004lts:/etc/network# ip addr show bck-int--eth1
5: bck-int--eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:24:81:e4:ab:42 brd ff:ff:ff:ff:ff:ff
    inet 119.72.176.36/28 brd 119.72.176.47 scope global bck-int--eth1
    inet6 fe80::224:81ff:fee4:ab42/64 scope link
       valid_lft forever preferred_lft forever
root@ubuntu1004lts:/etc/network#

root@ubuntu1004lts:/etc/network# ifup bck-int--eth1
ifup: interface bck-int--eth1 already configured

root@ubuntu1004lts:/etc/network# ip addr show bck-int--eth1
5: bck-int--eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:24:81:e4:ab:42 brd ff:ff:ff:ff:ff:ff
    inet 119.72.176.36/28 brd 119.72.176.47 scope global bck-int--eth1
    inet6 fe80::224:81ff:fee4:ab42/64 scope link
       valid_lft forever preferred_lft forever
root@ubuntu1004lts:/etc/network# ifdown bck-int--eth1

root@ubuntu1004lts:/etc/network# ip addr show bck-int--eth1
5: bck-int--eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether 00:24:81:e4:ab:42 brd ff:ff:ff:ff:ff:ff
    inet 119.72.176.36/28 brd 119.72.176.47 scope global bck-int--eth1

root@ubuntu1004lts:/etc/network# ifup bck-int--eth1
Restarting openntpd:
ntpd.
ssh stop/waiting
ssh start/running, process 11029
Restarting openntpd: ntpd.
ssh stop/waiting
ssh start/running, process 11135
root@ubuntu1004lts:/etc/network#

root@ubuntu1004lts:/etc/network# ip addr show bck-int--eth1
5: bck-int--eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:24:81:e4:ab:42 brd ff:ff:ff:ff:ff:ff
    inet 119.72.176.36/28 brd 119.72.176.47 scope global bck-int--eth1
    inet6 2c00:1388:ffff::3/124 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::224:81ff:fee4:ab42/64 scope link
       valid_lft forever preferred_lft forever
root@ubuntu1004lts:/etc/network#

Matt Grant (mattgrant)
Changed in netscript-2.4 (Ubuntu):
status: New → Invalid
Revision history for this message
Matt Grant (mattgrant) wrote :

You are still running ifup/ifdown. For Lucid and later you need netscript-2.4-upstart version 5.2.4 or later. This to avoid problems with upstart... This is available over at http://packages.debian.org/sid/netscript-2.4-upstart. Also set up bash as /bin/sh. I am looking at changing to #!/bin/bash in /sbin/netscript next version - dash does not list shell functions that results in the exec functionality not working.

Revision history for this message
Thomas Dreibholz (dreibh) wrote :

The problem may be related to bug #1218442 (https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1218442), which occurs with the ifupdown package included in Ubuntu.

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.