Configuring Toroki Lightswitch

From OpenFlow Wiki

Jump to: navigation, search

Configuring Toroki Lightswitch

Contents

Enter config mode

  • Connect VT100 terminal to switch console port 9600 baud, 8 data bits, one stop bit, no parity
  • CLI
 User: admin (Default: no password)
(Lightswitch) >enable (Default:  no password)
(Lightswitch) #config
(Lightswitch) (Config)#
  • Note that ? or <Space> rather than <tab> is used to display the set of available commands

Controller config

  • Assign controller
(Lightswitch) (Config)#openflow instance <x> active <ip addr> <tcp port>
    • Instance is optional
    • Changing controller is only possible after disabling the OpenFlow instance
  • Connect to controller
(Lightswitch) (Config)#openflow instance <x> enable
  • Disconnect from Controller:
(Lightswitch) (Config)#no openflow instance <x> enable

Configuring OpenFlow ports

  • Adding OpenFlow to ports
(Lightswitch) (Config)#interface 0/XX
(Lightswitch) (Interface 0/XX)#openflow instance <x> enable
(Lightswitch) (Interface 0/XX)#exit
  • Removing OpenFlow
(Lightswitch) (Interface 0/XX)#no openflow instance <x> enable

View Port Data

  • Brief of all ports:
show port all
  • Details on single port:
show interface ethernet 0/1

Change IP Config

  • View network config
(Lightswitch) show network
  • Change network params
(Lightswitch) network parms 172.27.74.105 255.255.254.0

VLAN Config

It is possible to use VLANs to restrict broadcast within the switch. This is often used in conjunction with an OpenFlow instance

  • To add a VLAN and set its name:
vlan database 
vlan 10
vlan makestatic 10
vlan name 10 openflow_vlan
  • Then, for each interface:
vlan participation exclude 1
vlan participation include 10

Passive TCP Listening Port

  • Useful for adding/viewing flows with dpctl when connected to NOX:
(Lightswitch) (Config)#openflow passive 6633

Exit/save/view configs

(Lightswitch) (Config)#exit
(Lightswitch) #quit
(Lightswitch) #show openflow
(Lightswitch) #show running-config
(Lightswitch) #write memory