Switch console¶
gonetem implements a custom console for switch emulated
thanks to openvswitch.
This page lists all commands available in the switch console.
Global commands¶
Show MAC address table¶
show mac address-table
Show interfaces¶
Show ovs port number used for this switch
show interfaces
STP configuration¶
Show stp state¶
show stp
Enable/Disable stp¶
set stp enable|disable
VLAN configuration¶
Show vlan configuration¶
show vlan
Set vlan configuration¶
To configure the vlan mode on a port, use the following command:
set vlan port <port-number> mode access|trunk
Example
set vlan port O mode trunk
set vlan port 1 mode access
To configure access/trunk allowed tags, use the following command:
set vlan port <port-number> access|trunk <tags>
Examples
set vlan port O access 10
set vlan port 1 trunk 20,30
Delete vlan configuration¶
delete vlan port <port-number> access|trunk <tags>
Examples
delete vlan port O access 10
delete vlan port 1 trunk 20,30
Bonding configuration¶
Show status of a bond interface¶
show bonding <bond-name>
Example
show bonding my-bond
Create a new bond interface¶
set bonding <bond-name> port <port-number1> <port-number2>
Example
set bonding my-bond port 2 3
For now, the configuration of the bond interface is :
Mode: active-backup
LACP active
Delete a bond interface¶
delete bonding <bond-name>
Example
delete bonding my-bond