LinuxQuestions.org
Help answer threads with 0 replies.
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 08-15-2007, 02:11 PM   #1
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 23

Rep: Reputation: 16
cannot get IP from DHCP server running on DSL-584T during ArchLinux install


I have ADSL modem D-Link DSL-584T with running DHCP server on it (it's ADSL modem and switch together).

Trouble is that I can't get IP from that server during ArchLinux (Don't Panic) installation on my notebook. The dhcpcd deamon send DHCP_DESCOVER, but don't receve any response after 20secs.

The strange thing is, that I had Ubuntu Drapper on the same computer before and everything works fine.

Network card works well - I can ping localhost and computer's IP adress. But I can't ping another computers in network (which have no problem with getting IP from DHCP).

In DHCP Clients List is MAC adress of my network card, so I guess DHCP receive the application for IP from my notebook and probably send something back. I tried insert IP manually, but it didn't work. I also tried make Static IP for my notebook in DHCP server.

It is possible, that problem will be in dhcp client? Ubuntu use this> Package: dhcp (2.0pl5-19.4) [universe]
but Arch Linux this> dhcpcd-1.3.
(I just guess, I don't know much about linux and packages.)

I wanted to try ArchLinux on my notebook, but I would never imagine, that I will have problem with getting IP from DHCP

I know it's hard to advise something. But I am pretty sure that problem will be in DHCP clien. It is possible that some DHCP clients and servers don't "understand" each other?

Thanks
 
Old 08-15-2007, 03:32 PM   #2
sparc86
Member
 
Registered: Jul 2006
Location: Joinville, Southern Brazil
Distribution: Debian, CentOS
Posts: 296

Rep: Reputation: 31
I don't know exactly what is going on.

But, if you want to establish an static IP, you could disable your DHCP client, to set a static IP and a route (which is your routers IP).

#ifconfig eth0 192.168.0.2 netmask 255.255.255.0


#route del default
#route add default gw 192.168.0.1



Use this example and change it according with your network.

It should works.

Last edited by sparc86; 08-15-2007 at 03:33 PM.
 
Old 08-15-2007, 04:00 PM   #3
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 16
OK, thanks for reply.

I specify my question: Ubuntu installation can get IP from DHCP in my local network, but ArchLinux installation can't.
It's strange, because it's same hardware in same situation and I am sure that Arch has loaded all modules properly. So I think problem is in DHCP client. It is possible or linux has just one client?
 
Old 08-15-2007, 04:20 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Now pinging localhost means nothing here. What IP did you ping on the laptop?
Is the network card working?
What model is the nic?
What module is it using?

Brian
 
Old 08-15-2007, 04:38 PM   #5
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 16
I use Edimax EP-4103DL. I can do this:

ifconfig eth0 10.0.0.4 netmask 255.255.255.0

and then

ping 10.0.0.4

and i get pings under 0.1ms. I cant copy&paste it, sorry.

I hope this means that my network card is working... or not?

EDIT:

# hwdetect --show-net
Net : 8139cp 8139too mii ppp_generic slhc

...thats loaded modules for net

Last edited by lajner; 08-15-2007 at 04:49 PM.
 
Old 08-15-2007, 04:47 PM   #6
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
So what is missing is the gateway. Difine that and it should work.
Also I assume only on nic interface is present and is up. If more than one exist and is up turn it off first.

Brian
 
Old 08-15-2007, 05:20 PM   #7
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 16
I set route and it didn't work.

Trouble is that I don't want to set up network manualy. I want to get information from DHCP. From another PC, which has no problem with DHCP, I tried insert manually its IP, mask, gateway and DNS and everything was good. The same thing I did on my laptop without success (I am quite familiar with commands ifconfig and route - I guess I have done it right).

I thought that D-Link do some "strange" things in network. I suspected DHCP, but problem is probably elsewhere, because setting IP (and other network setting) manually should work.

Solution will be somewhere in dark dusty corners of linux kernel

I giving it up - but please, my last only question: It is possible, that dhcpcd can't get information from some correctly working dhcp server? (E.g. because of different versions, standard, protocols or something...)

Thanks again
 
Old 08-15-2007, 05:47 PM   #8
jdavis2
Member
 
Registered: Feb 2007
Distribution: Fedora, Mandrake, Knoppix, Windows XP
Posts: 37

Rep: Reputation: 15
Could you by any chance have a firewall turned on which could be rejecting return traffic?
 
Old 08-15-2007, 06:06 PM   #9
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 16
I guess not, because I work in ArchLinux shell, which is avaible during installation (like liveCD or something).

I tried different network card - and it's still the same. But what drives me crazy is, that in DHCP Clients List on D-Link is MAC adress of network card in laptop and assigned IP for that MAC. But when I set that IP manually, it won't help. It looks like DHCP works properly, netword card at least can send some data but dhcpcd doesn't get it, but still be there some another problem, because manual setting of IP doesn't work too.

This is out of my knowledge about networks and linux

Last edited by lajner; 08-15-2007 at 06:07 PM.
 
Old 08-15-2007, 08:27 PM   #10
sparc86
Member
 
Registered: Jul 2006
Location: Joinville, Southern Brazil
Distribution: Debian, CentOS
Posts: 296

Rep: Reputation: 31
try to use the following command:

#iptables -t filter -L

Now please copy us what you get.
 
Old 08-16-2007, 04:08 AM   #11
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 16
In IP tables are no rules. I get:

PHP Code:
#iptables -t filter -L
Chain INPUT (policy ACCEPT)
target   prot  opt  source        destination

Chain FORWARD 
(policy ACCEPT)
target   prot  opt  source        destination

Chain OUTPUT 
(policy ACCEPT)
target   prot  opt  source        destination 

Last edited by lajner; 08-16-2007 at 04:13 AM.
 
Old 08-16-2007, 05:40 AM   #12
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 16
I changed my opinion. Trouble will be probably in loaded modules. I thought that when I could assign and ping my IP, I have all modules loaded and my network card is working good. But I eject network card from PCMCIA slot and I could still ping and change IP and everything.

So is it in linux some easy way how to figure out that network card is working good? I mean without connection to some network of course.
 
Old 08-16-2007, 06:02 AM   #13
jdavis2
Member
 
Registered: Feb 2007
Distribution: Fedora, Mandrake, Knoppix, Windows XP
Posts: 37

Rep: Reputation: 15
I have re-read your post and have come to the conclusion that maybe I am too new at this this game to be of use to you and have decided that it is I who needs your help.

You say that you are trying to get an IP address while in the process of installing the operating system?

Why would you need need an IP address before your installation is complete?
What are you trying to do?

Also, you mentioned that you tried to insert an IP address manually. Did try that on the ADSL Modem or the notebook?
 
Old 08-16-2007, 06:20 AM   #14
lajner
LQ Newbie
 
Registered: Oct 2004
Distribution: Debian, Ubuntu
Posts: 23

Original Poster
Rep: Reputation: 16
I need internet because I use net-install (netinst). Well - I would like to use netinst Yes, I admit - maybe I could download whole system, burn it on CD, install and then start solving problems. But I still don't understand, why I couldn't configure internet. And if I couldn't set it up now, later it will be the same.

As I wrote in previous reply - I made mistake when I thought that if I could ping ethernet IP, then everything is good. This was reason, why I started to think that problem is in DHCP server.

But I don't understand system of modules in kernel. All "modprobe" and "lsmod" and "hw-detect" commands are unclear to me. And I can't understand why hardware, which work under older system, suddenly stop working under newer. But I guess I haven't got pcmcia support or something.

Hope I answer you and thanks for your reply
 
Old 08-16-2007, 06:51 AM   #15
jdavis2
Member
 
Registered: Feb 2007
Distribution: Fedora, Mandrake, Knoppix, Windows XP
Posts: 37

Rep: Reputation: 15
Okay, now I understand but I can't help you. I tried to do a net install years ago and never could quite get it to work. Hope it works for you. Have fun.
 
  


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
How To Install A Personal Wiki On ArchLinux ravisghosh Linux - Newbie 1 01-16-2007 01:12 AM
Noob attempt at running SUSE Linux 10 as DHCP/DDNS/NFS/Samba Server Robhemmings Linux - Networking 1 04-12-2006 08:13 AM
DHCP server won't stay running rrwhite Linux - Networking 2 08-14-2004 09:31 PM
Newbie archlinux install, some help please Mindaugas Arch 7 03-30-2004 12:54 PM
running apache server behind DSL Gateway josephswagner Linux - Networking 1 12-07-2002 07:05 AM


All times are GMT -5. The time now is 09:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration