Hallo!
Ich verwende VMWare-Player mit einer einzelnen virtuellen Maschine.
Als Host-Betriebssystem kommt Windows XP zum Einsatz, als Gast Windows Server 2003. Der Host hat eine statische IP (10.0.0.139), der Default-Gateway ist ein DSL-Router (10.0.0.138). Jetzt möchte ich auch in der VM eine statische IP verwenden (10.0.137) und zwar in Verbindung mit NAT. NAT hat bislang soweit funktioniert, dass die IP per DHCP vergeben wurde und somit eine Verbindung zum Internet und auch zum Host bestand (Ping war möglich), ebenso vom Host zum Gast.
Leider funktioniert jetzt nichtmal mehr das, nachdem ich ein bisschen herumprobiert habe.
Es gibt ja auch die beiden Dateien vmnetdhcp.conf und vmnetnat.conf, darin werden ja auch DHCP und NAT konfiguriert. (ich hab sie unten angehängt)
Jetzt meine Fragen: Wie müssen diese beiden Konfigurationsdateien konfiguriert werden? Welche IP muss der VMWare-Netzwerkadapter im Host erhalten? Welche IP die virtuelle Netzwerkkarte der VM?
Wer kennt sich mit VMWare aus und kann helfen? Leider blicke ich im Moment überhaupt nicht mehr durch. Besten Dank dafür schon im Voraus!
lg Daniel
vmnetdhcp.conf
#
# Configuration file for VMware port of ISC 2.0 release running on
# Windows.
#
# This file is generated by the VMware installation procedure; it
# is edited each time you add or delete a VMware host-only network
# adapter.
#
# We set domain-name-servers to make some clients happy
# (dhclient as configued in SuSE, TurboLinux, etc.).
# We also supply a domain name to make pump (Red Hat 6.x) happy.
#
allow unknown-clients;
default-lease-time 1800; # default is 30 minutes
max-lease-time 7200; # default is 2 hours
# Virtual ethernet segment 1
# Added at 12/07/08 09:15:50
subnet 192.168.153.0 netmask 255.255.255.0 {
range 192.168.153.128 192.168.153.254; # default allows up to 125 VM's
option broadcast-address 192.168.153.255;
option domain-name-servers 192.168.153.1;
option domain-name "localdomain";
default-lease-time 1800;
max-lease-time 7200;
}
host VMnet1 {
hardware ethernet 00:50:56:C0:00:01;
fixed-address 192.168.153.1;
option domain-name-servers 0.0.0.0;
option domain-name "";
}
# End
# Virtual ethernet segment 8
# Added at 12/07/08 09:15:50
subnet 192.168.40.0 netmask 255.255.255.0 {
range 192.168.40.100 192.168.40.130; # default allows up to 125 VM's
option broadcast-address 192.168.40.255;
option domain-name-servers 192.168.40.2;
option domain-name "localdomain";
option netbios-name-servers 192.168.40.2;
option routers 192.168.40.2;
default-lease-time 1800;
max-lease-time 7200;
}
host VMnet8 {
hardware ethernet 00:50:56:C0:00:08;
fixed-address 192.168.40.2;
option domain-name-servers 0.0.0.0;
option domain-name "";
option routers 0.0.0.0;
}
# End
vmnetnat.conf
# Windows NAT configuration file
[host]
# NAT gateway address
ip = 192.168.40.2/24
hostMAC = 00:50:56:C0:00:08
# enable configuration; disabled by default for security reasons
#configport = 33445
# VMnet device if not specified on command line
device = vmnet8
# Allow PORT/EPRT FTP commands (they need incoming TCP stream...)
activeFTP = 1
# Allows the source to have any OUI. Turn this one if you change the OUI
# in the MAC address of your virtual machines.
allowAnyOUI = 1
[udp]
# Timeout in seconds, 0 = no timeout, default = 30; real value might
# be up to 100% longer
timeout = 30
[dns]
# This section applies only to Windows.
#
# Policy to use for DNS forwarding. Accepted values include order,
# rotate, burst.
#
# order: send one DNS request at a time in order of the name servers
# rotate: send one DNS request at a time, rotate through the DNS servers
# burst: send to three servers and wait for the first one to respond
policy = order
# Timeout in seconds before retrying DNS request.
timeout = 2
# Retries before giving up on DNS request
retries = 3
# Automatically detect the DNS servers (not supported in Windows NT)
autodetect = 1
# List of DNS servers to use. Up to three may be specified
#nameserver1 = 198.41.0.4
#nameserver2 = 192.36.148.17
#nameserver3 = 202.12.27.33
[netbios]
# This section applies only to Windows.
# Timeout for NBNS queries.
nbnsTimeout = 2
# Number of retries for each NBNS query.
nbnsRetries = 3
# Timeout for NBDS queries.
nbdsTimeout = 3
[incomingtcp]
# Use these with care - anyone can enter into your virtual machine through these...
# FTP (both active and passive FTP is always enabled)
# ftp localhost 8887
#8887 = 192.168.27.128:21
# WEB (make sure that if you are using named webhosting, names point to
# your host, not to guest... And if you are forwarding port other
# than 80 make sure that your server copes with mismatched port
# number in Host: header)
# lynx http://localhost:8888
#8888 = 192.168.27.128:80
# SSH
# ssh -p 8889 root@localhost
#8889 = 192.168.27.128:22
[incomingudp]
# UDP port forwarding example
#6000 = 192.168.27.128:6001
[PrivilegedTCP]
autodetect = 1
[PrivilegedUDP]
autodetect = 1