ONOS with a Virtual Switch

26 views
Skip to first unread message

Harsh Bijwe

unread,
Oct 31, 2023, 1:40:58 AM10/31/23
to ONOS Discuss
Hi all,

I have created 2 VRFs VRF1 and VRF2 having IP address as 10.10.10.1 and 10.10.10.2 respectively. There is an OVS Switch connecting the 2 VRFs and switch also is assigned an IP address. I am able to ping from VRF1 to VRF2, viceversa and from switch to both hosts.

Basically VRFs can be considered as hosts and OVS switch connecting them. I want an ONOS controller to control this OVS Switch. I run the ONOS log and CLI and then I rin command: sudo  ovs-vsctl set-controller Vswitch1 tcp:10.0.2.15:6653 and tried pinging which did not work even after enabling forwarding and proxy. 

Note: Vswitch1 is the bridge name.

What am I doing wrong? Please help.

Babis Chatzinakis

unread,
Oct 31, 2023, 4:54:09 AM10/31/23
to ONOS Discuss, harsh...@gmail.com
OK, I just realized that I answered only to you and not the mailing list so I am repeating here. First check if your device is discovered by ONOS (type 'devices' in the cli). From the images you attached (feel free to attach them again here) it seems that your switch and ONOS cannot communicate through your management network (10.0.0.0) so an OpenFlow channel cannot be established. If I understand correctly ONOS has the 10.0.0.2 IP right? Does your switch have an interface with an IP in this subnet? From the captures it seems that the problem is ARP resolution (the switch cannot get the ONOS mac address). You can always try to add a manual entry for ONOS in the switch's arp table. The activated apps look OK. Let me know if that helps. 

Babis

Harsh Bijwe

unread,
Oct 31, 2023, 5:03:44 AM10/31/23
to Babis Chatzinakis, ONOS Discuss
Attaching all the images from already sent mail. Onos is running on IP 10.0.2.15. Switch has been assigned an SVI of 10.0.0.3. VRF1 has 10.0.0.1 and VRF2 has 10.0.0.2. How Do i manually add entry of Onos in switch's arp table? Please elaborate. I am new to onos. 
IMG_20231031_135342.jpg
IMG_20231031_142332.jpg
IMG_20231031_134624.jpg
IMG_20231031_134247.jpg

Babis Chatzinakis

unread,
Oct 31, 2023, 5:06:25 AM10/31/23
to ONOS Discuss, harsh...@gmail.com
Try to 'reply to all' so our discussion is visible to everybody. From your image I see that the switch is trying to establish a connection to ONOS but there is an OFParser error. Can you try to set the OF version manually to 1.3? Something like " ovs-vsctl set bridge br protocols=OpenFlow13". 

Harsh Bijwe

unread,
Oct 31, 2023, 5:12:48 AM10/31/23
to Babis Chatzinakis, ONOS Discuss
Hi Babis,

You are a lifesaver, setting ovs-vsctl set bridge Vswitch1 protocols=OpenFlow13".  Worked!!. I tried to activate then deactivate fwd. Both working fine!.

 
Thanks & Regards,
Harsh Bijwe.
Personal mail id: harsh...@gmail.com
Contact: 8234074223.

Babis Chatzinakis

unread,
Oct 31, 2023, 5:18:31 AM10/31/23
to Harsh Bijwe, ONOS Discuss
I am glad I helped!
Reply all
Reply to author
Forward
0 new messages