LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-14-2012, 04:27 AM   #1
manalisharmabe
Member
 
Registered: Dec 2010
Posts: 240

Rep: Reputation: 1
Question How to setup IP in RHEL 6


Hi Guys,

Its been long time since i setup IP in RHEL 6.
What is exact procedure to setup IP in RHEL 6.

What should be the status of Network Manager while setting the IP start or stop?

I mean I do
system-config-network

then give IP, Subnet too
but when I do
service network restart

it does not show the ip provided.
 
Old 06-14-2012, 04:34 AM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
I often prefer to use system-config-network-tui.
Check always the content of /etc/sysconfig/network-scripts/ifcfg-eth0 (or eth1 if you have more than a network interface) and /etc/sysconfig/network (containing the gateway address).
The DNS servers addresses are stored into /etc/resolv.conf
 
1 members found this post helpful.
Old 06-14-2012, 04:40 AM   #3
epislav
LQ Newbie
 
Registered: Jun 2012
Posts: 20

Rep: Reputation: Disabled
set your desired configuration in /etc/sysconfig/network-scripts/ifcfg-eth0 like this:

DEVICE=eth0
BOOTPROTO=static
NETMASK=255.255.255.0
ONBOOT=yes
NOZEROCONF=yes
IPADDR=10.0.0.1

Last edited by epislav; 06-14-2012 at 04:44 AM.
 
1 members found this post helpful.
Old 06-14-2012, 06:15 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,036

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
normally it is rather easy in rhel
plug in the hardware and network cable(s) on the server
install RHEL6
and it IS set up

Quote:
What should be the status of Network Manager
? is this a HOME desktop set up ?

if so the same should apply
I am guessing that Gnome 2 is being used and this IS a cable internet connection

or is it dsl or 56k dial-up
or
some " wi-fi dongle"


the auto set up should work "out of the box" for a 4Meg,8meg,12meg ,.... cable connection

for cable the std ifup / ifdown will work on RHEL6


but the easiest way with Gnome2 installed is through the menu

Last edited by John VV; 06-14-2012 at 06:18 AM.
 
1 members found this post helpful.
Old 06-14-2012, 09:15 AM   #5
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
@John VV: Sure, it will work out of the box IF you use a DHCP server, but whitout a DHCP server you have to manual chose network settings such as IP Address and DNS Servers.
I'm oriented to always use (or check) configuration files since I wanna be sure that GUIs do what they have to do.
I have some bad experiences in the past with network interface on KDE3 in Slackware (did't remember exactly which version, maybe 11 or 10) since the KDE Network settings GUI didn't work at all not showing any of the ethernet interface.
 
  


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
[SOLVED] How to setup RHN on RHEL 5.4 eppy1976 Red Hat 2 12-23-2010 10:33 PM
Setup command not work in RHEL 5.4 ? raviteja_s Linux - Newbie 5 09-27-2010 03:02 PM
DNS SETUP on RHEL 5.2 raqeeb Linux - Newbie 6 05-02-2010 10:34 AM
RHEL-AS 4.6 Yum Setup thebofh Linux - Distributions 3 07-04-2008 07:40 AM
Qmail Setup on RHEL 4.0 mankarcm Linux - Software 1 10-15-2007 08:08 AM


All times are GMT -5. The time now is 10:23 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