1 .\" Copyright (c) 2004 Gleb Smirnoff
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd netgraph Fast EtherChannel node
38 node implements Ethernet port trunking using Cisco Fast EtherChannel protocol.
39 Upon creation, node creates a network interface associated with it.
44 New node takes first available unit.
48 node accepts any hooks.
49 However it does not use them.
50 Under normal operation, node should not have any hooks.
52 Interface membership in the FEC group is configured with the following
54 .Bl -tag -width indent
55 .It Dv NGM_FEC_ADD_IFACE Pq Dq Li add_iface
56 Attach interface to the FEC group.
57 Target interface name is passed as a string argument.
58 .It Dv NGM_FEC_DEL_IFACE Pq Dq Li del_iface
59 Remove interface from the trunk.
60 Target interface name is passed as a string argument.
63 The following control messages define forwarding method for a node:
64 .Bl -tag -width indent
65 .It Dv NGM_FEC_MODE_INET Pq Dq Li set_mode_mac
66 Forwarding decisions will be made on destination link layer MAC addresses.
67 .It Dv NGM_FEC_MODE_MAC Pq Dq Li set_mode_inet
68 Forwarding decisions will be made on destination IP addresses.
71 This node shuts down upon receipt of a
75 This example script creates a
77 node, attaches four Ethernet interfaces to it and
78 sets forwarding method based on IP address:
79 .Bd -literal -offset indent
80 /usr/sbin/ngctl -f- <<-SEQ
82 msg fec0: add_iface "dc0"
83 msg fec0: add_iface "dc1"
84 msg fec0: add_iface "dc2"
85 msg fec0: add_iface "dc3"
86 msg fec0: set_mode_inet
94 node type was implemented in
101 .An "Bill Paul" Aq wpaul@FreeBSD.org .
102 This manual page was written by
103 .An "Gleb Smirnoff" .