From 8c4fc4d46d3ae5732f7ee77c2136f589cd3272d0 Mon Sep 17 00:00:00 2001 From: Sebastian Rieger Date: Fri, 25 Nov 2016 18:11:07 +0100 Subject: [PATCH] changed default gateway ip and dns config --- .../advcompnet-lab3-sdn-lxc.virl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab3-sdn-lxc.virl b/GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab3-sdn-lxc.virl index 6985063..7c21417 100644 --- a/GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab3-sdn-lxc.virl +++ b/GIT-VIRL-HS-Fulda/Advanced Computer Networks (Master AI)/advcompnet-lab3-sdn-lxc.virl @@ -1,5 +1,5 @@ - + exclusive @@ -208,7 +208,10 @@ write_files: dhclient eth2 # set default gateway to VIRL host in flat1 route del -net default - route add -net default gw 172.16.1.254 + route add -net default gw 172.16.1.1 + # change dns + echo "nameserver 8.8.8.8" >/etc/resolv.conf + echo "nameserver 8.8.4.4" >>/etc/resolv.conf # enable routing and NAT for 10.10.0.0/16 sysctl -w net.ipv4.ip_forward=1 iptables -A POSTROUTING -t nat -s 10.10.0.0/16 -o eth2 -j MASQUERADE @@ -251,6 +254,7 @@ write_files: +