LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   overview of /etc/sysconfig (http://www.linuxquestions.org/questions/red-hat-31/overview-of-etc-sysconfig-86629/)

linuxJaver 08-28-2003 11:43 AM

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

Mathieu 08-28-2003 12:23 PM

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


All times are GMT -5. The time now is 11:20 PM.