LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to setup IP in RHEL 6 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-setup-ip-in-rhel-6-a-4175411387/)

manalisharmabe 06-14-2012 04:27 AM

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.

Slackyman 06-14-2012 04:34 AM

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

epislav 06-14-2012 04:40 AM

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

John VV 06-14-2012 06:15 AM

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

Slackyman 06-14-2012 09:15 AM

@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.


All times are GMT -5. The time now is 10:01 AM.