Ask Your Question
0

with VTN port mapping doesn't work ping between hosts

asked 2015-01-19 00:52:50 -0700

rawsik gravatar image

Hello,

I have mininet, and two switches with to hosts in each other H1 <-> S1 <-> S2 <-> H1 H1 pings H2 I deleted link between S1 and S2

Mininet connected to ODL as controller, and I see this switches and hosts in ODL. now topology is: H1 <-> S1 and separate H2 <-> S2

I want connect H1 to H2 throught virtual bridge in VTN

I did this:

create VTN tenant curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \ http://localhost:8080/controller/nb/v2/vtn/default/vtns/Tenant1 -d ' {"description": "Virtual Tenant 1 for NC network"}'

next I created virtual bridge in VTN curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \ http://localhost:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1 -d '{}'

after that was created virtual interfaces: curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \ http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif1 -d '{}' curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \ http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif2 -d '{}' curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X POST \

And I added port mapping with correct ports and hosts addresses: curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X PUT \ http://localhost:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif2/portmap \ -d '{"node": {"type": "OF", "id": "00:00:00:00:00:02"} , "port": {"name": "s2-eth2"}}'

curl --user "admin":"admin" -H "Accept: application/json" -H \ "Content-type: application/json" -X PUT \ http://localhost:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif1/portmap \ -d '{"node": {"type": "OF", "id": "00:00:00:00:00:01"} , "port": {"name": "s1-eth1"}}'

I request port status vif1 curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif1 {"enabled":true,"name":"vif1","state":0,"entityState":1}

and port status vif2 curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif2 {"enabled":true,"name":"vif2","state":0,"entityState":1}

as I see ports are mapped, but ping between H1 and H2 doesn't work, and there aren't any changes in ODL web interfaces.

I use ODL with installed VTN manager.

As I understood topology should be: H1 <-> S1 <-> vbr1 <-> H2 <-> S2

Please, what I do wrong? And how to do successful port mapping in VTN?

edit retag flag offensive close merge delete

Comments

curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif1/portmap {"node":{"id":"00:00:00:00:00:00:00:01","type":"OF"},"port":{"name":"s1-eth1"},"vlan":0,"mapped":{"type":"OF","id":"1"}} curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X GET http://127.0.0.1:8080/controller/nb/v2/vtn/default/vtns/Tenant1/vbridges/vbr1/interfaces/vif2/portmap {"node":{"id":"00:00:00:00:00:00:00:02","type":"OF"},"port":{"name":"s2-eth1"},"vlan":0,"mapped":{"type":"OF","id":"1"}}

rawsik ( 2015-01-19 00:54:32 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-01-19 17:35:30 -0700

gvrangan gravatar image

Hi Oleg, Thanks for your interest in the VTN Project. I have checked your configuration commands. They are fine. But, as we understand the link between the switches has been diabled. This will cause a PATH FAULT condition and VTN Manager does not support this scenario. The packets will not be forwarded in this case, so ping will fail in case of PATH FAULT. Kindly let us know in case of any queries.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-01-19 00:52:50 -0700

Seen: 198 times

Last updated: Jan 19 '15