/[sysadmin-cookbook]/recepies/lxc/kvm/02-network/01-add-tap.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

Contents of /recepies/lxc/kvm/02-network/01-add-tap.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 258 - (show annotations)
Sat May 14 19:53:44 2011 UTC (13 years ago) by dpavlin
File MIME type: application/x-sh
File size: 210 byte(s)
add tap interface to host lapop
1 #!/bin/sh -x
2
3 # FIXME change username
4 tunctl -u dpavlin -t kvm0
5 ifconfig kvm0 192.168.254.1 netmask 255.255.255.0
6 echo 1 > /proc/sys/net/ipv4/ip_forward
7
8 # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
9

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26