Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2003 19:07:40 -0700 (PDT)
From:      Doug Ambrisko <ambrisko@ambrisko.com>
To:        kw3wong@engmail.uwaterloo.ca
Cc:        freebsd-net@freebsd.org
Subject:   Re: Question about bridging code
Message-ID:  <200307110207.h6B27e6q038191@www.ambrisko.com>
In-Reply-To: <1057865744.3f0dc0103f795@www.nexusmail.uwaterloo.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
kw3wong@engmail.uwaterloo.ca writes:
| > It's just a naming issue, vmnetX is the network-device name of /dev/tapX.
| > (the ip-equivalent thing, "tun", has the same name for both the network
| > device and the device entry in the filesystem. As a matter of fact the
| > latter is totally arbitrary so "tun" perhaps should be called "vmnet"...)
| 
| But when I do a ifconfig, only tapX devices are there, where there is no vmnetX 
| devices. And when I set up the bridge with vmnetX, the kernel will complain 
| that the vmnetX devices do not exist. Do I need to perform a makedev on it 
| first to create the devices? If so, do they have a special major and minor 
| number that I should assign it to?

Yes a different offset of minor number maps into vmnetX:
  a21p% ls -l /compat/linux/dev/vmnet?
  crw-r--r--  1 root  wheel  149, 0x00010001 Jul  8 18:34 /compat/linux/dev/vmnet1
  crw-r--r--  1 root  wheel  149, 0x00010002 Jul  1 19:20 /compat/linux/dev/vmnet2
  crw-r--r--  1 root  wheel  149, 0x00010003 Jul  1 19:20 /compat/linux/dev/vmnet3
  crw-r--r--  1 root  wheel  149, 0x00010004 Mar 21  2002 /compat/linux/dev/vmnet4
  crw-r--r--  1 root  wheel  149, 0x00010005 May 12 09:26 /compat/linux/dev/vmnet5
  crw-r--r--  1 root  wheel  149, 0x00010006 Jun  9 15:45 /compat/linux/dev/vmnet6
  crw-r--r--  1 root  wheel  149, 0x00010007 Jun  9 15:45 /compat/linux/dev/vmnet7
  crw-r--r--  1 root  wheel  149, 0x00010008 Jan 10  2002 /compat/linux/dev/vmnet8
  crw-r--r--  1 root  wheel  149, 0x00010009 Jan 10  2002 /compat/linux/dev/vmnet9
  a21p% ls -l /dev/tap?
  crw-------  1 root  network  149,   0 Aug  6  2002 /dev/tap0
  crw-------  1 root  network  149,   1 Aug  6  2002 /dev/tap1
  crw-------  1 root  network  149,   2 Aug  6  2002 /dev/tap2
  crw-------  1 root  network  149,   3 Aug  6  2002 /dev/tap3
  crw-------  1 root  network  149,   4 Dec 11  2001 /dev/tap4
  crw-------  1 root  network  149,   5 Dec 11  2001 /dev/tap5
  crw-------  1 root  network  149,   6 Dec 11  2001 /dev/tap6
  crw-------  1 root  network  149,   7 Dec 11  2001 /dev/tap7
  a21p%

Then
	echo -n > /compat/linux/dev/vmnetX 
and ifconfig will list it.

In -current they just show up.

Doug A.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307110207.h6B27e6q038191>