Changes between Version 37 and Version 38 of jazz/10-05-17
- Timestamp:
- Aug 31, 2012, 11:36:11 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/10-05-17
v37 v38 134 134 {{{ 135 135 jazz@Wdebian:~$ VBoxManage list -l bridgedifs 136 ------------------------------------------- 136 137 jazz@Wdebian:~$ sudo VBoxTunctl 137 138 Set 'tap0' persistent and owned by uid 0 139 或者用 tunctl 產生 tap0 140 jazz@Wdebian:~$ sudo apt-get install uml-utilities 141 jazz@Wdebian:~$ sudo tunctl -t tap0 -g vboxusers 142 jazz@Wdebian:~$ sudo ifconfig tap0 up 143 ------------------------------------------- 138 144 jazz@Wdebian:~$ sudo ifconfig tap0 192.168.125.254 139 145 jazz@Wdebian:~$ sudo iptables -t nat -A POSTROUTING -s 192.168.125.1/32 -j MASQUERADE 140 jazz@Wdebian:~$ sudo sysctl -w net.ipv4.ip_forward =1146 jazz@Wdebian:~$ sudo sysctl -w net.ipv4.ip_forward=1 141 147 }}}