Manage the SDN Switch
The switch is accessible using the IPMI network or the SDN network. Therefore you have to connect to a host which can access one of those two networks.
telnet 10.1.0.14
OR
telnet 10.1.3.14
Username: operator
Different modes
If you log in as operator, you are in the most save mode where you can e.g. print the configuration or the current status.
This operator-mode is signed by !PFS1>
as prompt.
To switch to the administrator-mode execute the command enable
and you will see !PFS1#
as a prompt. In this mode additional commands are available. To go back enter quit
.
From the administrator-mode you can enter the configure-mode where you can set the switch configuration. Therefore enter configure
within an administrator-mode. In this mode you have different commands available which are e.g. sub-menus of the configuration (backwards using top
). You can leave the configure-mode with quit
.
Useful commands
?
prints always possible commands at the current mode (see above).
operator mode
command | description |
---|---|
show openflow table |
list flow tables |
show openflow statistics |
list information like connection status to the sdn controller |
netstat |
show current network connections |
show vlan list |
list vlans with current status (Up/Down) |
show vlan 1200 |
show details about vlan 1200 |
administrator mode
tbd
configure mode
Task: Set allowed VLANs on a switch port
- Change to configure mode.
> enable
# configure
- Define the VLANs
(config)# vlan 1200-1710
- For each port add allowed VLANs (e.g. 0/25)
(config)# interface gigabitethernet 0/25
[ (config-if)# show ]
(config-if)# switchport trunk allowed vlan add 1200-1710
(config-if)# write
[ (config-if)# top ]
Task: Set Ports controlled by OpenFlow
(config)# openflow openflow-id 1
(config-of)# openflow-interface remove tengigabitethernet 0/50