Getting "destination host unreachable message" while pinging two hosts connected to two different switches under the control of two different remote controllers in mininet virtual network.

1,792 views
Skip to first unread message

bharga...@gmail.com

unread,
Apr 26, 2014, 6:26:43 AM4/26/14
to routeflo...@googlegroups.com
Hi All,

I created a virtual network consists of 

Two remote controllers c1,c2.

Two switches (s1,s2):s1 is under the control of c1,s2 is under the control of c2.s1 and s2 are connected to each other.

Two hosts (h1,h2):h1 is cnnected to s1,h2 is connected to s2.

in mininet using python script.


c1    c2
/        \
s1----- s2
/          \
h1       h2


when I was pinging by giving h1 ping h2 command at mininet CLI ,it was giving destination host unreachable.
Please let me know why it is giving destination host unreachable and how to get connectivity between h1 and h2.


Christian Esteve Rothenberg

unread,
Apr 26, 2014, 1:44:32 PM4/26/14
to routeflo...@googlegroups.com
Please share the ipconf configuration of h1 and h2, as well as the ipconf of the LXC containers in each routeflow instance plus the dump-flow output of s1 and s2


--
You received this message because you are subscribed to the Google Groups "RouteFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to routeflow-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Christian

bharga...@gmail.com

unread,
Apr 28, 2014, 4:39:23 AM4/28/14
to routeflo...@googlegroups.com


On Saturday, April 26, 2014 11:14:32 PM UTC+5:30, Christian Esteve Rothenberg wrote:
Please share the ipconf configuration of h1 and h2, as well as the ipconf of the LXC containers in each routeflow instance plus the dump-flow output of s1 and s2
On Sat, Apr 26, 2014 at 7:26 AM, <bharga...@gmail.com> wrote:
Hi All,

I created a virtual network consists of 

Two remote controllers c1,c2.

Two switches (s1,s2):s1 is under the control of c1,s2 is under the control of c2.s1 and s2 are connected to each other.

Two hosts (h1,h2):h1 is cnnected to s1,h2 is connected to s2.

in mininet using python script.


c1    c2
/        \
s1----- s2
/          \
h1       h2


when I was pinging by giving h1 ping h2 command at mininet CLI ,it was giving destination host unreachable.
Please let me know why it is giving destination host unreachable and how to get connectivity between h1 and h2.

Iam posting my python script for mininet topology.

#! /usr/bin/python
#

import sys
import os
from mininet.net import Mininet
from mininet.node import Controller, OVSKernelSwitch, RemoteController
from mininet.cli import CLI
from mininet.log import setLogLevel, info
from mininet.node import CPULimitedHost
from mininet.link import TCLink
from mininet.util import dumpNodeConnections
#from mininet.util import createLink
def createControllerNetwork():

    info( '*** Creating network for Controller Example' )

    # Create an empty network.
    net=Mininet(controller = RemoteController, switch = OVSKernelSwitch ,host=CPULimitedHost, link=TCLink)
    c1 = net.addController('c1', controller=RemoteController, ip="10.132.35.14", port=6633)
    c2 = net.addController('c2', controller=RemoteController, ip="10.132.35.15", port=6633)
    # Creating nodes in the network.

    h1 = net.addHost('h1',ip = '10.0.0.1')
    h2 = net.addHost('h2',ip = '10.0.0.2')
  s1 = net.addSwitch('s1',mac = '00:00:00:00:00:01')
    s2 = net.addSwitch('s2',mac = '00:00:00:00:00:02')

    #Creating links between nodes in network.
    info( '\n*** bw latency h1<->s1:' )
    net.addLink(h1, s1,bw=1, delay='5ms', use_htb=False)

    info( '\n*** bw latency h2<->s2:' )
    net.addLink(h2, s2,bw=1, delay='5ms', use_htb=False)

    info( '\n*** bw latency s1<->s2:' )
    net.addLink(s1, s2,bw=10, delay='5ms', use_htb=False)

   # Start network
    info( '\n' )
    net.build()
    # Attaching Controllers to Switches
    c1.start()
    c2.start()
    s1.start([c1])
    s2.start([c2])

    # dump stuff on the screen
    info( '\n*** Network state:' )
    for node in c1,c2,s1,s2,h1,h2:
        info( str( node ) + ' ' )
        info( '\n')

    CLI(net)
if __name__ == '__main__':
    setLogLevel( 'info' )
    createControllerNetwork() 
Reply all
Reply to author
Forward
0 new messages