[Netkit.users] --eth0=tap,... + --eth1=A Not working

Edgar Tamarit Perez edtape at gmail.com
Fri Dec 5 13:34:40 CET 2008


Hi,
that's caused because the tap address is the same:

You can probe with

vstart --eth0=tap,172.16.0.1,172.16.0.2 fw1

vstart --eth0=tap,172.16.1.1,172.16.1.2 --eth1=A fw2

Edgar.


Alessandro Dentella escribió:
> Hi,
>
>   i'm struggling with tap devices. 
>
>   While I can start a machine with one single tap device:
>
>     vstart --eth0=tap,172.16.0.1,172.16.0.2 fw1
>
>   I have problems starting a second device on the same machine:
>
>     vstart --eth0=tap,172.16.0.1,172.16.0.2 --eth1=A fw2
>
>   below are the messages in the console.
>   
>   It seems to me that the mistake is that the second hub (A) is started as
>   an Internet connected virtual hub while it's not. Root privileges are
>   requested for the second time, but this time the devise is busy.
>
>   Any hints?
>
>
>   sandro
>   *:-)
>
>
> ============= Starting virtual machine "fw2" =============
>    Kernel:     /misc/netkit/netkit/kernel/netkit-kernel
>    Modules:    /misc/netkit/netkit/kernel/modules
>    Memory:     64 MB
>    Model fs:   /misc/netkit/netkit/fs/netkit-fs
>    Filesystem: /tmp/fw2.disk (new)
>    Interfaces: eth0 @ tap       (/home/sandro/.netkit/hubs/vhub_sandro_tap.cnct)
>                eth1 @ A (/home/sandro/.netkit/hubs/vhub_sandro_A.cnct)
>    Hostfs at:  /home/sandro
>
> ******** Starting Internet connected virtual hub ********
>    172.16.0.1 - 172.16.0.2
> ********     (root privileges are required)      ********
> Running ==> /misc/netkit/netkit/bin/manage_tuntap start sandro 172.16.0.1 172.16.0.2 /home/sandro/.netkit/hubs/vhub_sandro_tap.cnct
> Password: 
> Bringing down nk_tap_sandro (if any)... done.
> Bringing down tunnel (if any)...        done.
> Setting up tunnel...                    done.
> Bringing up nk_tap_sandro...            done.
> Setting permissions for /dev/net/tun... done.
> Enabling IP forwarding...               done.
> Enabling masquerading...                done.
> Opening firewall for tunnel...          done.
> ************** Abandoning root privileges ***************
>
> Running ==> /misc/netkit/netkit/bin/uml_switch -tap nk_tap_sandro -hub -unix /home/sandro/.netkit/hubs/vhub_sandro_tap.cnct </dev/null 2>&1
> ******** Starting Internet connected virtual hub ********
>    /home/sandro/.netkit/hubs/vhub_sandro_A.cnct - /home/sandro/.netkit/hubs/vhub_sandro_A.cnct
> ********     (root privileges are required)      ********
> Running ==> /misc/netkit/netkit/bin/manage_tuntap start sandro /home/sandro/.netkit/hubs/vhub_sandro_A.cnct /home/sandro/.netkit/hubs/vhub_sandro_A.cnct /home/sandro/.netkit/hubs/vhub_sandro_A.cnct
> Password: 
> Bringing down nk_tap_sandro (if any)... done.
> Bringing down tunnel (if any)...        done.
> Setting up tunnel...                    TUNSETIFF: Device or resource busy
> Error while configuring the tunnel.
> sandro at bluff:/tmp$ ipl
>     lo:        127.0.0.1/8
>   eth0: 
>   eth1:      192.168.5.1/24  ==> GW 192.168.5.254 - main
> [nk_tap_sandro]:         172.16.0.1/16
>
>   



More information about the Netkit.users mailing list