static IP - RHEL 6.1
I have gone through several of the forums regarding setting up static IP address on RHEL. But I couldn't able to ping any IP address either within the same subnet or outside. Even I can't ping host IP or default gateway. All I get back is "Destination Host Unreachable".
I can get reply incase when I ping - localhost , IP_address (9.145.136.112).
I shall detail out the steps I followed.
Edited "/etc/sysconfig/network-scripts/ifcfg-eth0" to have the below shown contents
DEVICE="eth0"
HWADDR="00:50:56:9B:00:04"
IPADDR="9.145.136.112"
NETMASK="255.255.255.0"
NM_CONTROLLED="no"
ONBOOT="yes"
BOOTPROTO="static"
TYPE="Ethernet"
GATEWAY="9.145.136.1"
Added GATEWAY IP in /etc/sysconfig/network file
Added DNS IP in /etc/resolv.conf
Finally restarted the network service. Is there anything else I need to follow.
I am doing this installation as a guest machine on VMware host.
Couple of days back I did for ubuntu and it worked as charm.
Steps I followed in that case are
1. added IP details in /etc/network/interfaces
auto eth0
iface eth0 inet static
address 9.145.136.112
netmask 255.255.255.0
gateway 9.145.136.1
2. updated DNS IP
3. ifup eth0
I mentioned the ubunu steps just to show there is no issues with respect to HOST to Guest bridging .
Last edited by linux_newbieee; 05-20-2013 at 08:59 AM.
Reason: updated my question
|