repo.or.cz
/
arrow.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[UP/add] - add virtualbox script to conf net,
[arrow.git]
/
archlinux_conf
/
home
/
.bin
/
shell
/
arrow-vbox-prepare
blob
83bbe509a05df3d8c8b1d1162bb124ad0b5d699a
1
#!/bin/bash
2
3
export
GUEST
=
tap1
4
export
HOST
=
eth0
5
6
modprobe tun
7
VBoxTunctl
-t
$GUEST
-u
$USER
8
9
ifconfig
$HOST
0
10
ifconfig
$HOST
promisc
11
ifconfig
$GUEST
promisc
12
13
ifconfig
$HOST
up
14
ifconfig
$GUEST
up
15
16
brctl addbr br0
17
brctl addif
$HOST
18
brctl addif
$GUEST
19
ip addr add
192.168.3.224
dev br0
20
ip route add to default via
192.168.3.225
dev br0