LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2004, 01:52 PM   #1
thomasjor
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
Booting past DHCP without connection


I am having a problem booting up when the ethernet cable is not plugged into eth0. During the boot it will hang when it gets to the DHCP section of startup

Code:
dhcpcd: MAC address = my:mac:add:ress
dhcpcd: MAC address = my:mac:add:ress
dhcpcd: MAC address = my:mac:add:ress
dhcpcd: MAC address = my:mac:add:ress
dhcpcd: MAC address = my:mac:add:ress
(repeats over and over and over)
The next line is typically when I have a connection:

Code:
dhcpcd: IP address = 192.168.0.10x
But I never get beyond the MAC address without connection.

I obviously use DHCP but when I am on the go with my laptop a connection is not always available.

I am looking for a way to help this by either:

A) pressing a combonation of buttons at this point in the boot to skip DHCP
B) shortening the number of tries to 1 or 2

Oh yeah, I am running Slackware 10 (2.6.8 kernel) if that changes the game at all.
 
Old 09-07-2004, 02:18 PM   #2
mindcry
Member
 
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Rep: Reputation: 15
I am not sure how to do this on slackware but you can comment out in the network config file to have it not startup on boot. Then, when you are connected, manually start the interface and it will grab the dhcp address. For an example on a debian machine you can look in the /etc/network/interfaces file or on a redhat machine you will see the option in /etc/sysconfig/network-scripts/ifcfg-ethx.
 
Old 09-07-2004, 03:47 PM   #3
thomasjor
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
That sounds like it would work, but certainly there must be a better way. I've personally seen linux machines that skip over eth0 if it is not connected I just don't know how it did it.

Anyone ?
 
Old 09-29-2004, 05:19 PM   #4
juicejar
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
Look at /etc/rc.d/rc.inet1/conf and you will have your interfaces listed here. Change this USE_DHCP[X] = ""

The default one will have USE_DHCP[0] = "yes" This was my wired card to it will hang when i was portable on my laptop. If you change this to "" for the 0 card and say your wireless card is eth1 then make the rc.inet1.conf have USE_DHCP[1] = "yes"
I now don't see any dhcpcd: Mac Address = macaddy.

But after logging as root I can do ifconfg and now my wireless card received an ip address so this should fix your problem. It fixed mine.

juice
 
  


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
DHCP, dual booting, etc... Synchronium Linux - Newbie 2 07-23-2004 04:36 PM
booting eth0 with DHCP ridertech Linux - Networking 5 02-19-2004 06:25 PM
Linux not booting past kernel startup jturck Linux - General 2 01-16-2004 08:20 AM
Starting dhcp when booting jaypeasy Linux - Networking 1 07-22-2003 08:32 AM
RH is not booting past pcmcia. defed Linux - Software 2 03-07-2002 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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