From 35cdaf5b818d1af4be654f62fb5771f61876edd7 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 3 Mar 2013 20:06:20 +0100 Subject: [PATCH] dom0/qubes-dom0-network-via-netvm: use iproute instead of net-tools Apparently net-tools isn't installed by default in fc18-based dom0. --- dom0/qvm-tools/qubes-dom0-network-via-netvm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom0/qvm-tools/qubes-dom0-network-via-netvm b/dom0/qvm-tools/qubes-dom0-network-via-netvm index ad2e24e6..3a804cfd 100755 --- a/dom0/qvm-tools/qubes-dom0-network-via-netvm +++ b/dom0/qvm-tools/qubes-dom0-network-via-netvm @@ -55,7 +55,8 @@ def bringup_eth0(netvm): resolv_conf.write('nameserver ' + netvm.gateway + '\n') resolv_conf.write('nameserver ' + netvm.secondary_dns + '\n') resolv_conf.close() - return os.system('ifconfig eth0 10.137.0.2 netmask 255.255.255.255 && route add default dev eth0') == 0 + return os.system('ip link set eth0 up && ip addr add 10.137.0.2/32 dev eth0 && ' + + 'ip route add 10.137.0.1 dev eth0 && ip route add via 10.137.0.1') == 0 def netup(): netvm = get_netvm()