From 0955c88c3cd1bd2ecd3451ba0d86c2410c463c38 Mon Sep 17 00:00:00 2001 From: Khalid Mammadov Date: Mon, 27 Nov 2017 20:17:29 +0000 Subject: [PATCH] /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. --- engine/userguide/networking/get-started-macvlan.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/userguide/networking/get-started-macvlan.md b/engine/userguide/networking/get-started-macvlan.md index fdd3224492..d5c20b8ec7 100644 --- a/engine/userguide/networking/get-started-macvlan.md +++ b/engine/userguide/networking/get-started-macvlan.md @@ -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