Changes between Version 8 and Version 9 of Internal/OpenFlow/Firmware


Ignore:
Timestamp:
Aug 5, 2011, 6:18:14 PM (13 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/Firmware

    v8 v9  
    33NEC provides two models of switch that supports !OpenFlow, the IP8800/S3640-24T2XW and the IP8800/S3640-48T2XW. [[BR]]
    44The switches must be manually flashed with !OpenFlow capable firmware to make them !OpenFlow capable. NEC provides instructions on flashing the switch, but there are a few things that are useful to know that they don't mention. This article is a summary of the instructions, with those unmentioned caveats thrown in.   
     5[[BR]][[BR]]
     6'''**UPDATE**''': Go [#Ae here] for the instructions for the newest firmware (11.1.C.Ae)
    57
    68=== Materials Needed ===
     
    101103wiki:Documentation/OpenFlow/VirtualSwitch
    102104
     105== Upgrading to 11.1.C.Ae == #Ae
     106This is the production version of the !OpenFlow capable firmware for the IP8800. Unlike the experimental version, once you upgrade you don't need the SD card.
     107=== 1. Firmware upgrade ===
     108The firmware should have an extension of '.gz'. The easiest way to upgrade is to copy the firmware onto an SD card with a bootable file (e.g. something with extension '.img'^2^) along with the proper license; The switch will boot using the image file stored on the card, and will keep the SD card mounted and accessible under /mnt.
     109
     110Now run `ppupgrade` as admin, specifying the full path to the new firmware:
     111{{{
     112ppupgrade /mnt/nec.gz
     113}}}
     114And let the switch do the work. The whole process should take a minute or two. The switch will reboot unless given the `no-reload` flag with `ppupgrade`. The bootloader will search for .img files to load to memory upon startup. If you want the switch to boot into the new firmware when it reboots after the upgrade, you can either:
     115
     116 1. Issue `ppupdate` with the `no-reload` command. Run `reload stop` to halt the OS, and restart the switch after you (safely) remove the card ^1^.
     117 2. Rename k.img to something else so it is not recognized as a bootable image.
     118
     119=== 2. !OpenFlow configurations ===
     120The !OpenFlow components of the new firmware have been integrated into the CLI. There are contexts for !OpenFlow (conveniently called `openflow`) under the `show` and `configure` contexts.
     121
     122{{{
     123sw-gp# show openflow ?
     124  controller-session  Display the session of OpenFlow Controller
     125  detail              Display the detailed OpenFlow information
     126  openflow-id         Specifies OpenFlow ID
     127  statistics          Display the OpenFlow statistics information
     128  table               Display the flow table information
     129  <cr>
     130}}}
     131
     132{{{
     133sw-gp(config)# openflow openflow-id [id]
     134  real-switch     OpenFlow ID 1 specified for real-switch ( When real-switch is set, virtual-switch can't be set )
     135  virtual-switch  OpenFlow ID 1 to 16 specified for virtual-switch ( When virtual-switch is set, real-switch can't be set )
     136  <cr>
     137}}}
     138
     139{{{
     140sw-gp(config)# openflow openflow-id 1 virtual-switch
     141!sw-gp(config-of)# ?
     142
     143  connect               Specify the time to connect the OpenFlow Controller
     144  controller            Specify the OpenFlow Controller
     145  dpid                  Specify the data path ID
     146  echo-reply            Specify the max time of receiving Echo-Reply frame from the OpenFlow Controller
     147  echo-request          Specify the interval time of sending Echo-Request frame to the OpenFlow Controller
     148  emergency-mode        Specify enable or disable of the emergency mode
     149  enable                Enable OpenFlow
     150  end                   Exit from configure mode
     151  exit                  Return to previous mode
     152  flow-statistics-mode  Specify the collection type of the flow statistics mode information
     153  mac-learning          Specify enable or disable of MAC learning
     154  maxflow               Specify the number of the upper limits of flow
     155  mishit-action         Specify the process when the mishit-action occurred
     156  no                    Delete configurations
     157  openflow-vlan         Specify the VLAN which it belongs to Virtual Switch
     158  outbound              Specify the band limit of the output rate of VLAN on interface
     159  port-modify-access    Specify set permission of the access port change from Controller. (reason down of the port)
     160  port-modify-trunk     Specify set permission of the trunk port change from Controller. (reason down of the port)
     161  quit                  Return to previous mode
     162  save                  Save configuration file
     163  show                  View configurations
     164  status                Show configure status
     165  top                   Change to global configuration mode
     166  wildcard-hwaccel      Specify the priority when wildcard entry is written in hardware
     167  write                 Save configuration file
     168}}}
     169
     170Not sure what this means. Yet.
     171{{{
     172sw-gp(config)# openflow openflow-id 1 real-switch
     173openflow : Specified switch type is not revokable.
     174}}}
     175
     176
    103177== SSL stuff ==
    104178The page refrenced to create the .pem files: http://www.debian-administration.org/article/Creating_and_Using_a_self_signed__SSL_Certificates_in_debian
    105179
     180
    106181[[BR]]
    107182[[BR]]
     183[wiki:Internal/OpenFlow/ Return to the OpenFlow index]
     184[[BR]]
     185[[BR]]
     186^1. Part of bootup involves decompressing and copying the firmware to memory, so it ''should'' be fine to remove the card while the machine is running. It is, however, still mounted while the switch is running, so you chance corrupting the contents of the card if you do this. ^
     187[[BR]]
     188^2. renaming nec.gz to k.img will allow you to boot into the firmware as with the experimental one, from the SD card, although switches booted using the new firmware this way will unmount the SD card.^
    108189
    109190
    110 [wiki:Internal/OpenFlow/ Return to the OpenFlow index]
    111191
    112192