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 gmail.com
Tue Jan 13 17:32:05 PST 2015


hi all, i came across linuxrouter.py 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 (127.0.0.1)
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='192.168.1.1/24' )

        h1 = self.addHost( 'h1', ip='192.168.1.100/24', defaultRoute='via
192.168.1.1' )
        h2 = self.addHost( 'h2', ip='172.16.0.100/12', defaultRoute='via
172.16.0.1' )
        h3 = self.addHost( 'h3', ip='10.0.0.100/8', defaultRoute='via
10.0.0.1' )

    s1 = self.addSwitch('s1', cls=OVSKernelSwitch)
    self.addLink( s1, router, intfName2='r0-eth0', params2={ 'ip' : '
10.0.0.1/8' } )
        self.addLink( h1, router, intfName2='r0-eth1', params2={ 'ip' : '
192.168.1.1/24' } )
        self.addLink( h2, router, intfName2='r0-eth2', params2={ 'ip' : '
172.16.0.1/12' } )
        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 (10.0.0.1/8) as gateway. More worse, the r0 interface shows that
r0-eth0 and r0-eth1 has the same ip (192.168.1.1/24).

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.

-- 
Regards,

masri.sahri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20150114/f87418d7/attachment.html>


More information about the mininet-discuss mailing list