LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-19-2012, 11:36 PM   #1
maruthi.mengu
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
unable to assign ip address in rhel 4.7


hi

we are using HP DL 180g6 and os is RHEL 4.7

but we are unable to assign ip address it is PFB


#service network status
configured devices:
lo etho
currently active devices:
lo
#

please help me to get lan drivers asap
 
Old 02-20-2012, 07:19 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Not quite sure how Red Hat does these things but there ought to be some sort of a configuration file (somewhere in /etc) named something like inet1.conf, that file contains the configuration settings for your network interfaces (thus the "inet" name).

For fixed-IP; i.e., you're assigned an address, entries in that file should look something like this:
Code:
# Config information for eth0:
IPADDR[0]="192.168.1.10"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.1.1"
In the above, the system address is 192.168.1.10, NETMASK is 255.255.255.0, not using DHCP (you don't use DHCP for fixed-IP addressing), and the GATEWAY is 192.168.1.1 (that's the address of the router the machine is connected to). Yours may, of course, vary.

This particular server is named "fubar.com" and, if that name and domain is not already /etc/hosts, you would add a line in /etc/hosts like this:
Code:
127.0.0.1               localhost
192.168.1.10            fubar.com fubar
This is to identify the server by name; that name and domain would also appear in /etc/HOSTNAME.

Note that, if you're using DHCP for other purposes you can used fixed-IP for the server -- just set the address at a lower number than the starting addresses DHCP uses. In many cases, DHCP starts at xxx.xxx.x.100 and increment from there, so xxx.xxx.x.10 is just fine.

Using fixed-IP for server addresses is advantageous -- you always know what the address is and the server will be known to your intranet by name (you can fiddle with DCHP settings to make that happen as well, but why fiddle around when you don't have to).

If you add any of these to inet1.conf, you will need to restart you network services; or simply reboot the server.

Hope this helps some.

Last edited by tronayne; 02-20-2012 at 07:23 AM.
 
Old 02-20-2012, 10:47 PM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by maruthi.mengu View Post
hi
we are using HP DL 180g6 and os is RHEL 4.7
but we are unable to assign ip address it is PFB
#service network status
configured devices:
lo etho
currently active devices:
lo
#
please help me to get lan drivers asap
It means your ethernet card is down
run this command
Code:
#ifup eth0
and if eth0 is not configured you can use GUI interface to do so

Code:
#system-config-network
and follow the instructions
and in CLI
Code:
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:0C:29:B0:07:4B
ONBOOT=yes
HOSTNAME=server.example.com
IPADDR=10.10.10.97
NETMASK=255.0.0.0
GATEWAY=10.10.10.1
TYPE=Ethernet
IPV6INIT=no

Last edited by deep27ak; 02-20-2012 at 10:49 PM.
 
Old 02-24-2012, 06:40 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Just FYI, RHEL4.x is going out of regular support at the end of the mth https://access.redhat.com/support/po...pdates/errata/.
Time to upgrade ...
 
  


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
Linux networking to assign a address to my ethernet address karthik3152 Linux - Networking 1 05-29-2011 09:37 AM
Program to assign globa lIPv6 address and bind() to the previously assigned address. mwnn Linux - Networking 2 10-07-2010 02:29 AM
Cannot assign a MAC address hicksy Linux - Networking 5 02-19-2007 01:37 PM
how to assign dhcp address? hank43 Linux - Networking 1 09-10-2006 02:46 AM
Can not assign IP address jtir Solaris / OpenSolaris 1 09-28-2005 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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