|
NAMEng_iface —
interface netgraph node type
SYNOPSIS#include <netgraph/ng_iface.h>
DESCRIPTIONAniface node is both a netgraph node and a system
networking interface. When an iface node is created, a
new interface appears which is accessible via
ifconfig(8).
Iface node interfaces are named
ng0 , ng1 , etc. When a node is
shutdown, the corresponding interface is removed and the interface name
becomes available for reuse by future iface nodes; new
nodes always take the first unused interface. The node itself is assigned the
same name as its interface, unless the name already exists, in which case the
node remains unnamed.
An An
HOOKSThis node type supports the following hooks:
CONTROL MESSAGESThis node type supports the generic control messages, plus the following:
SHUTDOWNThis node shuts down upon receipt of aNGM_SHUTDOWN
control message. The associated interface is removed and becomes available for
use by future iface nodes.
Unlike most other node types, an ALTQ SupportTheng_iface interface supports ALTQ bandwidth
management feature. However, ng_iface is a special
case, since it is not a physical interface with limited bandwidth. One should
not turn ALTQ on ng_iface if the latter corresponds to
some tunneled connection, e.g. PPPoE or PPTP. In this case, ALTQ should be
configured on the interface that is used to transmit the encapsulated packets.
In case when your graph ends up with some kind of serial line, either
synchronous or modem, the ng_iface is the right place
to turn ALTQ on.
Nestingng_iface supports nesting, a configuration when traffic
of one ng_iface interface flows through the other. The
default maximum allowed nesting level is 2. It can be changed at runtime
setting
sysctl(8)
variable net.graph.iface.max_nesting to the desired
level of nesting.
SEE ALSOaltq(4), bpf(4), netgraph(4), ng_cisco(4), ifconfig(8), ngctl(8) sysctlHISTORYTheiface node type was implemented in
FreeBSD 4.0.
AUTHORSArchie Cobbs <archie@FreeBSD.org>
Visit the GSP FreeBSD Man Page Interface. |