configure virtual to 172.16.10.1
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 Jan 2010 14:04:42 +0000 (14:04 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 Jan 2010 14:04:42 +0000 (14:04 +0000)
bin/lib.sh

index 8c13dde..7397971 100755 (executable)
@@ -3,4 +3,8 @@
 sudo modprobe 8021q
 sudo vconfig add eth0 63
 sudo ifconfig eth0.63 10.60.4.9 netmask 255.255.252.0 up
+
+sudo ifconfig virtual 172.16.10.1 netmask 255.255.255.0 up
+sudo iptables -t nat -A POSTROUTING -s 172.16.10.1/24 -o eth0 -j MASQUERADE
+
 exec sudo ./bin/start.sh