Changes between Version 37 and Version 38 of jazz/10-05-17


Ignore:
Timestamp:
Aug 31, 2012, 11:36:11 PM (12 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-05-17

    v37 v38  
    134134{{{
    135135jazz@Wdebian:~$ VBoxManage list -l bridgedifs
     136-------------------------------------------
    136137jazz@Wdebian:~$ sudo VBoxTunctl
    137138Set 'tap0' persistent and owned by uid 0
     139或者用 tunctl 產生 tap0
     140jazz@Wdebian:~$ sudo apt-get install uml-utilities
     141jazz@Wdebian:~$ sudo tunctl -t tap0 -g vboxusers
     142jazz@Wdebian:~$ sudo ifconfig tap0 up
     143-------------------------------------------
    138144jazz@Wdebian:~$ sudo ifconfig tap0 192.168.125.254
    139145jazz@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 = 1
     146jazz@Wdebian:~$ sudo sysctl -w net.ipv4.ip_forward=1
    141147}}}