Cant Connect to Host Internet Using Static IP

Issues related to configuring your network
Post Reply
shailesh.dyade
Posts: 1
Joined: 2015/03/01 03:55:13

Cant Connect to Host Internet Using Static IP

Post by shailesh.dyade » 2015/03/01 04:06:17

Hello There,

Its been 3 days I am trying to figure out how do I connect to the host internet using static IP at the CentOS in VmWare, I currently have the setup as below.

I have 4 VM's linked to the base VM and the requirement is they should be different in IP addresses and static, so that I can connect to them without looking over the what is the new IP address ( No DHCP) and I should be able to access the internet on all of the VM's

I am trying to use the NAT but no luck, I feel I am doing some mistake but not sure what it is, can someone help me to get to the http://www.google.com with static IP configuration, since I have to do the cluster setup for hadoop, and they should be interacting with each other without any IP restrictions.

current ifcfg-eth0

DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.10.5
NETMASK=255.255.255.0
GATEWAY=192.168.10.2

whenever I specify the GATEWAY ip as nameserver in /etc/resolv.conf it will disappear, not sure what is the issue.

Please help..!!! :cry: :cry:

Regards,
Shailesh.

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cant Connect to Host Internet Using Static IP

Post by TrevorH » 2015/03/01 11:49:07

Is your VMWare host set up to use that same subnet for its guests? It should have an ip address, most likely 192.168.10.2, on one of its interfaces and should be listed in the output of the ifconfig command.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply