This bug is affecting me in ubuntu16.04 server
running neither 

ifconfig down ens160 / ifconfig up ens160

nor

ip link set dev ens160 down / ip link set dev ens160 up

was causing our script to run.  We tried in /etc/network/interfaces/
post-up and up and also in /etc/network/if-up.d/000-my-on-up-script.

My on-up script writes to a log and adds a route.  The route nor the log
messages show up, no matter how I bring the interface down and up. We
were having trouble with neither post-up nor up working and I was trying
to test.

We have been having missing routes after rebooting, so I was trying to
resolve what was happening.  I moved the command into a script that logs
in /etc/network/if-up.d.  No amount of up or down ran the script.
However on a full restart I was able to see the if-up.d script run twice
(once for each interface).  That said I was unable to get it to run
again with any up/downing.

I think there is a compounding factor, as I have a bunch of servers all
basically configured the same way and all the rest are doing fine with
"up" in the interfaces file commands. (Although not having to debug
those, I don't know if the `ifconfig ensXXX up` command is rerunning the
scripts correctly or not.

-- 
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/+source/netscript-2.4/+bug/1472055/+subscriptions

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

Reply via email to