2004-06-22 09:09:18 +00:00
|
|
|
.\" Copyright (c) 2004 Gleb Smirnoff
|
|
|
|
.\" 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$
|
|
|
|
.\"
|
2004-06-22 09:23:31 +00:00
|
|
|
.Dd July 22, 2004
|
2004-06-22 09:09:18 +00:00
|
|
|
.Dt NG_FEC 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm ng_fec
|
|
|
|
.Nd netgraph Fast EtherChannel node
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.In netgraph/ng_fec.h
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm fec
|
2006-03-05 15:56:22 +00:00
|
|
|
node implements Ethernet port trunking using the
|
|
|
|
.Dq Cisco Fast EtherChannel
|
|
|
|
protocol.
|
|
|
|
Upon creation, a
|
|
|
|
.Nm fec
|
|
|
|
node creates a network interface associated with it.
|
2004-06-22 09:09:18 +00:00
|
|
|
Interfaces are named
|
|
|
|
.Dq Li fec0 ,
|
|
|
|
.Dq Li fec1 ,
|
|
|
|
etc.
|
2006-03-05 15:56:22 +00:00
|
|
|
New nodes take the first available unit.
|
2004-06-22 09:09:18 +00:00
|
|
|
.Sh HOOKS
|
|
|
|
The
|
|
|
|
.Nm fec
|
|
|
|
node accepts any hooks.
|
|
|
|
However it does not use them.
|
2006-03-05 15:56:22 +00:00
|
|
|
Under normal operation, a
|
|
|
|
.Nm fec
|
|
|
|
node should not have any hooks.
|
2004-06-22 09:09:18 +00:00
|
|
|
.Sh CONTROL MESSAGES
|
|
|
|
Interface membership in the FEC group is configured with the following
|
|
|
|
control messages:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Dv NGM_FEC_ADD_IFACE Pq Dq Li add_iface
|
|
|
|
Attach interface to the FEC group.
|
2006-03-05 15:56:22 +00:00
|
|
|
The target interface name is passed as a string argument.
|
2004-06-22 09:09:18 +00:00
|
|
|
.It Dv NGM_FEC_DEL_IFACE Pq Dq Li del_iface
|
|
|
|
Remove interface from the trunk.
|
2006-03-05 15:56:22 +00:00
|
|
|
The target interface name is passed as a string argument.
|
2004-06-22 09:09:18 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
2006-03-05 15:56:22 +00:00
|
|
|
The following control messages define the forwarding method for a node:
|
2004-06-22 09:09:18 +00:00
|
|
|
.Bl -tag -width indent
|
2007-08-12 16:02:30 +00:00
|
|
|
.It Dv NGM_FEC_SET_MODE_MAC Pq Dq Li set_mode_mac
|
2006-03-05 15:56:22 +00:00
|
|
|
Forwarding decisions will be based on the link-layer MAC address of the destination.
|
2007-08-12 16:02:30 +00:00
|
|
|
.It Dv NGM_FEC_SET_MODE_INET Pq Dq Li set_mode_inet
|
2006-03-05 15:56:22 +00:00
|
|
|
Forwarding decisions will be based on the IP address of the destination.
|
2004-06-22 09:09:18 +00:00
|
|
|
.El
|
|
|
|
.Sh SHUTDOWN
|
|
|
|
This node shuts down upon receipt of a
|
|
|
|
.Dv NGM_SHUTDOWN
|
|
|
|
control message.
|
|
|
|
.Sh EXAMPLES
|
2006-03-05 15:56:22 +00:00
|
|
|
The following example script creates an
|
2004-06-22 09:09:18 +00:00
|
|
|
.Nm fec
|
|
|
|
node, attaches four Ethernet interfaces to it and
|
2006-03-05 15:56:22 +00:00
|
|
|
sets the forwarding method to be IP-address based:
|
2004-06-22 09:09:18 +00:00
|
|
|
.Bd -literal -offset indent
|
2007-03-24 01:39:24 +00:00
|
|
|
/usr/sbin/ngctl -f- << SEQ
|
2004-06-22 09:09:18 +00:00
|
|
|
mkpeer fec dummy fec
|
|
|
|
msg fec0: add_iface "dc0"
|
|
|
|
msg fec0: add_iface "dc1"
|
|
|
|
msg fec0: add_iface "dc2"
|
|
|
|
msg fec0: add_iface "dc3"
|
|
|
|
msg fec0: set_mode_inet
|
|
|
|
SEQ
|
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr netgraph 4
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm fec
|
|
|
|
node type was implemented in
|
|
|
|
.Fx 5.0 .
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An -nosplit
|
|
|
|
The
|
|
|
|
.Nm fec
|
|
|
|
node was written by
|
|
|
|
.An "Bill Paul" Aq wpaul@FreeBSD.org .
|
|
|
|
This manual page was written by
|
2006-03-05 15:56:22 +00:00
|
|
|
.An "Gleb Smirnoff" Aq glebius@FreeBSD.org .
|