Skip to content

opx config lag

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

COMMAND

opx-config-lag — Creates and deletes a link aggregation group (LAG), and configures various attributes of a LAG.

SYNOPSIS

opx-config-lag [-h,--help]
{create  | delete | set | add | remove}
[--name <NAME>]
[--mac-learn-mode (drop | disable | hw | cpu_log | cpu_trap)]
[--blockedports <port-list>]
[-unblockedports <port-list>] 
[--enable | --disable] 

OPTIONS

Option Description
-h,--help Displays help text
create Creates a new LAG
delete Deletes an existing LAG
set Sets the ports (blocked and unblocked), admin status and MAC learning mode of a LAG, to the given value(s)
add Adds some blocked or unblocked port(s) to the port-list of a LAG
remove Removes some blocked or unblocked port(s) from the port-list of a LAG
--name <NAME> Name of the LAG
--mac-learn-mode (drop | disable | hw | cpu_trap | cpu_log) MAC learning mode of the LAG; use one of the five possible values; by default it is set to disable.
drop — Drops packets with unknown source MAC address; do not learn, do not forward
disable — Do not learn new source MAC address; forward based on destination MAC
hw — Hardware learning; learn source MAC address; forward based on destination
cpu_trap — Trap packets with unknown source MAC address to CPU; do not learn; do not forward
cpu_log — Trap packets with unknown source MAC address to CPU; do not learn; forward based on destination MAC
--blockedports <port-list> Lists front-panel Ethernet ports to configure as blocked ports; a blocked port is a member port of the LAG that would not allow the traffic to flow through it; <port-list> is a comma-separated list of single or a range of interfaces; each range is either a single interface, or a pair of interfaces of the form <from..to>, which specifies all interfaces from <from> to <to> inclusive. Examples:
e101-001-0 — expands to e101-001-0
e101-001-0,e101-010-0 — expands to e101-001-0,e101-010-0
e101-001-0,e101-004-0..e101-006-0 — expands to e101-001-0,e101-004-0,e101-005-0,e101-006-0
If the port list is not specified, all Ethernet front-panel ports are configured.
--unblockedports <port-list> Lists front-panel Ethernet ports to configure as unblocked ports; an unblocked port is a member port of the LAG that would allow the traffic to flow through it; <port-list> is a comma-separated list of single or a range of interfaces; each range is either a single interface, or a pair of interfaces of the form <from..to>, which specifies all interfaces from <from> to <to> inclusive. Examples:
e101-001-0 — expands to e101-001-0
e101-001-0,e101-010-0 — expands to e101-001-0,e101-010-0
e101-001-0,e101-004-0..e101-006-0 — expands to e101-001-0,e101-004-0,e101-005-0,e101-006-0
If the port list is not specified, all Ethernet front-panel ports are configured.
--enable | --disable Sets the admin status (enable or disable) of the LAG

EXIT STATUS

If there is a syntax error in the given arguments, the exit status shall be 2.
If there is any other error, the exit status shall be 1.
Otherwise, the exit status is 0.

EXAMPLE

Create LAG

$ opx-config-lag create --name lag1 --blockedports e101-002-0 --unblockedports e101-003-0..e101-005-0

Set LAG

$ opx-config-lag set --name lag1 --enable

Delete LAG

$ opx-config-lag delete --name lag1

LIMITATIONS

Adding a port which is already a part of another LAG is not supported.

REPORT BUGS

To report any OPX software bugs, see Report bugs.

SEE ALSO

opx-show-lag

Clone this wiki locally