This chapter describes commands that are specific to netgraph type links. These commands apply to the currently active link, and are only valid if the currently active link has type ng.
Note that this device type has no direct way to detect a physical layer disconnection (i.e., what would be analogous to loss of carrier detect) except by receiving a write error. One way to achieve this is to insure that when the physical layer goes down, the connection to the Netgraph hook is broken.
set ng hook nodepath hook
This command configures which Netgraph node, and which hook on that
node, mpd is supposed to connect to. The node is found via the
absolute Negraph address nodepath
and must have
a free hook named hook
. This command is required.
The hook should be prepared to transmit and receive PPP frames,
starting with the PPP protocol number and not including
any address or control fields. Therefore, for maximum compatibility
with third party equpiment (and depending on your particular setup)
the link should be configured to disable
and
deny
address and control field compression, and
the underlying nodes and/or hardware should always include
these fields.
set ng debug level
Sets the netgraph(3)
debugging level. Default is zero.