[Bug 1136301] [NEW] IFACE names in /etc/network/interfaces cannot contain a hyphen, otherwise up and down commands are skipped
RayH
1136301 at bugs.launchpad.net
Thu Feb 28 20:20:20 UTC 2013
Public bug reported:
Reproduced on Ubuntu 2.6.24-32-generic
The sample configuration for /etc/network/interfaces for Hurricane
Electric IPv6 tunnels uses an IFACE name of he-ipv6.
I came across problems with command line commands that worked fine under
sudo, but did not work when stored in /etc/network/interfaces.
The problem looks strongly related to the inclusion of a hyphen "-" in
the interface name.
sudo ip link set mtu 1460 dev he-ipv6
worked fine.
A config line in /etc/network/interfaces like
up ip link set mtu 1460 dev he-ipv6
did not work, and the MTU remaind at 1480 at the next reboot.
Whereas:
up ip link set mtu 1460 dev $IFACE
did work fine, and the MTU was reduced to 1460, as intended.
** Affects: ifupdown (Ubuntu)
Importance: Undecided
Status: New
** Tags: ifupdown inteface names
** Description changed:
- The sample config for /etc/network/interfaces uses for Hurricane
+ Reproduced on Ubuntu 2.6.24-32-generic
+
+ The sample configuration for /etc/network/interfaces for Hurricane
Electric IPv6 tunnels uses an IFACE name of he-ipv6.
I came across problems with command line commands that worked fine under
sudo, but did not work when stored in /etc/network/interfaces.
The problem looks strongly related to the inclusion of a hyphen "-" in
- the interface name
+ the interface name.
- So a config line like
+ sudo ip link set mtu 1460 dev he-ipv6
+
+ worked fine.
+
+ A config line in /etc/network/interfaces like
up ip link set mtu 1460 dev he-ipv6
- did not work, and the MTU remaind at 1480 at the next reboot
+ did not work, and the MTU remaind at 1480 at the next reboot.
- whereas:
+ Whereas:
up ip link set mtu 1460 dev $IFACE
- did, and the MTU was reduced to 1460, as intended
+ did work fine, and the MTU was reduced to 1460, as intended.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/1136301
Title:
IFACE names in /etc/network/interfaces cannot contain a hyphen,
otherwise up and down commands are skipped
Status in “ifupdown” package in Ubuntu:
New
Bug description:
Reproduced on Ubuntu 2.6.24-32-generic
The sample configuration for /etc/network/interfaces for Hurricane
Electric IPv6 tunnels uses an IFACE name of he-ipv6.
I came across problems with command line commands that worked fine
under sudo, but did not work when stored in /etc/network/interfaces.
The problem looks strongly related to the inclusion of a hyphen "-" in
the interface name.
sudo ip link set mtu 1460 dev he-ipv6
worked fine.
A config line in /etc/network/interfaces like
up ip link set mtu 1460 dev he-ipv6
did not work, and the MTU remaind at 1480 at the next reboot.
Whereas:
up ip link set mtu 1460 dev $IFACE
did work fine, and the MTU was reduced to 1460, as intended.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1136301/+subscriptions
More information about the foundations-bugs
mailing list