LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2007, 12:04 AM   #1
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
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
 
Old 09-12-2007, 12:19 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Set USE_DHCP to "yes" in your /etc/rc.d/rc.inet1.conf for interface 1.
 
Old 09-12-2007, 03:59 PM   #3
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
Thanks for the help.

Quote:
Originally Posted by Nylex View Post
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

Last edited by okos; 09-12-2007 at 04:01 PM.
 
  


Reply



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
connect to internet w/ dhcp but don't know route info towsonu2003 Linux - Wireless Networking 5 10-13-2005 07:51 PM
connect to internet without dhcp client snip128 Linux - Networking 2 07-06-2005 04:29 AM
DHCP and client cant connect to internet RahJiggah Linux - Networking 17 12-28-2004 12:13 AM
Can't connect to the Internet with DHCP 1kyle Linux - Networking 3 11-17-2004 03:09 AM
dhcp is ok but can't connect to internet zeroboys Linux - Networking 15 04-29-2004 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:17 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