Hello,
I am setting up network layout with and having some problems. I have vmnet0 bridged to eth0, this is called public network. It just just fine without any problem. I want to setup private network and here I am having problem. I do have vmnet1:
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:192.168.0.1 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmnet1 is host-only interface.
Hosts file:
192.168.0.1 localvmhost
192.168.1.1 vmguest-1
As cou can see first IP goest for the host computer and second one should go for the virtual machine.
DHCP configuration (/etc/dhcpd.conf) for giving VM IP address:
ddns-update-style none; shared-network vmnet1 {
subnet 192.168.0.0 netmask 255.255.0.0 {
allow unknown-clients;
option routers 192.168.0.1;
host vmguest-1 {
option host-name "vmguest-1";
hardware ethernet 00:50:56:1a:01:01;
fixed-address 192.168.1.1;
filename "/tftpboot/pxelinux.0";
option dhcp-server-identifier 192.168.0.1;
next-server 192.168.0.1;
}
}
}
DHCPD (daemon) modified:
start() {
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:192.168.0.1 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmnet1 is host-only interface.
Hosts file:
192.168.0.1 localvmhost
192.168.1.1 vmguest-1
As cou can see first IP goest for the host computer and second one should go for the virtual machine.
DHCP configuration (/etc/dhcpd.conf) for giving VM IP address:
ddns-update-style none; shared-network vmnet1 {
subnet 192.168.0.0 netmask 255.255.0.0 {
allow unknown-clients;
option routers 192.168.0.1;
host vmguest-1 {
option host-name "vmguest-1";
hardware ethernet 00:50:56:1a:01:01;
fixed-address 192.168.1.1;
filename "/tftpboot/pxelinux.0";
option dhcp-server-identifier 192.168.0.1;
next-server 192.168.0.1;
}
}
}
DHCPD (daemon) modified:start() {
pidofproc $prog >/dev/null 2>&1
RETVAL=$?
echo -n $"Starting $prog: "
daemon $dhcpd vmnet1 $DHCPDARGS 2>/dev/null
RETVAL=$?
echo
return $RETVAL
}
ipconfig information (VM Guest):
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter
#2
Physical Address. . . . . . . . . : 00-50-56-1A-01-01
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.1
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
Lease Obtained. . . . . . . . . . : Saturday, June 19, 2010 10:25:52 AM
Lease Expires . . . . . . . . . . : Saturday, June 19, 2010 10:25:52 PM
Everything from my eyes look good, MAC, IP, Subnet, Gateway. I can ping from VM using localhost, public network IP and private network IP. If I try pinging 192.168.0.1 (Host) it is not reachable. If I try pinging from Host to VM using 192.168.1.1 it's not reachable.