4
edits
Changes
→Option B)
Remember to run <pre>chmod +x /usr/sbin/vznetaddroute</pre> to make the script executable.
in addition you need to edit your /etc/network/interfaces and add the sysctl statements for forwardings and proxy_arp like this:
<pre>
auto eth0
iface eth0 inet static
address 10.1.1.1
netmask 255.255.255.0
network 10.1.1.0
broadcast 10.1.1.255
gateway 10.215.1.254
dns-nameservers 10.215.1.20
dns-search prod.your.domain
up sysctl -w net.ipv4.conf.eth0.proxy_arp=1
up sysctl -w net.ipv4.conf.eth0.forwarding=1
</pre>
afterwards execute both statements manualy:
<pre>
sysctl -w net.ipv4.conf.eth0.proxy_arp=1
sysctl -w net.ipv4.conf.eth0.forwarding=1
</pre>
====Make vzctl run the script====