Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Step 1          Configure port lane mode before set port speed. To make this configuration effective, users have to restart PICOS service after the configuration.

ovs-vsctl set-port-lane-mode {all | <port_number>} <0|1>

  • all | <port_number>: specifies the port number. all indicates to configure for all ports. <port_number> indicates the port number on the front panel, for example, number 10 represents port xe-1/1/10.

  • 0|1: specifies the port lane mode. 0 indicates 8 lanes, supporting port speed 400Gb/s. 1 indicates 4 lanes, supporting port speed 100Gb/s.

By default, the port lane mode is 0.

The following command configures the lane mode of port xe-1/1/10 to 1 to support speed 100Gb/s.

admin@PICOS-OVS:~$ ovs-vsctl set-port-lane-mode 10 1

  Port 10 has been set lane_mode=1!
  Please reboot for the change to take effect!

Step 2          Restart PICOS service after the configuration to make the configuration effective.

admin@PICOS-OVS:~$ sudo systemctl restart picos

Step 3          Show port information. From the show result, we can see that lane mode of port xe-1/1/10 has been set to 1.

admin@PICOS-OVS:~$ ovs-vsctl show-valid-port
Front Sub BreakOut IfIndex Quad-Group Interface-Name Lane-Mode Configurable-Speed
----- --- -------- ------- ---------- -------------- --------- ------------------
 1     1   False    129     N/A        xe-1/1/1       0         400G,100G
 2     1   False    130     N/A        xe-1/1/2       0         400G,100G
 3     1   False    131     N/A        xe-1/1/3       0         400G,100G
 4     1   False    132     N/A        xe-1/1/4       0         400G,100G
 5     1   False    133     N/A        xe-1/1/5       0         400G,100G
 6     1   False    134     N/A        xe-1/1/6       0         400G,100G
 7     1   False    135     N/A        xe-1/1/7       0         400G,100G
 8     1   False    136     N/A        xe-1/1/8       0         400G,100G
 9     1   False    137     N/A        xe-1/1/9       0         400G,100G
 10    1   False    138     N/A        xe-1/1/10      1         400G,100G
 11    1   False    139     N/A        xe-1/1/11      0         400G,100G
 12    1   False    140     N/A        xe-1/1/12      0         400G,100G
.......

Step 4          Configure the port speed.

admin@PICOS-OVS:~$ ovs-vsctl add-port br0 xe-1/1/10
admin@PICOS-OVS:~$ ovs-vsctl set interface xe-1/1/10 options:link_speed=100G

Step 5          Show bridge information. From the result, we can see that the link speed of port xe-1/1/10 has been set to 100G.

admin@PICOS-OVS:~$ ovs-vsctl show
ab0f08dc-9262-43f1-9894-d82c62827a06
    Bridge "br0"
        Port "br0"
            Interface "br0"
                type: internal
        Port "xe-1/1/25"
            tag: 3
            Interface "xe-1/1/25"
                type: "pica8"
        Port "xe-1/1/10"
            Interface "xe-1/1/10"
                options: {link_speed="100G"}
        Port "xe-1/1/26"
            tag: 4
            Interface "xe-1/1/26"
                type: "pica8"

  • No labels