1999-12-13 16:42:17 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1999, Boris Popov
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.Dd June 20, 1999
|
|
|
|
.Dt EF 4
|
2000-04-06 03:09:56 +00:00
|
|
|
.Os
|
1999-12-13 16:42:17 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm ef
|
2004-12-21 01:09:34 +00:00
|
|
|
.Nd "pseudo-device driver providing support for multiple Ethernet frame types"
|
1999-12-13 16:42:17 +00:00
|
|
|
.Sh SYNOPSIS
|
2001-10-05 07:17:24 +00:00
|
|
|
.Cd "device ef"
|
1999-12-13 16:42:17 +00:00
|
|
|
.Sh DESCRIPTION
|
2001-05-01 09:15:30 +00:00
|
|
|
The
|
1999-12-13 16:42:17 +00:00
|
|
|
.Nm
|
2004-12-21 01:09:34 +00:00
|
|
|
pseudo-device driver clones each Ethernet type device with four
|
2002-05-29 17:00:41 +00:00
|
|
|
additional interfaces.
|
2002-06-14 22:15:22 +00:00
|
|
|
Each of them is capable to send or receive only
|
1999-12-13 16:42:17 +00:00
|
|
|
one predefined frame type.
|
|
|
|
.Pp
|
2003-12-27 15:35:09 +00:00
|
|
|
Names for the new interfaces are created by adding a
|
1999-12-13 16:42:17 +00:00
|
|
|
.Ar fN
|
2002-05-29 17:00:41 +00:00
|
|
|
suffix to an existing device name.
|
|
|
|
Where
|
1999-12-13 16:42:17 +00:00
|
|
|
.Ar N
|
|
|
|
is a device unit which can have one of the following values:
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
0 interface with an Ethernet_II frame
|
|
|
|
1 interface with a Novell Ethernet_802.3 frame
|
|
|
|
2 interface with an Ethernet_802.2 frame
|
|
|
|
3 interface with an Ethernet_802.2/SNAP frame support.
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
For example, device
|
|
|
|
.Ar ed0
|
|
|
|
will be populated with four devices:
|
|
|
|
.Ar ed0f0 ,
|
|
|
|
.Ar ed0f1 ,
|
|
|
|
.Ar ed0f2
|
|
|
|
and
|
|
|
|
.Ar ed0f3 .
|
|
|
|
.Pp
|
2003-12-27 15:35:09 +00:00
|
|
|
After that, each device can be configured as usual:
|
1999-12-13 16:42:17 +00:00
|
|
|
.Dl # ifconfig ed0f1 ipx 0x105
|
|
|
|
This will configure IPX protocol with network number
|
|
|
|
.Ar 0x105
|
|
|
|
and
|
|
|
|
.Ar Ethernet_802.3
|
|
|
|
frame type.
|
|
|
|
.Pp
|
2003-12-27 15:35:09 +00:00
|
|
|
Please note that it is impossible to configure the IPX protocol on the parent
|
1999-12-13 16:42:17 +00:00
|
|
|
.Ar ed0
|
2003-12-27 15:35:09 +00:00
|
|
|
device after the
|
1999-12-13 16:42:17 +00:00
|
|
|
.Ar if_ef.ko
|
2003-12-27 15:35:09 +00:00
|
|
|
driver has been loaded.
|
2002-04-20 05:00:48 +00:00
|
|
|
.Pp
|
2003-12-27 15:35:09 +00:00
|
|
|
If the parent interface is not configured for any other protocol
|
|
|
|
(IP for example), subinterfaces will not function.
|
|
|
|
To avoid that, the parent interface should be
|
2002-05-29 17:00:41 +00:00
|
|
|
manually marked as
|
|
|
|
.Dq up :
|
2002-04-20 05:00:48 +00:00
|
|
|
.Dl # ifconfig ed0 up
|
1999-12-13 16:42:17 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
The
|
|
|
|
.Nm
|
2003-12-27 15:35:09 +00:00
|
|
|
driver can be loaded via the
|
1999-12-13 16:42:17 +00:00
|
|
|
.Xr loader.conf 5
|
|
|
|
file:
|
|
|
|
.Dl if_ef_load="YES"
|
|
|
|
.Pp
|
2003-12-27 15:35:09 +00:00
|
|
|
In this case, ordinary interface configuration commands can be used
|
2000-04-06 03:09:56 +00:00
|
|
|
in the
|
1999-12-13 16:42:17 +00:00
|
|
|
.Xr rc.conf 5
|
|
|
|
file:
|
|
|
|
.Dl network_interfaces="ed2 lo0 tun0 ed2f0 ed2f1"
|
2001-05-01 09:15:30 +00:00
|
|
|
.Dl ifconfig_ed2f0_ipx="ipx 0x101"
|
1999-12-13 16:42:17 +00:00
|
|
|
.Dl ifconfig_ed2f1_ipx="ipx 0x102"
|
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
None.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ipx 3 ,
|
|
|
|
.Xr ifconfig 8
|
2000-04-06 03:09:56 +00:00
|
|
|
.Sh AUTHORS
|
2000-10-26 15:30:44 +00:00
|
|
|
.An Boris Popov Aq bp@FreeBSD.org .
|
2010-05-13 12:07:55 +00:00
|
|
|
.Sh CAVEATS
|
|
|
|
Avoid to configure the parent Ethernet device for the IPX protocol, after the
|
|
|
|
.Nm
|
|
|
|
driver is loaded.
|