-
Notifications
You must be signed in to change notification settings - Fork 35
opx config global switch
opx-config-global-switch
— Sets various attributes of the front-panel Ethernet interface.
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>]
-
-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.
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.
$ opx-config-global-switch --switch-mode store-and-forward --mac-age-time 300 --default-vlan-id 1
To report any OPX software bugs, see Report bugs.
© 2019 OpenSwitch project. All information is contributed to and made available by OPX under the Creative Commons Attribution 4.0 International License (available at http://creativecommons.org/licenses/by/4.0/).
- Home
- System overview
- Software releases
- Hardware support
- FAQs
- Install
- Build
- Configure
- Develop
- Administer
- Troubleshoot
- Software compatibility
- Contribute
- DevOps
- Join