Installation Guide: Switch: Pica8 P-3295

Prerequisites

We are assuming that you have successfully configured and launched ONOS and Quagga. This section will help you launch the Pica8 P-3295 switch to connect to the control plane stack that you have already installed.

Questions about the Pica8 P-3295 can be directed to Sudhir Modali ([email protected] )

Configuration & Launch Some of these directions have been copied from: http://www.pica8.com/document/v2.6/html/picos-system-configuration/

Initial configuration of the switch requires you to connect either a terminal or computer to the switch via the console port. Once connected, assign an IP address to the management port and establish an IP route to the gateway. Important things to know:

The console port provides serial access to the switch. The Ethernet management port is used for out-of-band network management tasks. Before using a management port for the first time, an IP address must be assigned to that port.

Console Port

The console port is located at the front of the switch (see Figure 1). You can connect a terminal or computer to the console port using a serial or RS-232 cable. The accessory kit includes an RJ-45 to DB-9 adapter cable.

Port Settings

When connecting a terminal or computer to the console port, use the following settings:

The baud rate is 115200 The data bits value is 8 The stop bits value is 1

User Log In

PicOS operates in two modes.

Layer 2 / Layer 3 mode (L2/L3). This is the default mode. In this mode, the switch is used for traditional Layer 2 switching and Layer 3 routing. The OVS daemon is not running. Open vSwitch mode (OVS). In this mode, the switch is completely dedicated to Open vSwitch; that is, the L2/L3 daemon is not running. <<<--- This is used for Atrium

PicOS has two default users: root and admin. You must set your own password when you log in as adminthe first time. Use pica8 at log in and the system will prompt you to enter your own secure password (at least 6 characters). The prompt admin@XorPlus$ appears when you have successfully established your own password.

When logging in as root, use the password sudo at log in and the system will prompt you to enter your own secure password.

Always save your configuration after creating your original passwords. Your password will remain the same even after upgrading PicOS versions. You should always document your password in a safe place. However, if you forget your password you can recover it using the console port (see the PicOS Password Recovery section). XorPlus login: admin Password: (input default password "pica8") You are required to change your password immediately (root enforced) Changing password for admin. (current) UNIX password: (input "pica8" again) Enter new UNIX password: (input new password: the new password should be no less than six characters) Retype new UNIX password: (input new password again) admin@XorPlus$ admin@XorPlus$ admin@XorPlus$cli Synchronizing configuration...OK. Pica8 PicOS Version 2.5.0 Welcome to PicOS L2/L3 on XorPlus admin@XorPlus>

Assign an IP Address and Connect with SSH

You can configure an IP address using a shell. Below is an example with a DHCP server available. Once the Switch has an IP address, you can then access it via SSH. admin@PicOS-OVS$sudo ifdown eth0 && sudo ifup -v eth0

Or you can change /etc/network/interfaces to configure a static IP Atrium Specific Configuration

1. First there are a couple of things we have to do using the linux shell admin@PicOS-OVS$ ovs-vsctl set-l3-mode TRUE 252 admin@PicOS-OVS$ ovs-vsctl set-l2-l3-preference TRUE Check it

admin@PicOS-OVS$ovs-vsctl show-l2-l3-preference

l2/l3 flow preference is enabled admin@PicOS-OVS$ovs-vsctl show-l3-mode

l3 mode is enabled, table id is 252

2. Next we need to create a bridge -- using the GUI is the easiest way - point a browser to the switch management port IP address. Use the configuration tab and click on the "Create a bridge" button. Give your bridge a name.

3. Click on your newly created bridge and then "Basic Info". Hit the Edit button. Give a Datapath ID (same one you configured in ONOS). Select OpenFlow version 13. The fail mode does not matter.

4. Add a new controller: tcp, out-of-band, and port 6633

5. Add as many ports you want to the bridge. Select the port number, select TRUNK mode (important), don't worry about the Tag/Trunk and there is no Flow Control.

Finally, remember to use the routerMac: 08:9e:01:82:38:68 for all ports when doing configuration in the controller (in addresses.json and -deploy.py)