Public bug reported:

# lsb_release -rd
Description:    Ubuntu 14.04.2 LTS
Release:        14.04

On a multi-homed 14.04 server, the post-up, up, pre-up, etc. scripts are
not executed when the network interface is brought up automatically
(auto ethN set) at boot.

ifup and ifdown do respect and run these commands if the auto ethN lines
are not set in the interfaces config.


/etc/network/interfaces
-----
# The loopback network interface
auto lo
iface lo inet loopback

# Management Net interface
auto eth0
iface eth0 inet static
 address 192.168.50.52
 netmask 255.255.255.0
 up /sbin/ip route add 192.168.50.0/24 dev eth0 src 192.168.50.52 table 
mgmtroute
 up /sbin/ip route add default via 192.168.50.254 table mgmtroute
 up /sbin/ip rule add from 192.168.50.0/24 table mgmtroute

# Public Net interface
auto eth1
iface eth1 inet static
 address 192.168.60.52
 netmask 255.255.255.0
 gateway 192.168.60.254
 up /sbin/ip route add 192.168.60.0/24 dev eth1 src 192.168.60.52 table 
hostingroute
 up /sbin/ip route add default via 192.168.60.254 table hostingroute
 up /sbin/ip rule add from 192.168.60.0/24 table hostingroute

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1472055

Title:
  /etc/network/interfaces up, post-up commands not run at network
  startup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1472055/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to