LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 01-15-2007, 05:08 PM   #1
ve1drg
Member
 
Registered: Mar 2006
Posts: 50

Rep: Reputation: 15
Smile dhcp getting ip address....


I am running the latest version of slackware (v 11.0) and I am wondering if there is a way to make slackware tell me that it has picked up the dynamic ip address from my ISP.

When I reboot the machine I see it waits for a moment when trying to get the ip address but it would be nice to see that it got it, or that it didn't get it.

If I put the command to call 'rc.inet1' from the rc.local file - than I see when the
ip address is recieved. But not where it normally is run from.

Can anyone tell me if this is possible and if so, what do I have to do to see the ip address being recieved..
 
Old 01-15-2007, 05:45 PM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
as long as the network card is enabled and pluged in

running
ifconfig

from the command line will display the IP Address you have been assigned
 
Old 01-15-2007, 09:20 PM   #3
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Firstly, you should configure /etc/dhcpc/dhcpcd.exe from the sample. That puts out a line whenever an IP is acquired.

Then, which kernel are you running. Out of the box, the 2.4 based system uses hotplug, which does an excellent job of supressing all the messages generated by the scripts that are run as each device has been discovered. So you won't see the message. HA

With 2.6, it should appear just fine.

Cheers.
 
Old 01-16-2007, 06:36 AM   #4
ve1drg
Member
 
Registered: Mar 2006
Posts: 50

Original Poster
Rep: Reputation: 15
Seeing the IP address from dhcpcd

Thanks for your input fellows. It is appreicated.

I am running the kernel provided, right out of the box. 2.4.33.3.
And what I want to see is what is happening at the time of 'boot'.
I know that after the machine comes up I can look at what the ip address is by doing ifconfig eth0/eth1 etc... but I would like to see the system acquiring the ip address while it is coming up.

Right now - I see it sitting there, at the point where it is trying to acquire the address (waiting for the 60 secs) and after that it takes off. Away it goes..

What I did to gain some assurance, was to add rc.inet1 restart to the rc.local file.
That shows me that it gets the ip address or fails. But I would like to do it right and only acquire the address from the rc.M file..

But - apparently kernel 2.4 suppresses all that is happening during boot which means I will never see it picking up the address as long as I run kernel 2.4 ??

What a bummer...

And kernel 2.6 is no good for some of my applications....

Thanks anyway fellows. Your input is appreciated..
 
Old 01-16-2007, 02:19 PM   #5
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
It's not the kernel that supresses eveything, it's hotplug.

Cheers.
 
Old 01-16-2007, 06:21 PM   #6
rje_NC
Member
 
Registered: Nov 2002
Location: Greensboro, NC
Posts: 182

Rep: Reputation: 30
In my experience, if the boot hangs for 60 seconds while trying to acquire an IP address, you can be pretty much assured that it HAS failed. It normally takes less than 3-5 seconds to get an IP address on my systems when everything is working as it should be.

Bob
 
  


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
Set IP address to static from DHCP assigned address jborn Linux - Networking 4 02-02-2007 08:38 PM
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta SUSE / openSUSE 1 06-29-2006 09:48 AM
eth0 ip assigned by dhcp , how would i know the ip address of the dhcp server where.. kublador Linux - Networking 14 05-16-2006 06:33 AM
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 09:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 10:54 PM.

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