From 341a5d76cacc9211bbac28f3d7b5cef08e709c5e Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 16 Sep 2011 00:06:14 +0200 Subject: [PATCH] vm: route through specific host, not directly interface (#355) This it to not fill ARP cache with any host that VM connects to. --- common/setup_ip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/setup_ip b/common/setup_ip index 43d14395..717ca319 100755 --- a/common/setup_ip +++ b/common/setup_ip @@ -7,7 +7,8 @@ if [ x$ip != x ]; then secondary_dns=`/usr/bin/xenstore-read qubes_secondary_dns` /sbin/ifconfig $INTERFACE $ip netmask 255.255.255.255 /sbin/ifconfig $INTERFACE up - /sbin/route add default dev $INTERFACE + /sbin/route add -host $gateway dev $INTERFACE + /sbin/route add default gw $gateway /sbin/ethtool -K $INTERFACE sg off echo "nameserver $gateway" > /etc/resolv.conf echo "nameserver $secondary_dns" >> /etc/resolv.conf