OpenNSL_3.5.0.3

Follow

Comments

2 comments

  • UW-Stout_Mathias Ahman

    Hi, EdgeCore community. I have a question that I hope someone can have an answer for.

    I'm having my Edgecore 4610 54P switch. My goal is to by only using Open Source software to have my switch be able to do Layer 2/3 functionalities. However, I keep running into issues whereas I'm not able to get any ports besides the Management port to be able to communicate. Here's what I've been doing so far: 

    I'm currently running ONL 3.2.98 version, have Quagga installed and running Zebra as my software Layer 3 option. However, I can't get any ports to even communicate and trying to set up an interface in Zebra I don't get anything to activate. 

    Initially, I can't find a solution to bring a port up and forward any traffic. What are the ports names on the Edgecore switch? 

    If anyone knows, appreciate all help.

    0
    Comment actions Permalink
  • David Gengenbach

    There are several ways to achieve simple connectivity. OpenNSL provides an example where all ports are made to be untagged (VLAN 1), which achieves the connectivity. The binary can be found here (when using the *.deb provided above):

    /usr/bin/opennsl-accton/examples/example_l2_firewall

    The source code for this example can be found here:

    https://github.com/Broadcom-Switch/OpenNSL/blob/master/examples/example_l2_firewall.c

    The interesting bits are: example_port_default_config and example_switch_default_vlan_config

    https://github.com/Broadcom-Switch/OpenNSL/blob/a3f85f5567f3142755265d32efb22cfe5afdb22e/examples/util.c#L177

    https://github.com/Broadcom-Switch/OpenNSL/blob/a3f85f5567f3142755265d32efb22cfe5afdb22e/examples/util.c#L95

    After waiting for the example_l2_firewall to initialize successfully (= a prompt with several options is shown), you should have normal connectivity.

    How to integrate L3 routing into this mix is a little more involved and a topic of its own. I would propose using something like ONOS/Trellis with of-dpa instead of OpenNSL. But I am by no means an expert on this topic. I got of-dpa and OpenNSL working with L2 connectivity. I did not look into L3 as of yet.

     

    Good luck and patience - I know I needed it :D

    0
    Comment actions Permalink

Please sign in to leave a comment.