Ask Your Question
0

CPqD switch and ODL on same machine

asked 2015-03-20 03:05:42 -0700

Janki gravatar image

updated 2015-03-21 00:20:07 -0700

Hi all

I have installed CPqD in VM and am running Helium on the same computer. I created a 2 adapters in VM eth1,eth2.

sudo udatapath/ofdatapath --datapath-id=000000000002 --interfaces=eth1,eth2 ptcp:6680 &
secchan/ofprotocol tcp:127.0.0.1:6680 tcp:<ip-of-machine>:6653 &

This means a CPqD switch is created with 2 interfaces and attached to ODL. I can see it in dlux. How do I add hosts to this?

I want to achieve the scenario like this:

VM ----------------- VM ------------- VM
(HOST1)           (SWITCH            (HOST2)
                  CONNECTED 
                   TO ODL)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-21 18:05:33 -0700

Moderators

So a few things, do you want the Switch to be in it's own VM or can the switch be ran on the same bare metal machine where the hypervisor is running. I recommend running it the bare metal machine, not in it's own VM.

For CPqD you need to bind the switch to the interfaces. And then map each VM to to the Interface But first you need to create the interface

Create the virtual interface

  tunctl -u root -t <interfaceNameX>

Then replace --interfaces=eth1,eth2 with the name of the interfaces you created before.

Then when you bring up the VM bind them to the TAP interface you created above.

edit flag offensive delete publish link more

Comments

I created 2 tap interfaces, h1 and h2. " tunctl -u root -t h1" " tunctl -u root -t h2"

Janki ( 2015-03-23 02:07:32 -0700 )edit

Connected them to switch and connected switch to ODL. Switch and ODL are running on the same bare metal machine. *sudo udatapath/ofdatapath --datapath-id=000000000002 --interfaces=h1,h2 ptcp:6680 secchan/ofprotocol tcp:a.b.c.d:6680 tcp:a.b.c.d:6653*

Janki ( 2015-03-24 22:02:56 -0700 )edit

I created 2 VMs each with bridge adapters. One connected to h1 and other to h2. I canot see the VMs in dlux nor the VMs can ping each other. On switch's console, it says Mar 23 15:27:24|00013|dp_acts|WARN|can't directly forward to input port.

Janki ( 2015-03-24 22:03:41 -0700 )edit

That switch message should be better directed to CPqD team to see if they can help, but do you have the l2-switch feature installed cause without that you wont get the host information in dlux. have u try get using mininet with CPqD switch.

Chris O'Shea ( 2015-03-25 01:29:38 -0700 )edit

Yes, l2-switch feature is installed. VMs are bridged to tap interfaces created. I ping host1 from host2. It says destination not reachable. Ping host2 from host1 says network not reachable. After this, host2 is seen in dlux. Are VMs configured correctly?

Janki ( 2015-03-25 02:19:43 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2015-03-20 03:05:42 -0700

Seen: 222 times

Last updated: Mar 24 '15