User manual
A- Commonly Used Commands
A-3
A.1.3 device
Syntax:
device
device add <i/f> <type> [<file>] [mtu <size>] [<IP address>]
device add wan ptp //bun/port=atm/rfc1483=true/mode=<encapsulation mode>/
txvpi=<vpi>/txvci=<vci>/rxvpi=<vpi>/rxvci=<vci> (all in one line)
device delete <i/f>
device flush
Description:
Displays the interfaces that IP is configured to use, or adds an interface to the
configuration, or deletes an interface, or all interfaces, from the configuration.
The commands to change the configuration take effect immediately. However, it is
necessary to save the configuration (e.g. with
ip config save
) to set the changes
permanently. The options used with this command are described below:
<i/f>
is an arbitrary label for the interface, which is used in referring to it in
subsequent commands. (It is often chosen to be the same as
<type>
, though
this is perhaps slightly confusing.)
<type>
specifies the class of interface: Ethernet-like, IP-over-ATM, or loopback.
For an Ethernet-like or IP-over-ATM interface,
<file>
specifies the file name
that will be opened to access the underlying device (which must support the
Emerald interface for an Ethernet-like interface, and the Blue interface, at
least, for an IP-over-ATM interface).
For a loopback interface,
<file>
is not used, and can just be specified as
- or omitted altogether.
<mtu>
specifies the MTU (maximum transmission unit); that is, the size of
the largest datagram (excluding media-specific headers) that IP will attempt
to send through the interface. If no MTU is specified, the default unit will
be 1500.
<IP address>
is the IP address that this system uses on the interface.
The supported values for
<type>
are
Class <type> Appl icable file(s)
Ethernet ether
//bridge
//edd
IP Framing ptp //bun
IP -ove r-ATM atm / /atm
Loopback loop -