-
Notifications
You must be signed in to change notification settings - Fork 35
opx config global switch
jeff-yin edited this page Jan 17, 2019
·
29 revisions
opx-config-global-switch
— Configure global attributes of the switch.
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>]
Option | Description |
---|---|
-h,--help |
Displays help text |
--switch-mode (store-and-forward | cut-through) |
Sets switch forwarding mode |
--lag-hash-alg (crc | random | xor) |
Sets LAG hash algorithm |
--lag-hash-seed <seed> |
Sets LAG hash algorithm seed value; must be a decimal integer |
--lag-hash-fields <fields> |
Sets 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) |
Sets ECMP hash algorithm |
--ecmp-hash-seed <seed> |
Sets ECMP hash algorithm seed value; must be a decimal integer |
--ecmp-hash-fields <fields> |
Sets 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> |
Sets aging timeout for MAC addresses (in seconds); must be a decimal integer |
--default-vlan-id <vid> |
Sets VLAN ID assigned to inbound frames which are not tagged; must be a decimal integer in the range 1 to 4095 |
--disable-default-vlan (on | off) |
Disables default VLAN |
--default-mac-addr <macaddr> |
Sets default MAC address; must be a set of six colon-separated hex octets |
--counter-refresh <time> |
Sets time interval for refreshing statistics counters (in seconds); must be a decimal integer |
--uft-mode (default | scaled-L2 | scaled-L3-hosts | scaled-L3-routes) |
Sets 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