/[pxelator]/bin/lib.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /bin/lib.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 570 by dpavlin, Sat Jan 2 14:04:42 2010 UTC revision 571 by dpavlin, Thu Sep 11 13:51:22 2014 UTC
# Line 3  Line 3 
3  sudo modprobe 8021q  sudo modprobe 8021q
4  sudo vconfig add eth0 63  sudo vconfig add eth0 63
5  sudo ifconfig eth0.63 10.60.4.9 netmask 255.255.252.0 up  sudo ifconfig eth0.63 10.60.4.9 netmask 255.255.252.0 up
6    sudo iptables -t nat -A POSTROUTING -s 10.60.4.9/22 -o eth0 -j MASQUERADE
7    
8  sudo ifconfig virtual 172.16.10.1 netmask 255.255.255.0 up  sudo ifconfig virtual 172.16.10.1 netmask 255.255.255.0 up
9  sudo iptables -t nat -A POSTROUTING -s 172.16.10.1/24 -o eth0 -j MASQUERADE  sudo iptables -t nat -A POSTROUTING -s 172.16.10.1/24 -o eth0 -j MASQUERADE

Legend:
Removed from v.570  
changed lines
  Added in v.571

  ViewVC Help
Powered by ViewVC 1.1.26