Hi Tessy,

Sorry for the delay.

On my environment, rest_vtep works as expected.

If routes were advertised correctly, please confirm the following points;

- Make sure the virtual networks are registered.
e.g.)
curl -X GET http://localhost:8080/vtep/networks | python -m json.tool
{
    "10": {
        "EvpnNetwork": {
            "clients": {
                "12:72:b7:71:e2:03": {
                    "EvpnClient": {               # Local client
                        "ip": "10.0.0.1",
                        "mac": "12:72:b7:71:e2:03",
                        "next_hop": "172.17.0.2",
                        "port": 1
                    }
                },
                "aa:d0:3f:03:8a:bb": {
                    "EvpnClient": {               # Remote client
                        "ip": "10.0.0.2",
                        "mac": "aa:d0:3f:03:8a:bb",
                        "next_hop": "172.17.0.3",
                        "port": 3
                    }
                }
            },
            "ethernet_tag_id": 0,
            "route_dist": "65000:10",
            "vni": 10
        }
    }
}


- Make sure the "vxlan" interface for these routes are created;
e.g.)
mininet> sh ovs-vsctl show
58b13290-e4b4-4086-88ef-41453b4d2055
    Manager "ptcp:6640"
    Bridge "s1"
        Controller "ptcp:6634"
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "s1-eth2"
            Interface "s1-eth2"
        Port "vxlan_172.17.0.3_10"          # VXLAN interface named as 
"vxlan_<REMOTE_IP>_<VNI>"
            Interface "vxlan_172.17.0.3_10"
                type: vxlan
                options: {key="10", remote_ip="172.17.0.3"}
        Port "s1"
            Interface "s1"
                type: internal
        Port "s1-eth1"
            Interface "s1-eth1"
    ovs_version: "2.5.2"


- (If you can read OpenFlow rules) make sure the flow entries on your OVS;
e.g.)
mininet> sh ovs-ofctl dump-flows s1 -O OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
 ...(snip)
 # Remote client -> Local client
 cookie=0x0, duration=916.999s, table=0, n_packets=3, n_bytes=294, 
priority=1,in_port=3 actions=write_metadata:0xa,goto_table:1

 # Local client -> Remote client
 cookie=0x0, duration=818.455s, table=0, n_packets=10, n_bytes=588, 
priority=1,in_port=1,dl_src=12:72:b7:71:e2:03 
actions=write_metadata:0xa,goto_table:1

 # For creating ARP response
 cookie=0x0, duration=643.451s, table=1, n_packets=1, n_bytes=42, 
priority=2,arp,metadata=0xa,arp_tpa=10.0.0.2,arp_op=1 
actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],set_field:aa:d0:3f:03:8a:bb->eth_src,set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:aa:d0:3f:03:8a:bb->arp_sha,set_field:10.0.0.2->arp_spa,IN_PORT

 # To Local client
 cookie=0x0, duration=818.455s, table=1, n_packets=3, n_bytes=294, 
priority=1,metadata=0xa,dl_dst=12:72:b7:71:e2:03 actions=output:1

 # To Remote client
 cookie=0x0, duration=643.451s, table=1, n_packets=3, n_bytes=294, 
priority=1,metadata=0xa,dl_dst=aa:d0:3f:03:8a:bb actions=output:3
 ...(snip)


Thanks,
Iwase


On 2017年05月09日 12:24, Tessy Thomas wrote:
> halo,
> i run it in different system(one in my laptop and other in the system),routes 
> are advertised but ping between hosts is not successful,
> 
> 
> thankyou
> 
> On Mon, May 8, 2017 at 1:04 PM, Iwase Yusuke <iwase.yusu...@gmail.com 
> <mailto:iwase.yusu...@gmail.com>> wrote:
> 
>     Hi Tessy,
> 
>     Let me confirm your environment, first.
> 
>     > i run the rest_vtep in my lapyop and system,
>     > In both 1 controller, 1 openvswitch,2 hosts were run(using mininet)
> 
>     rest_vtep supposes 2 Ryu controller and 2 OVS, which are running on the
>     separated host as following, because rext_vtep will communicate by using
>     BGP and create VXLAN tunnel between each host.
>       http://ryu.readthedocs.io/en/latest/app/rest_vtep.html#environment 
> <http://ryu.readthedocs.io/en/latest/app/rest_vtep.html#environment>
> 
>     If you want to run this app on a single host, you need to use VM(KVM,
>     VirtualBox, etc) or container(Docker, LXD, etc).
> 
>     Thanks,
>     Iwase
> 
> 
>     On 2017年05月03日 18:42, Tessy Thomas wrote:
>     > 1.creating bgp speaker - success
>     > 2.registering the neighbours -success
>     > 3.vni creation- success
>     > 4. registering clients success
>     >
>     > Routes are correctly advertised between the hosts( laptop and System)
>     > But ping between s1h1 and s2h1 is not working...
>     >
>     > kindly help
>     >
>     >
>     > On Wed, May 3, 2017 at 3:08 PM, Tessy Thomas <tessyma...@gmail.com 
> <mailto:tessyma...@gmail.com> <mailto:tessyma...@gmail.com 
> <mailto:tessyma...@gmail.com>>> wrote:
>     >
>     >     hi,
>     >
>     >     i run the rest_vtep in my lapyop and system,
>     >     In both 1 controller, 1 openvswitch,2 hosts were run(using mininet)
>     >
>     >     All configuration steps are working successfully,
>     >     But the final step ping between s1h1 and s2h1 is not working.
>     >     What am i doing wrong?,kindly help..
>     >
>     >     Thankyou
>     >
>     >
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to