1 | | Foo. |
| 1 | = Flashing NEC Switches = |
| 2 | |
| 3 | NEC provides two models of switch that supports OpenFlow, the IP8800/S3640-24T2XW and the IP8800/S3640-48T2XW. |
| 4 | The switches must be manually flashed with OpenFlow capable firmware to make them OpenFlow capable. This page explains how to flash the switch to make it OpenFlow capable. |
| 5 | |
| 6 | |
| 7 | == Materials Needed == |
| 8 | The SD card must contain the following for the switch to be able to boot off of it: |
| 9 | |
| 10 | * OpenFlow capable firmware (k.img) |
| 11 | * Software license for OpenFlow capable firmware (license.dat) |
| 12 | * Configuration file for OpenFlow specific features (openflow.conf) |
| 13 | |
| 14 | |
| 15 | == Overview == |
| 16 | These are the general steps required to get the switch up and running as an OpenFlow device: |
| 17 | |
| 18 | 1. Create VLANs |
| 19 | 1. Create openflow.conf |
| 20 | 1. Save k.img, license.dat, and openflow.conf onto SD card |
| 21 | 1. Cold boot switch off of SD card |
| 22 | 1. Enjoy |
| 23 | |
| 24 | |
| 25 | |
| 26 | = Some Caveats = |
| 27 | |
| 28 | == The SD card == |
| 29 | NEC provides a certified SD card with the switch. They recommend that you only use this card. |
| 30 | |
| 31 | |
| 32 | |
| 33 | == The License == |
| 34 | Each license is specific to a certain switch; a switch will not boot properly if the license is missing, misnamed, or if the license for the wrong switch is used. |
| 35 | |
| 36 | Sometimes the license is labeled with a specific switch's serial number instead of being labeled "license.dat." In that case, the serial number can be found on a silver sticker on the front of the switch, or by typing `show version` at the terminal: |
| 37 | |
| 38 | {{{ |
| 39 | # show ver |
| 40 | Date 2000/01/09 01:20:34 UTC |
| 41 | Model: AX3640S-48T2XW |
| 42 | S/W: OS-L3L Ver. 10.7 |
| 43 | H/W: Main board |
| 44 | AX-3640-48T2XW-L [WA03CL48T2XWS0E0693K007:80330300:111:1B514-1B512] |
| 45 | Module slot1 PS-M(AC) |
| 46 | AX-F2430-PSA01 [WA0PSA010000C110093D006] |
| 47 | Module slot2 FAN-M |
| 48 | AX-F2430-FAN01 [WA1FAN010000C140093D004] |
| 49 | }}} |
| 50 | |
| 51 | In this case, "WA03CL48T2XWS0E0693K007" is the serial number and should match the name of the correct license for this specific switch. |
| 52 | |
| 53 | '''Note: ''' If the license is named after the switch's serial number, the license must be renamed to "license.dat." |
| 54 | |
| 55 | |
| 56 | == Creating the openflow.conf file == |
| 57 | |
| 58 | openflow.conf is a simple text file that contains OpenFlow specific configurations. The following are the three parameters you can specify in the file. |
| 59 | |
| 60 | === `no-save` === |
| 61 | when specified in the .conf file, configuration changes won't be saved to the SD card. ''' Specifying this parameter in openflow.conf will prevent you from creating and removing virtual switches from the CLI. ''' |
| 62 | |
| 63 | === `double-wide-mode` === |
| 64 | When specified, all ten OpenFlow specific header fields will be matched. |
| 65 | |
| 66 | === `setvsi` === |
| 67 | Creates an instance of a virtual switch. This is the only OpenFlow parameter you can also use as a command from the CLI, but must be followed by several parameters: |
| 68 | |
| 69 | `setvsi <vlan id> <list of ports> <tcp|ssl> <controller ip address[:port]> [<cacert> <my cert> <my private key>] [dpid <datapath id>] [hwlimit <max entrynum>] [max-backoff <backoff time>] [echo-interval <interval time>]` |
| 70 | |
| 71 | to get `setvsi` working at minimal, you need only the following parameters: |
| 72 | |
| 73 | `setvsi <vlan id> <list of ports> <tcp|ssl> <controller ip address[:port]> [dpid <datapath id>]` |
| 74 | |