LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   connect to internet via dhcp at boot? (https://www.linuxquestions.org/questions/linux-software-2/connect-to-internet-via-dhcp-at-boot-584059/)

okos 09-12-2007 12:04 AM

connect to internet via dhcp at boot?
 
Hi guys
Quick question. Im a noobie.

I just reinstalled slack 12 and now it will not connect to the internet at boot.

I connect via commandline:
ifconfig eth1 up
dhcpcd eth1

How do I do this automatically at boot?

thanks
okos

Nylex 09-12-2007 12:19 AM

Set USE_DHCP to "yes" in your /etc/rc.d/rc.inet1.conf for interface 1.

okos 09-12-2007 03:59 PM

Thanks for the help.
 
Quote:

Originally Posted by Nylex (Post 2889337)
Set USE_DHCP to "yes" in your /etc/rc.d/rc.inet1.conf for interface 1.

Since I am still learning slackware:)
As a work around I had put
ifconfig eth1 up
dhcpcd eth1
In the rc.local file
However...
I discovered the problem.
When I nano /etc/rc.d/rc.inet1.conf, use_dhcp="yes" was set for eth0.
For some reason my computer does not recognize eth0 but eth1. So I set yes to eth1.
Now it works!

Thanks for your great help!
okos


All times are GMT -5. The time now is 04:56 PM.