Mininet host talks to real PC

[Network Topology]




[Mininet Script]



from import Mininet

from mininet.node import Controller, RemoteController

from mininet.cli import CLI

from import Intf

from mininet.log import setLogLevel, info


def myNetwork():


    net = Mininet( topo=None, build=False, controller=RemoteController)


    info( '*** Adding controller\n' )

    net.addController(name='c0', ip='', port=6633 )


    info( '*** Add switches\n')

    s1 = net.addSwitch('s1')

    Intf( 'eth1', node=s1 )


    info( '*** Add hosts\n')

    h1 = net.addHost('h1', ip='')


    info( '*** Add links\n')

    net.addLink(h1, s1)


    info( '*** Starting network\n')





if __name__ == '__main__':

    setLogLevel( 'info' )






Dr. Chih-Heng Ke (

Department of Computer Science and Information Engineering,

National Quemoy University, Kinmen, Taiwan.