-
Tuntap
Hi.
I would make the tuntap thing for Colinux but i think it doesnt work.
Ive used this guide:
Rename the virtual network interface that comes with colinux to tuntap and change its ip address to something like 10.0.2.2
And on the network part of your PWServer.conf, just put only this:
Code:
# Network
eth0=tuntap,tuntap
And thats it.
The ip address of your pw server will be 10.0.2.15 if your using the kvait's coLinux image.
Ive made all this. And now i get this......
http://s2.directupload.net/images/080723/6vgjqd3z.jpg
-
Re: Tuntap
Quote:
Originally Posted by
Eistiger
Hi.
Code:
# Network
eth0=tuntap,tuntap
Edit the file /etc/network/interfaces to create a bridge connection
Code:
auto br0
iface br0 inet dhcp
bridge_ports eth0 tap0
Edit /etc/dhcpc/config and /etc/dhcpc/dhcpcd.exe
should be changed to:
Code:
case ${INTERFACE} in
eth0 | br0)
In /etc/dhcpc/dhcpcd.exe changed into:
Code:
case ${INTERFACE} in
eth* | br*) ;;
wlan*) ;;
*****) logger -s -p local0.err -t dhcpcd.exe "wrong interface name \"${INTERFACE}\""
exit 1
;;
shut down any dhcp client daemons
Code:
host# ifconfig eth0 down
Then create a TUN/TAP device:
Code:
host# tunctl -u root
Next you will create a bridge:
Code:
host# brctl addbr br0 host# ifconfig eth0 0.0.0.0 promisc up host# ifconfig tap0 0.0.0.0 promisc up
If you need...
Code:
host# ifconfig br0 $IP netmask 255.255.255.0 up
Now add the interfaces to the bridge:
Code:
host# brctl addif br0 eth0 host# brctl addif br0 tap0
host# route add -host $GW dev br0 host# route add default gw $GW
:cool: Finished
RUNNING...
Launch colinux as normal, but add the line
Example:
Code:
host# colinux-daemon kernel=vmlinux cobd0=root_fs cobd1=swap_fs \ root=/dev/cobd0 eth0=tuntap,tap0
:D: :D: