Skip to content

opx config mac

Amy Buck edited this page Feb 21, 2019 · 13 revisions

COMMAND

opx-config-mac — Creates and deletes FDB entries.

SYNOPSIS

opx-configure-mac [-h,--help]
[--mac <MAC>] 
[--port <PORT>]
[--vlan <VLAN>] 
[--static] 
[--kernel_conf] 
[--kernel_conf_only] 
[--delete-type (single | all | filter)]

OPTIONS

Option Description
-h,--help Displays help text
--mac MAC address in format 00:11:22:33:44:55
--port Front-panel Ethernet interface
--vlan VLAN ID
--static Specify if static entry
--kernel_conf Specify if the entry should be available in kernel (with NPU)
--kernel_conf_only Specify if the entry should be available in kernel only (not in NPU)
--delete-type (single | all | filter) List of delete types:
single — Specify MAC address and VLAN ID
all — Deletes all dynamic FDB entries
filter — Deletes dynamic entries based on attributes passed (port, port-vlan, vlan)

EXIT STATUS

0 if OK
1 if minor problems (syntax error, wrong parameters passed)
2 if serious trouble (the CPS commit fails)

EXAMPLE

Create FDB entry

$ opx-config-mac create --mac 00:00:12:34:56:90 --vlan 800 --port e101-021-0 --static

Delete FDB entry

$ opx-config-mac delete --mac 00:00:12:34:56:90 --vlan 800 --delete-type single

REPORT BUGS

To report any OPX software bugs, see Report bugs.

SEE ALSO

opx-show-mac

Clone this wiki locally