LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-19-2005, 07:46 AM   #1
tyron80
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Activate network interfaces at startup


Hi,
i'm a newbie, i have a RH 7.2, i have succesfully configured eth0 with this parameters

ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:14:38:50:46:6D
inet addr:10.0.0.1 Bcast:10.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:384 errors:3 dropped:0 overruns:0 frame:0
TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
collisions:69 txqueuelen:100
RX bytes:107283 (104.7 Kb) TX bytes:159852 (156.1 Kb)
Interrupt:17 Memory:fddf0000-fde00000

how can i save this configuration ? when i reboot the system the interface is not active and it have no ip address assigned.

this is the device configuration script

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.0.0.1
NETMASK=255.255.255.0
 
Old 09-19-2005, 12:59 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
you could add a line to the end of the /etc/rc.d/rc.local file to execute the script. however, bringing up the network interface is usually done with /etc/rc.d/rc.inet1 (i think its called).
 
Old 09-19-2005, 02:07 PM   #3
anantshri
LQ Newbie
 
Registered: Sep 2005
Location: India
Distribution: Debian, Fedora,Ubuntu
Posts: 25

Rep: Reputation: 15
network

as you said that you have made the neccessary arrangements in the file
you just need to have your NETWORK service started and it will do the rest

try this
"""chkconfig network on"""
and then check status of network on each runlevel by

"""chkconfig --list | grep network"""

here runlevels are denoted as numbers and status by ON/OFF

NETWORK SHOULD B ON AT 3 & 5 runlevels atleast

yours
anant
 
  


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
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 02:55 PM
Activate USB WiFi on startup on Fedora Core 4 xxrsc Linux - Wireless Networking 1 11-26-2005 08:30 PM
Unable to activate eri0 and ce0 interfaces Elec490 Linux - Networking 0 08-29-2005 05:14 PM
my WMP11 works but wont activate at startup. xtightypantsx Linux - Wireless Networking 2 02-17-2004 04:38 PM
Failed to activate 'OAFIID:GNOME_SettingsDaemon *Comes up at startup* gabesolerNY Linux - Software 6 08-18-2003 01:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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