Skip to content

opx config global switch

Amy Buck edited this page Dec 21, 2018 · 29 revisions

NAME

opx-config-global-switch — Sets various attributes of the front-panel Ethernet interface.

SYNOPSIS

opx-config-global-switch [-h,--help] 
[--switch-mode (store-and-forward | cut-through)]
[--lag-hash-alg (crc | random | xor)] 
[--lag-hash-seed <seed>] 
[--lag-hash-fields <fields>] 
[--ecmp-hash-alg (crc | random | xor)] 
[--ecmp-hash-seed <seed>] 
[--ecmp-hash-fields <fields>] 
[--mac-age-time <time>] 
[--default-vlan-id <vid>] 
[--disable-default-vlan (on | off)] 
[--default-mac-addr <macaddr>] 
[--counter-refresh <time>] 
[--uft-mode (default | scaled-L2 | scaled-L3-hosts | scaled-L3-routes)] 
[--next-profile <profile>]

OPTIONS

  • -h,--help — Print help text

  • --switch-mode (store-and-forward | cut-through) — Set switch forwarding mode

  • --lag-hash-alg (crc | random | xor) — Set LAG hash algorithm

  • --lag-hash-seed <seed> — Set LAG hash algorithm seed value; must be a decimal integer

  • --lag-hash-fields <fields> — Set frame fields used for LAG hash; comma-separated list of one or more of:

    • dest-ip
    • dest-mac
    • l4-dest-port
    • l4-src-port
    • src-mac
    • vlan-id
    • ethertype
    • ip-protocol
    • in-port
    • src-ip
  • --ecmp-hash-alg (crc | random | xor) — Set ECMP hash algorithm

  • --ecmp-hash-seed <seed> — Set ECMP hash algorithm seed value; must be a decimal integer

  • --ecmp-hash-fields <fields> — Set frame fields used for ECMP hash; comma-separated list of one or more of:

    • dest-ip
    • dest-mac
    • l4-dest-port
    • l4-src-port
    • src-mac
    • vlan-id
    • ethertype
    • ip-protocol
    • in-port
    • src-ip
  • --mac-age-time <time> — Set aging timeout for MAC addresses (in seconds); must be a decimal integer

  • --default-vlan-id <vid> — Set VLAN ID assigned to inbound frames which are not tagged; must be a decimal integer in the range 1..4095

  • --disable-default-vlan (on | off) — Disable default VLAN

  • --default-mac-addr <macaddr> — Set default MAC address; must be a set of six colon-separated hex octets

  • --counter-refresh <time> — Set time interval for refreshing statistics counters (in seconds); must be a decimal integer

  • --uft-mode (default| scaled-L2 | scaled-L3-hosts | scaled-L3-routes) — Set unified forwarding table mode

  • --next-profile <profile> — Switch profile used at next boot; must be a supported profile

Note that not all options are available on all platforms.

EXIT STATUS

If an invalid port list is specified, the exit status shall be 1.
If there is a syntax error in the given arguments, the exit status shall be 2.
Otherwise, the exit status is 0.

EXAMPLE

$ opx-config-global-switch --switch-mode store-and-forward --mac-age-time 300 --default-vlan-id 1

REPORT BUGS

To report any OPX software bugs, see Report bugs.

SEE ALSO

opx-show-global-switch

Clone this wiki locally