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] Connect real host to mininet network(using hwintf.py )

Bob Lantz rlantz at cs.stanford.edu
Tue Dec 24 08:03:46 PST 2013


1. It's probably clear already, but using hwintf.py with a VM, you should add the "physical" interface of your VM, the host-only or bridged interface that you created using your virtual machine monitor and are attaching using hwintf.py, and then you should configure your VMs with appropriate IP addresses and routes so they can talk to either the host-only network or to your LAN.

2. Try running skype from within an xterm, or using the 'x' command from the CLI:
recommended way:
mininet> x h1
mininet> h1 skype >& /dev/null &
or (shortcut, but only do this once per host):
mininet> x h1 skype


On Dec 23, 2013, at 11:55 PM, Suresh <skjaiswal79 at hotmail.com> wrote:

> Hello all
>           I have install mininet vm on my desktop windows machine (ip 10.222.41.37)
>          And my mininet vm conneted to LAN on eth0  interface and ip is 10.222.41.53
>  
> eth0      Link encap:Ethernet  HWaddr 08:00:27:23:98:a0
>           inet addr:10.222.41.53  Bcast:10.222.43.255  Mask:255.255.252.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>  
> I am trying to connect my  desktop machine which is in same subnet and ip is 10.222.41.37
> I mean I want to connect my physical host not (virtual host like in mininet h1, h2) to mininet virtual host.
>  
> I m using hwintf.py file for creating virtual switch but I do not know how to add my physical host
>  
> Another scenario I want to do on mininet I have install skype 4.2 version 
> And run nat.py and able to connect (ping gooogle.com)but
> If want connect skype with my login id then able to connect
> /mininet/examples#skype &
> [1] 1649
> (from h1 console)
>  
>  
> sudo python nat.py
> *** Creating network
> *** Adding controller
> *** Adding hosts:
> h1 h2 h3 h4
> *** Adding switches:
> s1
> *** Adding links:
> (h1, s1) (h2, s1) (h3, s1) (h4, s1)
> *** Configuring hosts
> h1 h2 h3 h4
> *** Starting controller
> *** Starting 1 switches
> s1
> *** Hosts are running and should have internet connectivity
> *** Type 'exit' or control-D to shut down network
> *** Starting CLI:
> mininet> h1 ping google
> ^Cmininet> h1 ping google.com
> PING google.com (74.125.236.163) 56(84) bytes of data.
> 64 bytes from maa03s16-in-f3.1e100.net (74.125.236.163): icmp_req=1 ttl=53 time=54.4 ms
> 64 bytes from maa03s16-in-f3.1e100.net (74.125.236.163): icmp_req=2 ttl=53 time=53.2 ms
>  
> Thanks in advance.
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20131224/20c85a13/attachment-0001.html>


More information about the mininet-discuss mailing list