Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] router to L2 ovsswitch

nor masri sahri masri.sahri at
Tue Jan 13 17:32:05 PST 2015

hi all, i came across examples and i just modified a little
bit to fulfil my objective.
the existing topo in the file is h1,h2,h3 <-> r0
my objective is h1,h2<->r0<->s1<->h3 with remote controller (
here are the modified class that ive done

class NetworkTopo( Topo ):

    def build( self, n=2, h=1, **opts ):
        router = self.addNode( 'r0', cls=LinuxRouter, ip='' )

        h1 = self.addHost( 'h1', ip='', defaultRoute='via' )
        h2 = self.addHost( 'h2', ip='', defaultRoute='via' )
        h3 = self.addHost( 'h3', ip='', defaultRoute='via' )

    s1 = self.addSwitch('s1', cls=OVSKernelSwitch)
    self.addLink( s1, router, intfName2='r0-eth0', params2={ 'ip' : '' } )
        self.addLink( h1, router, intfName2='r0-eth1', params2={ 'ip' : '' } )
        self.addLink( h2, router, intfName2='r0-eth2', params2={ 'ip' : '' } )
        self.addLink( h3, s1, intfName2='s1-eth0')

the problem is, h3 cannot ping h1 and vice versa. I believe that by doing
this, i already enable L2 learning switch and i configure h3 to use r0-eth0
interface ( as gateway. More worse, the r0 interface shows that
r0-eth0 and r0-eth1 has the same ip (

Please guide me for this small problem (this small thing are big thing for
beginner like me). oh ya, i did search the mininet archive list but cant
found solution. Your help are really appreciated.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the mininet-discuss mailing list