LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   eth0 startup (https://www.linuxquestions.org/questions/linux-newbie-8/eth0-startup-108181/)

delphig 10-24-2003 08:57 PM

eth0 startup
 
When I first setup redhat 7.3 I missed something in the startup
configs from the command line (No X)

Now I have to manually put in

/sbin/ifconfig -a eth0 192.168.1.0 netmask 255.255.255.0

And then start the DHCP with /sbin/dhcpcd -n eth0


How do I automate this.. Which files do I edit?

I must of missed something on the initial install... I can see that
it recognizes the eth0 on the startup but it doesn't load the drivers..

Thanks

quatsch 10-24-2003 10:16 PM

It would some of the startup files in /etc/rc.d

I think the easiest thing to do is to put those two lines in
/etc/rc.d/rc.local
this is the script that gets executed after all the other startup scripts have been executed. If you add the two lines here, they will be executed during boot.


All times are GMT -5. The time now is 06:19 PM.