diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-10-06 10:00:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-10-13 12:58:03 +0000 |
commit | 71f9ec9e9bb47ae90bd563e8975f82ba79855ac6 (patch) | |
tree | fda159012bac1ad6d7678227bdcfd119fb5c7d8d | |
parent | Using linux as fallback TERM in container list command. (diff) | |
download | compute-tools-71f9ec9e9bb47ae90bd563e8975f82ba79855ac6.tar.xz compute-tools-71f9ec9e9bb47ae90bd563e8975f82ba79855ac6.zip |
Using iproute instead of net-tools to setup interfaces.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-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 |