[ovs-discuss] Fwd: OVS L3 mininet
Carlos González
krlos705 at gmail.com
Fri Dec 18 13:33:24 UTC 2015
Hello,
Thanks for your reply. I do this Configuration hope will be more clear.
sudo mn --controller=remote,ip=127.0.0.1 --topo linear,2 --mac
--switch ovsk,protocols=OpenFlow13
In the mininet prompt:
h1 ifconfig h1-eth0 10.0.0.1/24 netmask 255.0.0.0
h2 ifconfig h2-eth0 20.0.0.1/24 netmask 255.0.0.0
h1 route add default gw 10.0.0.254 h1-eth0
h2 route add default gw 20.0.0.254 h2-eth0
In the other terminal
ifconfig s1 up
ifconfig s2 up
In the mininet prompt:
s1 ifconfig s1:0 10.0.0.254
s2 ifconfig s2:0 20.0.0.254
add flows script
#!/bin/bash
#S1
#ARP
ovs-ofctl add-flow -OOpenflow13 s1
"table=0,priority=65535,arp,arp_tpa=10.0.0.254 actions=LOCAL"
ovs-ofctl add-flow -OOpenflow13 s1
"table=0,priority=1,arp,nw_dst=10.0.0.1,actions=output:1"
ovs-ofctl add-flow -OOpenflow13 s1
"table=0,priority=1,arp,nw_dst=20.0.0.1,actions=output:2"
ovs-ofctl add-flow -OOpenflow13 s1 "table=0,priority=0,actions=resubmit(,1)"
#ICMP
ovs-ofctl add-flow -OOpenflow13 s1
"table=1,icmp,nw_dst=10.0.0.1,actions=mod_dl_dst=00:00:00:00:00:01,output:1"
ovs-ofctl add-flow -OOpenflow13 s1
"table=1,icmp,nw_dst=20.0.0.1,actions=mod_dl_dst=00:00:00:00:00:02,output:2"
#S2
#ARP
ovs-ofctl add-flow -OOpenflow13 s2
"table=0,priority=65535,arp,arp_tpa=20.0.0.254 actions=LOCAL"
ovs-ofctl add-flow -OOpenflow13 s2
"table=0,priority=1,arp,nw_dst=20.0.0.1,actions=output:1"
ovs-ofctl add-flow -OOpenflow13 s2
"table=0,priority=1,arp,nw_dst=10.0.0.1,actions=output:2"
ovs-ofctl add-flow -OOpenflow13 s2 "table=0,priority=0,actions=resubmit(,1)"
#ICMP
ovs-ofctl add-flow -OOpenflow13 s2
"table=1,icmp,nw_dst=20.0.0.1,actions=mod_dl_dst=00:00:00:00:00:02,output:1"
ovs-ofctl add-flow -OOpenflow13 s2
"table=1,icmp,nw_dst=10.0.0.1,actions=mod_dl_dst=00:00:00:00:00:01,output:2"
I test ping connection but i have *not icmp reply, *Can you please
tell me how i can fix it.
Regards,
Krlos
Cordialement,
Carlos González
2015-12-10 9:06 GMT+01:00 Seyed Hossein Mortazavi <mortazavi at ualberta.ca>:
> You arp rules are incorrect
>
> On Mon, Dec 7, 2015 at 5:16 AM, Carlos González <krlos705 at gmail.com>
> wrote:
>
>> Hi all,
>>
>> I am trying to make mininet topology L3 OVS OF13 such as:
>>
>> sudo mn --controller=remote,ip=127.0.0.1 --topo linear,2 --switch
>> ovsk,protocols=OpenFlow13
>>
>> Controller ODL
>>
>> S1 S2
>>
>> H1 H2
>>
>>
>> - H1: IP 10.0.0.1/24
>> - H2: IP 10.0.1.1/24
>>
>> Add route:
>>
>> - h1 route add default gw 10.0.0.254
>> - h2 route add default gw 10.0.1.254
>>
>> I add the following flows:
>>
>>
>> - sh ovs-ofctl add-flow -OOpenflow13 s1
>> priority=500,dl_type=0x800,nw_src=
>> 10.0.0.0/24,nw_dst=10.0.1.0/24,actions=normal
>> - sh ovs-ofctl add-flow -OOpenflow13 s2
>> priority=500,dl_type=0x800,nw_src=
>> 10.0.1.0/24,nw_dst=10.0.0.0/24,actions=normal
>> - sh ovs-ofctl add-flow -OOpenflow13 s1
>> arp,nw_dst=10.0.0.1,actions=ouput:1
>> - sh ovs-ofctl add-flow -OOpenflow13 s2
>> arp,nw_dst=10.0.1.1,actions=ouput:1
>>
>> In the interface s1-eth1 IP 10.0.0.254 and interface s2-eth1 IP
>> 10.0.1.254. i do ping to see connection but i have always *Destination
>> Host Unreachable* Can anyone help me thanks..
>>
>>
>> _______________________________________________
>> discuss mailing list
>> discuss at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/discuss
>>
>>
>
>
> --
> Seyed Hossein Mortazavi
>
> Computer Science MS Student,
> University of Alberta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20151218/f065669a/attachment-0002.html>
More information about the discuss
mailing list