39
Commands for Bridge process
1. device add
Syntax:
device add <device>
Description:
This command adds a device to the bridge configuration. Attempts to add the bridge itself or an
existing device to the bridge are rejected. Attempts to add unsupported devices are rejected. There
is a limit on the number of devices that can be attached to the bridge. If a device is successfully
added to the bridge, it will only become active after the configuration is saved and the system is
rebooted. If the device being added is from a process which supports multiple devices, the
/DEVICE
attribute must be specified as part of the device name. The table below shows devices, which may
be attached to the bridge, although not all systems may support all devices.
lec1
Forum LAN emulation
alecjade
edd
Ethernet driver
bun_ethernet
ppp
Point-to-Point protocol
pp
Configuration saving saves this information.
Example:
DSL bridge>
device add edd
DSL bridge>
device add ppp/DEVICE=2
2. device delete
Syntax:
device delete <device>
Description:
This command deletes a device from the bridge configuration. The changes will only take place
after the configuration is saved and the system is rebooted. The syntax of the device name is the
same as that for the
device add
command.
Configuration saving saves this information.
Example:
DSL bridge>
device delete edd
3. device list
Syntax:
device list
Description:
This command lists all the devices that are currently attached to the bridge. It does not show the
stored configuration (which can be seen with the
config print
command).
Example:
DSL bridge>
device list
4. ethertype
Syntax:
ethertype [<port> any|ip|pppoe]
Description:
This command enables filtering of Ethernet packets according to the
ETHER_TYPE
field in the
header. Only packets of the type specified using this command will be
sent
on the port specified;
packets of all types will always be
received
. By default, all bridge ports are set to “any”, which
means that the type of the packet will never be checked. The meaning of the other options is as
follows:
Option
Permitted ETHER_TYPE values
“ip”
0x0800
– IP
0x0806
– ARP
“pppoe” 0x8863, 0x8864
– PPP Over Ethernet (RFC 2516)
The port is specified as an integer, as displayed by the
device list
command. When using this
command in the
initbridge
configuration file, ports are numbered in the order in which the
device add
commands are given, starting from 1.