This page is deprecated and may be removed in a near future.
The new entry point of Trellis underlay fabric installation guide can be found at Fabric Installation Guide.
In this wiki page, we are going to show you how to setup the hardware switches for CORD Fabric.
Here we focus on Accton 6712 40G x 32 switches, which are the switches we use to build the CORD Pod in ON.Lab.
Ideally, all hardware switches running OF-DPA pipeline should be compatible with the Fabric control logic (i.e. Segment Routing app on ONOS)
Connect power cable, console port and management network.
Install Open Networking Linux (ONL)
The switches are shipped with Open Networking Install Environment (ONIE) bootloader. After booting up, we should see the ONIE prompt from console.
Here we assume that the management port on the switch already has Internet access. (via DHCP)
In the console, type
to fetch and install the latest ONL.
The switch will automatically reboot into ONL after installation. Default login credential of ONL is: root/onl
Configure Management Interface
We might want to configure a fixed IP address for the management interface.
First edit /etc/network/interfaces and configure ma1, which is the management interface.
Second, we need to make the configuration file persistent so we don't lose the configuration after rebooting the switch. This step is required for every config file in the switch.
Install OF-DPA package
The OF-DPA package is a Debian package that includes the OF Agent.
You need this file for 6712s and 5712s which are both x86 based: ofdpa-i.12.1.1_12.1.1+accton1.7-1_amd64.deb
For 5710s use the powerpc debian package: ofdpa-i.12.1.1_12.1.1+accton1.7-1_powerpc.deb
Download from here:
Please note: Only this version of OF-DPA will work for the fabric!
Copy the package to /mnt/flash2 on the switch so it is persistent after rebooting.
Install the OF-DPA package. (Note that this is required every time after rebooting. I will show a trick later so it can be done automatically.)
(Optional) Configure OF-DPA
By default, all 32 ports are running in 1x40G mode. The /etc/accton/ofdpa.conf need to be modified if we want to break out 1x40G into 4x10G.
Restart ofdpa service after modifying the config
Please follow the same instruction as described in [Archived] Software Switch Installation Guide ONOS section.
Run Indigo OpenFlow Agent
Run Indigo OpenFlow Agent to connect the switch to controller(s)
(Optional) Useful Configurations
As mentioned, the OF-DPA package need to be installed every time switch is rebooted. We can add it into /etc/rc.local so it will be automatically installed
Save /etc/rc.local and make it persistent
There are some useful commands under /usr/bin/ofdpa-2.0-ea3/examples/
Sometimes the switch fails to install OpenFlow rules because they are not compliant with the OFDPA requirements. In these cases you may want to run OFDPA in debug mode to get more insight on how to properly install the flow rules. To enable debugging mode type the following:
Now, open a new terminal and enter the following:
The above commands may fail if ofdpa has not been initialized yet. If that happens, wait 10-20 seconds and try it again.
After this, you should be able to see more comprehensible messages.
Recovery from a faulty ONL install
If, for some reason, the ONL install process fails, you may be brought to the grub rescue prompt upon reboot. You may or may not find system files, or even basic grub rescue commands (i.e. 'help'). There are two options for returning to a (known working) ONIE prompt.
- Reinstaller - Accton provides a ISO for reinstalling the firmware to factory default. This can be acquired from Accton by registering for their online support, and applying for it here.
Once you have the ISO, you can either use PXE or a live USB to boot the switch into the image.
Manually boot to ONIE - If the files are there, you can manually configure GRUB to load the necessary modules to boot back into ONIE.
Once back at the ONIE prompt, you can try to install ONL by following the same steps again.