/etc/network/interfaces change is not correct (#5394)

Spend "a few hours" on MACVLAN set up to get host machine access containers and finally found out that the setting on /etc/network/interface is not correct in this doc. After adding dash to "pre-up" and "pre-down" and restarting the interface (sudo ifdown mac0 && sudo ifup mac0) everything started working like a charm.
This commit is contained in:
Khalid Mammadov
2017-11-27 20:17:29 +00:00
committed by Jim Galasyn
parent 3ca13855ad
commit 0955c88c3c

View File

@@ -146,8 +146,8 @@ iface eno1 inet manual
auto mac0
iface mac0 inet dhcp
preup ip link add mac0 link eno1 type macvlan mode bridge
postdown ip link del mac0 link eno1 type macvlan mode bridge
pre-up ip link add mac0 link eno1 type macvlan mode bridge
post-down ip link del mac0 link eno1 type macvlan mode bridge
```
For more on Docker networking commands, see