歩驟(經過反覆測試,啲步驟係有先後關係,唔好搞錯)
1) 行"apt-get install uml-utilities"
2) 行"apt-get install bridge-utils"
3) 喺server加番個boottime tun module ,喺/etc/modules 加tun喺一行度,可reboot或行"modprobe tun"去人手load住,行"lsmod"會見到個tun module
4) 用SoftEther個Server Manager 先用tap起個local bridge ,如果已有用eth0做bridge要摌走佢,詳情睇以下日文原文或者用Google Translate 翻譯,我個tap device 叫vlan,喺個server會起咗個新interface叫做tap_vlan 。(不可自行喺server人手加個tap device ) http://www.pc-links.com/blog/softether/tap/
5) 喺server改咗/etc/network/interfaces 做以下内容(#係comment)
auto lo
iface lo inet loopback
#eth0 & tap_vlan 兩個section要行先,同唔set IP#俾佢,只加啲command等佢up/down 時執行
auto eth0
iface eth0 inet manual
up ip link set eth0 up
up brctl addif br0 eh0
down brctl delif br0 eth0 || true
down ip link set eth0 down
auto tap_vlan
iface tap_vlan inet manual
#加哩行以防個tap device 無咗
pre-up /usr/sbin/tunctl -t tap_vlan
up ip link set tap_vlan up
up brctl addif br0 tap_vlan
down brctl delif br0 tap_vlan || true
down ip link set tap_vlan down