[root@hadoop ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
192.168.1.100 hadoop.server.com hadoop
[root@hadoop ~]# cat /etc/sysconfig/network
NETWORKING=yes
#NETWORKING_IPV6=yes
HOSTNAME=hadoop
[root@hadoop ~]#
3. Set values in /etc/sysconfig/network-scripts/ifcfg-eth0
[root@hadoop ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:0c:29:84:56:c7
ONBOOT=yes
DHCP_HOSTNAME=hadoop.server.com
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
[root@hadoop ~]#
Ex: Ip: 192.168.1.100
Sub net: 255.255.255.0
Gateway: 192.168.1.1
5. Network settings at vmware level . Specific virtual network(VMnet8(NAT)) which should match windows:
Control Panel\Network and Internet\Network Connections
6. Set windows network settings
Control Panel\Network and Internet\Network Connections
Note: Both subnet and gateway ip addresses must be same for windows and linux.
7. Testing network settings
From command prompt: