Port Commands


ovs-vsctl [--OPTION] add-port <bridge> <port> [ARG...] [--[OPTION] <COMMAND> [ARGs]]

Add a new port named <port> to <bridge>. Including physic port, LAG port and GRE tunnel.

Physical Port

Example:

Add a physical port.


ovs-vsctl add-port br0 ge-1/1/1 vlan_mode=trunk tag=1 trunks=2000,4094 -- set interface ge-1/1/1 type=pica8


Add a physical port and configure special link_speed.

ovs-vsctl add-port br0 te-1/1/49 vlan_mode=trunk tag=1 trunks=2000,4094 -- set interface te-1/1/49  type=pica8 options:link_speed=1G

Crossflow Port

Example:

When adding a crossflow port the vlan_mode and the trunks should be set via CLI.

ovs-vsctl add-port br0 te-1/1/1 -- set interface te-1/1/1 type=crossflow

LAG Port

Example:

Add a lag interface:

root@PicOS-OVS#ovs-vsctl add-port br0 ae1 vlan_mode=trunk tag=1 trunks=2000,4094 -- set Interface ae1 type=pica8_lag options:members=ge-1/1/1
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:lag_type=static

Modify the numbers of the lag

root@PicOS-OVS#ovs-vsctl set Interface ae1 options:members=ge-1/1/2,ge-1/1/3

LACP Port

Example:


Add a lacp port and configure the parameter.

root@PicOS-OVS#ovs-vsctl add-port br0 ae1 vlan_mode=trunk tag=1 trunks=2000,4094 -- set Interface ae1 type=pica8_lag
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:lag_type=lacp
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:members=ge-1/1/2,ge-1/1/3
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:lacp-system-id=00:11:11:11:11:11
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:lacp-system-priority=32768
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:lacp-time=fast
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:lacp-time=slow
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:lacp-mode=active
root@PicOS-OVS#ovs-vsctl set Interface ae1 options:lacp-mode=passive
root@PicOS-OVS#ovs-vsctl set Interface ge-1/1/2 options:lacp-port-id=2
root@PicOS-OVS#ovs-vsctl set Interface ge-1/1/2 options:lacp-port-priority=32768
root@PicOS-OVS#ovs-vsctl set Interface ge-1/1/2 options:lacp-aggregation-key=0

GRE Port

Example:


Add a GRE port.

ovs-vsctl add-port br0 gre1 -- set Interface gre1 type=pica8_gre options:remote_ip=10.10.61.10 options:local_ip=10.10.60.10 options:vlan=1012 options:src_mac=C8:0A:A9:9E:14:A5 options:dst_mac=00:E0:0C:00:00:FD options:egress_port=ge-1/1/2

ovs-vsctl [--OPTION] list-ports <bridge>

Print the names of all the ports on <bridge>.


Example:

ovs-vsctl list-ports br0

ovs-vsctl [--OPTION] del-port <bridge> <port>

Delete the port named <port> from <bridge>.


Example:

ovs-vsctl del-port br1 ge-1/1/1

ovs-vsctl [--OPTION] port-to-br <port>

Print name of the bridge which contrains the special <port>.


Example:

ovs-vsctl port-to-br ge-1/1/1

VXLAN Port

Example:


Add a VXLAN port.

admin@PicOS-OVS$ovs-vsctl add-port br0 vxlan1 -- set interface vxlan1 type=pica8_vxlan options:remote_ip=10.10.10.2 options:local_ip=10.10.10.1 options:vlan=1 options:vnid=1122867 options:udp_dst_port=4789 options:src_mac=C8:0A:A9:04:49:1A  options:dst_mac=C8:0A:A9:9E:14:A5  options:egress_port=te-1/1/2

L2GRE Port

Example:


Add a L2GRE port.

admin@PicOS-OVS$ovs-vsctl add-port br0 l2gre1 -- set interface l2gre1 type=pica8_l2gre options:remote_ip=10.10.61.10 options:local_ip=10.10.60.10 options:vlan=1 options:l2gre_key=1234 options:src_mac=C8:0A:A9:49:1A options:dst_mac=C8:0A:A9:9E:14:A5 options:egress_port=te-1/1/2


Copyright © 2024 Pica8 Inc. All Rights Reserved.