From: Erik de B. - L. <Erik@LowVoice.nl> - 2003-07-19 02:08:41
|
Hi List, I'm setting up tap devices for some UML boxes that I intend to run on public IP's. I'm avoiding the use of both NAT and bridging. I have tuntap and dev_netlink built-in in the host kernel. I've made the /dev/net/tun node with: # mknod -m 660 /dev/net/tun c 10 200 Setting up the tap device seems like no problem: # tunctl -u uml2 -t tap2 Set 'tap2' persistent and owned by uid 2002 # ls -alR /dev |grep tap [no relevalt results, no tap devices were created] Creating taps with other tunctl parameters doesn't seem to work either. On the host I can ifup tap2 and do anything with it, but the node was never created... I've done all this before on another host and the tap devices were created automatically. What can I do, or what am I doing wrong? Best regards, Erik de Bruijn - www.LowVoice.nl |
From: Goetz B. <bo...@bl...> - 2003-07-19 14:57:52
|
On Sat, Jul 19 '03 at 04:08, Erik de Bruijn - LowVoice wrote: > I'm setting up tap devices for some UML boxes that I intend to run on > public IP's. I'm avoiding the use of both NAT and bridging. I have > tuntap and dev_netlink built-in in the host kernel. > > I've made the /dev/net/tun node with: > # mknod -m 660 /dev/net/tun c 10 200 > Setting up the tap device seems like no problem: > # tunctl -u uml2 -t tap2 > Set 'tap2' persistent and owned by uid 2002 > # ls -alR /dev |grep tap > [no relevalt results, no tap devices were created] With out devfs you will never get any device nodes automagicaly. But not even with devfs there are not /dev/tun* or /dev/tab*. I've no idea how it realy works, but I suspect the application (e.g. the user mode linus kernel) uses a special function call on /dev/net/tun to get the file descriptor for it's tun/tap device. Just make sure the user you run your UML as, has access to /dev/net/tun (personaly I always forget to chmod /dev/net) and you should be able to use networking in UML. Note that changins the permissions after the UML was booted, did not work for me, I had to stop and restart the UML to make it work. -- /"\ Goetz Bock at blacknet dot de -- secure mobile Linux everNETting \ / (c) 2003 as GNU FDL 1.1 X [ 1. Use descriptive subjects - 2. Edit a reply for brevity - ] / \ [ 3. Reply to the list - 4. Read the archive *before* you post ] |