Use vif-route-qubes.
This commit is contained in:
parent
23e11f5f6f
commit
81a57ec32b
@ -60,8 +60,8 @@ start()
|
|||||||
gateway=$(/usr/bin/xenstore-read qubes_gateway)
|
gateway=$(/usr/bin/xenstore-read qubes_gateway)
|
||||||
secondary_dns=$(/usr/bin/xenstore-read qubes_secondary_dns)
|
secondary_dns=$(/usr/bin/xenstore-read qubes_secondary_dns)
|
||||||
if [ x$ip != x ]; then
|
if [ x$ip != x ]; then
|
||||||
/sbin/ifconfig eth0 $ip netmask $netmask up
|
/sbin/ifconfig eth0 $ip netmask 255.255.255.255 up
|
||||||
/sbin/route add default gw $gateway
|
/sbin/route add default dev eth0
|
||||||
echo "nameserver $gateway" > /etc/resolv.conf
|
echo "nameserver $gateway" > /etc/resolv.conf
|
||||||
echo "nameserver $secondary_dns" >> /etc/resolv.conf
|
echo "nameserver $secondary_dns" >> /etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user