LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 08-28-2003, 11:43 AM   #1
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
overview of /etc/sysconfig


My original installation of redhat with one nic connected to cable-modem can connect to internet ..

Now I've moved that nic to other pci slot, pick out the soundcard and put in another nic to that pci slot of the soundcard. During the booting, kudzu recognized it, asked me whether to remove the software for that soundcard, I answered ok .. will also be removed ..

Kudzu also asked something regarding the nic.., it took awhile, then continued with being not able to activate the eth0 .. (am not sure whether it is caused by the often failed connection to ISP), but I was not able to activate it, also not by using the tool on the control center.

Wut I did:

Created an file in /etc/sysconfig/networking/devices/ifcfg-eth1
copy it to /etc/sysconfig/networking/profiles/default/
make a symbolic link from /etc/sysconfig/network-scripts/ifcfg-eth1 to ../networking/devices/ifcfg-eth1

Content of ifcfg-eth1 (dedicated for internet sharing to wme-box):

DEVICE=eth1
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
NAME=eth1
HWADDR=00:50:ba:aa:bb:cc
BOOTPROTO=none
USERCTL=no
PEERDNS=no
TYPE=Ethernet

Content of ifcfg-eth0:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
DHCP_HOSTNAME=tx97e
HWADDR=00:50:ba:bb:cc:dd


eth1 worked, but eth0 not, can not be activated, cable modem is connected to eth0. Wut is wrong, is it problem from the ISP ?

Can any one give an overview of the files in /etc/sysconfig
or point me to the related reading ?

Where is the definitive place to define the HOSTNAME ? when I call hostname it always answered with dhcpc-xxxx ..

My isp does'nt change the HOSTNAME I defined in slackware or windows platform ..

Last edited by linuxJaver; 08-28-2003 at 12:47 PM.
 
Old 08-28-2003, 12:23 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Files in /etc/sysconfig on a Red Hat Linux System
http://www.redhat.com/support/resour...sysconfig.html

To setup you NICs, you can use the GUI tool (redhat-config-network).


To set a hostname, edit the HOSTNAME line in /etc/sysconfig/network
Code:
HOSTNAME=Red_Hat_Linux
Then in /etc/hosts, append the name to the end of the first line like this:
Code:
127.0.0.1       localhost.localdomain   localhost Red_Hat_Linux
 
  


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
Most secure, best overview... Zuul Linux - Distributions 3 08-24-2005 02:15 PM
command overview? TranceDude Linux - Software 4 08-12-2005 06:48 PM
INTEL 80x86 overview programmershous General 7 07-17-2004 08:20 AM
overview of Arch? b0uncer Arch 4 01-20-2004 08:14 AM
Quick Overview dnfrantum Linux - Networking 1 06-26-2003 06:37 PM


All times are GMT -5. The time now is 06:42 AM.

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