Skip to content

opx config mac

Amy Buck edited this page Dec 20, 2018 · 13 revisions

NAME

opx-config-mac — Configure 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)]

DESCRIPTION

This command creates and deletes FDB entries.

OPTIONS

-h,--help

:   Print help text.

--mac

:   Specify the MAC address in : format (e.g. 00:11:22:33:44:55).

--port

:   Specify front panel Ethernet interface.

--vlan

:   Specify the VLAN ID.

--static

:   Specify in case of 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)

:   single — Specify MAC address and VLAN id 
:   all — Delete all dynamic FDB entries 
:   filter — Delete dynamic entries based on attributes passed (port, port-vlan, vlan)

EXIT STATUS

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

EXAMPLE

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

REPORTING BUGS

To report any OPX software bugs, see Report bugs.

SEE ALSO

========

opx-show-mac

Clone this wiki locally