diff options
-rwxr-xr-x | lib/container/start | 8 | ||||
-rw-r--r-- | share/doc/HOST-SETUP.txt | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/container/start b/lib/container/start index 6d2c7a9..e2d94b5 100755 --- a/lib/container/start +++ b/lib/container/start @@ -316,8 +316,8 @@ then cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF allow-hotplug ${INTERFACE} iface ${INTERFACE} inet manual - pre-up ifconfig ${INTERFACE} up - post-down ifconfig ${INTERFACE} down + pre-up ip link set ${INTERFACE} up + post-down ip link set ${INTERFACE} down EOF done @@ -347,10 +347,10 @@ EOF cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF allow-hotplug ${INTERFACE} iface ${INTERFACE} inet manual - pre-up ifconfig ${INTERFACE} up + pre-up ip link set ${INTERFACE} up post-up brctl addif ${BRIDGE} ${INTERFACE} pre-down brctl delif ${BRIDGE} ${INTERFACE} - post-down ifconfig ${INTERFACE} down + post-down ip link set ${INTERFACE} down EOF else diff --git a/share/doc/HOST-SETUP.txt b/share/doc/HOST-SETUP.txt index e172ee3..a571ae7 100644 --- a/share/doc/HOST-SETUP.txt +++ b/share/doc/HOST-SETUP.txt @@ -82,8 +82,8 @@ iface bridge0 inet static gateway 10.0.0.1 netmask 255.255.255.0 - pre-up ifconfig eno1 down - pre-up ifconfig eno1 up + pre-up ip link set eno1 down + pre-up ip link set eno1 up bridge_ports eno1 bridge_fd 0 @@ -140,8 +140,8 @@ iface eno3 inet manual allow-hotplug bond0 iface bond0 inet manual - up ifconfig bond0 0.0.0.0 up - down ifconfig bond0 down + up ip link set bond0 0.0.0.0 up + down ip link set bond0 down slaves eno2 eno3 |