Skip site navigation (1)Skip section navigation (2)

FreeBSD Man Pages

Man Page or Keyword Search:
Man Architecture
Apropos Keyword Search (all sections) Output format
home | help
NG_FEC(4)	       FreeBSD Kernel Interfaces Manual		     NG_FEC(4)

NAME
     ng_fec -- netgraph	Fast EtherChannel node

SYNOPSIS
     #include <netgraph/ng_fec.h>

DESCRIPTION
     The fec node implements Ethernet port trunking using Cisco	Fast Ether-
     Channel protocol.	Upon creation, node creates a network interface	asso-
     ciated with it.  Interfaces are named ``fec0'', ``fec1'', etc.  New node
     takes first available unit.

HOOKS
     The fec node accepts any hooks.  However it does not use them.  Under
     normal operation, node should not have any	hooks.

CONTROL	MESSAGES
     Interface membership in the FEC group is configured with the following
     control messages:

     NGM_FEC_ADD_IFACE (``add_iface'')
	     Attach interface to the FEC group.	 Target	interface name is
	     passed as a string	argument.

     NGM_FEC_DEL_IFACE (``del_iface'')
	     Remove interface from the trunk.  Target interface	name is	passed
	     as	a string argument.

     The following control messages define forwarding method for a node:

     NGM_FEC_MODE_INET (``set_mode_mac'')
	     Forwarding	decisions will be made on destination link layer MAC
	     addresses.

     NGM_FEC_MODE_MAC (``set_mode_inet'')
	     Forwarding	decisions will be made on destination IP addresses.

SHUTDOWN
     This node shuts down upon receipt of a NGM_SHUTDOWN control message.

EXAMPLES
     This example script creates a fec node, attaches four Ethernet interfaces
     to	it and sets forwarding method based on IP address:

	   /usr/sbin/ngctl -f- <<-SEQ
		   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

SEE ALSO
     netgraph(4)

HISTORY
     The fec node type was implemented in FreeBSD 5.0.

AUTHORS
     The fec node was written by Bill Paul <wpaul@FreeBSD.org>.	 This manual
     page was written by Gleb Smirnoff.

FreeBSD	6.0			 July 22, 2004			   FreeBSD 6.0

NAME | SYNOPSIS | DESCRIPTION | HOOKS | CONTROL MESSAGES | SHUTDOWN | EXAMPLES | SEE ALSO | HISTORY | AUTHORS

Want to link to this manual page? Use this URL:
<http://www.freebsd.org/cgi/man.cgi?query=ng_fec&sektion=4&manpath=FreeBSD+6.0-RELEASE>

home | help