LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-07-2009, 04:45 PM   #1
milon2009
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Guest not communicating with host with VMWare installation on Hetzner server


Hi,

I have just leased a server with Hetzner in Germany and wish to run VMware on a CentOS host. The problem is that Hetzner assign their ip addresses to the specific MAC address of the host and so bridging the guest's network connection does not work.

How can I get the guest to communicate with the host and internet?


HOST DETAILS (CentOS 5.3 with VMware server 2.0.1):

ifconfig:
Code:
eth0      Link encap:Ethernet  HWaddr 00:24:21:EF:30:6C
          inet addr:188.40.x.18  Bcast:188.40.x.63  Mask:255.255.255.255
          inet6 addr: fe80::224:21ff:feef:306c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:114048 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70799 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16410218 (15.6 MiB)  TX bytes:13850165 (13.2 MiB)
          Interrupt:82 Base address:0xe000

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:38510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38510 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:29094263 (27.7 MiB)  TX bytes:29094263 (27.7 MiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01
          inet addr:172.16.98.1  Bcast:172.16.98.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:49 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 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:192.168.150.1  Bcast:192.168.150.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:30 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

nano /etc/sysctl.conf:
Code:
### Hetzner Online AG installimage
# sysctl config
net.ipv4.ip_forward=1
net.ipv4.conf.all.rp_filter=1
net.ipv4.icmp_echo_ignore_broadcasts=1

nano /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
### Hetzner Online AG - installimage
# device: eth0

DEVICE=eth0
BOOTPROTO=static
BROADCAST=188.40.x.63
HWADDR=00:24:21:ef:30:6c
IPADDR=188.40.x.18
NETMASK=255.255.255.255
SCOPE="peer 188.40.120.1"

GUEST (CentOS 5.3)

ifconfig
Code:
eth0      Link encap:Ethernet  HWaddr 00:0C:29:20:d7:5e
          inet addr:188.40.x.57  Bcast:188.40.x.63  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe20:d75e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:78 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:180 (180b)  TX bytes:4880 (4.7 KiB)
          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:38510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38510 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1896 (1.8 KiB)  TX bytes:1896 (1.8 KiB)

nano /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=static
BROADCAST=188.40.x.63
HWADDR=00:0C:29:20:d7:5e
IPADDR=188.40.x.57
NETMASK=255.255.255.0
GATEWAY=188.40.x.18
Many thanks in advance!

Last edited by milon2009; 10-07-2009 at 04:46 PM.
 
Old 10-18-2009, 03:17 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,284
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
Depends on the purpose of the guest. If it for instance only needs to provide one port, say TCP/80, you could make the guest use DHCP on vmnet1 or vmnet8 and forward traffic between guest and host nets. If your guest provides services (uses ports) your host doesn't you could make the guest use the same address as the host but that has the potential to expose more than you would want to so be careful.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuration to access internet from vmware(host=winXP, guest on vmware=linux-5) afz_linux Linux - Newbie 3 12-30-2008 12:20 AM
vmware-server: host linux, guest winxp, usb mouse doesn't work hedpe Linux - Software 5 09-08-2008 04:41 AM
Installing RHEL4 as a guest OS on a VMware Server; Host is an XP machine. Need help! CrontabNewBIE Linux - Software 3 04-03-2008 04:45 PM
cannot connect Host to Guest OS (vmware) ic_torres Linux - Networking 2 10-23-2007 04:53 AM
Vmware XP host SUSE 10.1 guest - installation p_munyard General 0 01-23-2007 04:03 PM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration