Today I demontrated VirtualBox to one of my friends. During this process by mistake i attached vmnet1 to VB's Host interface and found that I could access Vmware VMs, Host samba server shares and The own VB VM shares seemlessly. So a idea struck to me
If i could configure a network Interface similar to Vmware's VMnet1, configure DHCP to it I could solve my long pending issue of virtual Internal LAN of VB VMs which I plan for Software testing could be resolved.
Can somebody elaborate me how I could do this. with various command i have to use.
the ifconfig output is
Code: Select all
eth0 Link encap:Ethernet HWaddr 00:21:70:c7:c7:35
inet addr:192.168.1.248 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::221:70ff:fec7:c735/64 Scope:Link
UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1
RX packets:152767 errors:0 dropped:3715331736
overruns:0 frame:0
TX packets:52351 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114054397 (108.7 MB) TX bytes:3723064 (3.5 MB)
Interrupt:218 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1324 errors:0 dropped:0 overruns:0 frame:0
TX packets:1324 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:84466 (82.4 KB) TX bytes:84466 (82.4 KB)
vbox0 Link encap:Ethernet HWaddr 00:ff:05:70:28:e8
inet6 addr: fe80::2ff:5ff:fe70:28e8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:6 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vmnet1 Link encap:Ethernet HWaddr 00:50:56:c0:00:01
inet addr:10.1.1.1 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:c0:00:08
inet addr:172.16.183.1 Bcast:172.16.183.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
and route output is
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.183.0 * 255.255.255.0 U 0 0 0 vmnet8
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
10.1.1.0 * 255.255.255.0 U 0 0 0 vmnet1
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
10.1.1.2 and VMs were getting ips >= 10.1.1.130