LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-20-2013, 07:14 AM   #1
linux_newbieee
LQ Newbie
 
Registered: May 2013
Posts: 3

Rep: Reputation: Disabled
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
 
Old 05-20-2013, 08:06 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You don't mention what the actual problem is.

- Which command/step doesn't seem to work?
- Any warning/error messages?
 
Old 05-20-2013, 09:11 AM   #3
nyshtyak
Member
 
Registered: Nov 2008
Distribution: Arch
Posts: 38

Rep: Reputation: 2
RHEL sets up pretty conservative firewall rules by default. Check that icmp is not blocked by iptables.
 
Old 05-20-2013, 09:30 AM   #4
linux_newbieee
LQ Newbie
 
Registered: May 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have stopped iptables and turned it off. No luck.

an another info... When I tried to ssh to a ip in same subnet( sure its a linux box), I ge t the following error message.

"ssh : connect to host 9.145.136.110 port 22: No route to host"

I tried to check the output of "route -n" command, which is as below

-----------------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
9.145.136.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 9.145.136.1 0.0.0.0 UG 0 0 0 eth0
-----------------------
 
Old 05-20-2013, 03:10 PM   #5
nyshtyak
Member
 
Registered: Nov 2008
Distribution: Arch
Posts: 38

Rep: Reputation: 2
Show your ifconfig -a.
Also show your arp -a after you tried to ping some host in your subnet.
 
Old 05-20-2013, 08:15 PM   #6
sillvester
LQ Newbie
 
Registered: Dec 2010
Location: Jiaxing Zhejiang Province China
Posts: 6

Rep: Reputation: 4
Code:
ifconfig
ip route list
check if the ip address and route right
check if the vmware network setting is bridge mode
 
Old 05-21-2013, 02:34 AM   #7
linux_newbieee
LQ Newbie
 
Registered: May 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks guys.. culprit is vmware n/w settings.. I am bale to resolve it now..
thanks again for all your help
 
  


Reply



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
[SOLVED] Can't connect to Internet after changing the IP to STATIC in RHEL exotichead Linux - Newbie 9 04-13-2011 03:57 PM
RHEL Static Routing Best Practice? wischad Linux - Networking 1 01-25-2011 10:09 PM
Static Network Configuration on RHEL dssr Red Hat 11 04-28-2010 10:14 AM
No static IP possible with WLAN adapter Broadcom 4318 and RHEL 5.4 rodyz Red Hat 3 02-04-2010 09:11 AM
RHEL freezes once static IP is set scheng924 Linux - Server 2 04-23-2008 12:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration