Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Mar 2007 17:15:02 +0900
From:      Hajimu UMEMOTO <ume@FreeBSD.ORG>
To:        Willy@Offermans.Rompen.nl
Cc:        freebsd-stable@FreeBSD.ORG, openvpn-users@lists.sourceforge.net
Subject:   Re: tap device at boot time
Message-ID:  <yge7ithmwop.wl%ume@mahoroba.org>
In-Reply-To: <20070316075332.GA5562@wiz>
References:  <20070314104732.GA5794@wiz> <45F7D727.2080301@unsane.co.uk> <20070315133346.GA5645@wiz> <45F94CD5.90601@FreeBSD.org> <20070315143322.GA7027@wiz> <ygey7lyy31j.wl%ume@mahoroba.org> <20070316075332.GA5562@wiz>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Fri, 16 Mar 2007 08:53:32 +0100
>>>>> Willy Offermans <Willy@Offermans.Rompen.nl> said:

Willy> If I load the tap kernel_module, then it is quite obvious that I want to use the tap
Willy> device. Why should I perform `cp /dev/null /dev/tap0` to create tap0.

Because, the tap is a pseudo interface.  How many tap interface are
you want to use, actually?  Though someone may want to use just one
tap interface, others may want to use many tap interfaces.  You can
create desired number of tap interfaces.

Willy> It does not sound logic. Is this the same for, let say, the xl0 device?

The xl is physical interface, and there is corresponding physical
device.

Willy> Again the fundamental question why is the handling of the tap device so
Willy> much different from the handling of a normal NIC? One would expect a
Willy> similar procedure for initialising NICs! Please correct me if I'm too
Willy> naive!

Most of the pseudo interface use same manner to create its instance.
However, tap and tun were not so until recently.

Willy> To be more practical, where should I put `cp /dev/null /dev/tap0`? I
Willy> don't have anything like /etc/rc.early. Should there be a trailing dot?
Willy> Should I create rc.early? Probably I need to google again and maybe to
Willy> read the handbook again. 

It is "/etc/rc.early".  It doesn't exist by default installation of
FreeBSD.

Sincerely,

--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?yge7ithmwop.wl%ume>