Hello,
My topology is as follows and I am implementing vxlan on both openvswitches
in mininet.
I had configured my tunneling end point as s1-vtep and s2-vtep.
I had used pingall command to check network connectivity, and network is
able to ping all hosts.
When I give my manual-flows by  sh ovs-ofctl add-flows s1 s1text.txt
It gives me error in dl_dst command that Ethernet address is invalid.
But it is valid mac address I'm specifying as per topology.
I'm not able to figure out what are the problem associated with dl_dst
command, and I had followed
http://openvswitch.org/support/dist-docs/ovs-ofctl.8.txt rules to define my
flow table.
I had attached my python script and flow files along with this email.
So, could you please help me with the same.

[image: Inline image 2]




-- 
With Regards,

*Sanket*
table=0,in_port=1,actions=set_field:100->tun_id,resubmit(,1)
table=0,in_port=2,actions=set_field:200->tun_id,resubmit(,1)
table=0,in_port=3,actions=set_field:5500->tun_id,resubmit(,1)
table=0,in_port=4,actions=set_field:12000->tun_id,resubmit(,1)
table=0,actions=resubmit(,1)

table=1,tun_id=100,dl_dst=00.00.00.00.00.00.01,actions=output:1 
table=1,tun_id=200,dl_dst=00.00.00.00.00.00.02,actions=output:2 
table=1,tun_id=5500,dl_dst=00.00.00.00.00.00.03,actions=output:3
table=1,tun_id=12000,dl_dst=00.00.00.00.00.00.04,actions=output:4
table=1,tun_id=100,dl_dst=00.00.00.00.00.00.05,actions=output:10
table=1,tun_id=200,dl_dst=00.00.00.00.00.00.06,actions=output:10
table=1,tun_id=5500,dl_dst=00.00.00.00.00.00.07,actions=output:10
table=1,tun_id=12000,dl_dst=00.00.00.00.00.00.08,actions=output:10 
table=1,tun_id=100,arp,nw_dst=10.0.0.1,actions=output:1
table=1,tun_id=200,arp,nw_dst=10.0.0.2,actions=output:2
table=1,tun_id=5500,arp,nw_dst=10.0.0.3,actions=output:3
table=1,tun_id=12000,arp,nw_dst=10.0.0.4,actions=output:4 
table=1,tun_id=100,arp,nw_dst=10.0.0.5,actions=output:10 
table=1,tun_id=200,arp,nw_dst=10.0.0.6,actions=output:10 
table=1,tun_id=5500,arp,nw_dst=10.0.0.7,actions=output:10 
table=1,tun_id=12000,arp,nw_dst=10.0.0.8,actions=output:10 
table=1,priority=100,actions=drop
 
    
table=0,in_port=1,actions=set_field:100->tun_id,resubmit(,1)
table=0,in_port=2,actions=set_field:200->tun_id,resubmit(,1)
table=0,in_port=3,actions=set_field:5500->tun_id,resubmit(,1)
table=0,in_port=4,actions=set_field:12000->tun_id,resubmit(,1)
table=0,actions=resubmit(,1)

table=1,tun_id=100,dl_dst=00.00.00.00.00.00.05,actions=output:1 
table=1,tun_id=200,dl_dst=00.00.00.00.00.00.06,actions=output:2 
table=1,tun_id=5500,dl_dst=00.00.00.00.00.00.07,actions=output:3
table=1,tun_id=12000,dl_dst=00.00.00.00.00.00.08,actions=output:4
table=1,tun_id=100,dl_dst=00.00.00.00.00.00.01,actions=output:10
table=1,tun_id=200,dl_dst=00.00.00.00.00.00.02,actions=output:10
table=1,tun_id=5500,dl_dst=00.00.00.00.00.00.03,actions=output:10
table=1,tun_id=12000,dl_dst=00.00.00.00.00.00.04,actions=output:10 
table=1,tun_id=100,arp,nw_dst=10.0.0.5,actions=output:1
table=1,tun_id=200,arp,nw_dst=10.0.0.6,actions=output:2
table=1,tun_id=5500,arp,nw_dst=10.0.0.7,actions=output:3
table=1,tun_id=12000,arp,nw_dst=10.0.0.8,actions=output:4 
table=1,tun_id=100,arp,nw_dst=10.0.0.1,actions=output:10 
table=1,tun_id=200,arp,nw_dst=10.0.0.2,actions=output:10 
table=1,tun_id=5500,arp,nw_dst=10.0.0.3,actions=output:10 
table=1,tun_id=12000,arp,nw_dst=10.0.0.4,actions=output:10 
table=1,priority=100,actions=drop
 
    
#!/usr/bin/python	

"""
Script created by VND - Visual Network Description (SDN version)
"""
from mininet.net import Mininet
from mininet.node import Controller, RemoteController, OVSKernelSwitch, OVSLegacyKernelSwitch, UserSwitch
from mininet.cli import CLI
from mininet.log import setLogLevel
from mininet.link import Link, TCLink

def topology():
    "Create a network."
    net = Mininet( controller=RemoteController, link=TCLink, switch=OVSKernelSwitch )

    print "*** Creating nodes"
    h1 = net.addHost( 'h1', mac='00:00:00:00:00:01', ip='10.0.0.1/8' )
    h2 = net.addHost( 'h2', mac='00:00:00:00:00:02', ip='10.0.0.2/8' )
    h3 = net.addHost( 'h3', mac='00:00:00:00:00:03', ip='10.0.0.3/8' )
    h4 = net.addHost( 'h4', mac='00:00:00:00:00:04', ip='10.0.0.4/8' )
    h5 = net.addHost( 'h5', mac='00:00:00:00:00:05', ip='10.0.0.5/8' )
    h6 = net.addHost( 'h6', mac='00:00:00:00:00:06', ip='10.0.0.6/8' )
    h7 = net.addHost( 'h7', mac='00:00:00:00:00:07', ip='10.0.0.7/8' )
    h8 = net.addHost( 'h8', mac='00:00:00:00:00:08', ip='10.0.0.8/8' )
    h8 = net.addHost( 'h8', mac='00:00:00:00:00:08', ip='10.0.0.8/8' )
    s10 = net.addSwitch( 's10', listenPort=6674, mac='00:00:00:00:00:10' )
    c20 = net.addController( 'c20', controller=RemoteController, ip='127.0.0.1', port=6633 )

    print "*** Creating links"
    net.addLink(s9, s10, 5, 5)
    net.addLink(h5, s10, 0, 4)
    net.addLink(s10, h6, 3, 0)
    net.addLink(h7, s10, 0, 2)
    net.addLink(h8, s10, 0, 1)
    net.addLink(h1, s9, 0, 4)
    net.addLink(h2, s9, 0, 3)
    net.addLink(h4, s9, 0, 2)
    net.addLink(h3, s9, 0, 1)

    print "*** Starting network"
    net.build()
    c20.start()
    s10.start( [c20] )
    s9.start( [c20] )

    print "*** Running CLI"
    CLI( net )

    print "*** Stopping network"
    net.stop()

if __name__ == '__main__':
    setLogLevel( 'info' )
    topology()

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to