ipv6 static address lost after ifconfig down/up ipv4 stays
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
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@ubuntu1004
5: bck-int--eth1: <BROADCAST,
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:
valid_lft forever preferred_lft forever
inet6 fe80::224:
valid_lft forever preferred_lft forever
root@ubuntu1004
root@ubuntu1004
5: bck-int--eth1: <BROADCAST,
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@ubuntu1004
root@ubuntu1004
5: bck-int--eth1: <BROADCAST,
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:
valid_lft forever preferred_lft forever
root@ubuntu1004
root@ubuntu1004
ifup: interface bck-int--eth1 already configured
root@ubuntu1004
5: bck-int--eth1: <BROADCAST,
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:
valid_lft forever preferred_lft forever
root@ubuntu1004
root@ubuntu1004
5: bck-int--eth1: <BROADCAST,
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@ubuntu1004
Restarting openntpd:
ntpd.
ssh stop/waiting
ssh start/running, process 11029
Restarting openntpd: ntpd.
ssh stop/waiting
ssh start/running, process 11135
root@ubuntu1004
root@ubuntu1004
5: bck-int--eth1: <BROADCAST,
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:
valid_lft forever preferred_lft forever
inet6 fe80::224:
valid_lft forever preferred_lft forever
root@ubuntu1004
Changed in netscript-2.4 (Ubuntu): | |
status: | New → Invalid |
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.