Fixed IP for Virtual Machines in Windows Host
Static IP setting in client doesn't work. The client can access the host, but NAT doesn't work. NAT is binded to DHCP. So, if we want fixed IP for virtual machine work with NAT, fixed address with DHCP is required.It's quite easy to set it up. The configuration of VMware windows version is just the same with standard dhcpd. So, I just added sections of hardware ethernet and fixed-address:
# Virtual ethernet segment 8
# Added at 07/22/07 00:43:04
subnet 192.168.161.0 netmask 255.255.255.0 {
range 192.168.161.128 192.168.161.254; # default allows up to 125 VM's
option broadcast-address 192.168.161.255;
option domain-name-servers 192.168.161.2;
option domain-name "localdomain";
option netbios-name-servers 192.168.161.2;
option routers 192.168.161.2;
default-lease-time 1800;
max-lease-time 7200;
host tracvm{
hardware ethernet 00:0C:29:B1:4E:1C;
fixed-address 192.168.161.160;
}
host debian{
hardware ethernet 00:0C:29:97:73:9B;
fixed-address 192.168.161.161;
}
host mediawiki{
hardware ethernet 00:0c:29:e8:4c:0f;
fixed-address 192.168.161.161;
}
}
Labels: Virtualization

0 Comments:
Post a Comment
<< Home