LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 08-21-2004, 09:28 PM   #1
cpsully69
LQ Newbie
 
Registered: Aug 2004
Location: Near Cape Cod, MA
Distribution: Fedora Core 3
Posts: 9

Rep: Reputation: 0
dhcpcd not adding default route


Just installed SuSE v9.1 personal on my laptop. Laptop has SMC PCMCIA wireless NIC. Using SMC Barricade Wireless Router, and as DHCP server.

The NIC (eth1) gets an IP address, /etc/resolv.conf gets updated correctly, but the default route of 192.168.2.1 never gets added.

If I enter 'route add default gw 192.168.2.1' everything works just fine.

Couple of things I've noticed:

1. /var/log/localmessages indicates "dhcpcd[PID]: timed out waiting for a valid DHCP server response" and "dhcpcd[PID]: terminating on signal 15"

2. When I look at /var/lib/dhcpcd/dhcpcd-eth1.info, I see the line GATEWAY=192.168.2.1, it's my understanding that this is the response from the DHCP server

3. ps -eaf | grep 'dhc' yields: /sbin/dhcpcd -D -N -t 999999 -B eth0

4. dmesg | grep 'eth1' shows a line that reads "no IPv6 routers present" which seems odd...do I need to dumb linux down to IPv4? I'm certain my SMC Barricade doesn't support IPv6.


I have an eth0 (internal "wired" NIC), but I don't have it plugged in.

I'd love some advice of other places to look for informaiton on this. I'm a bit of a newbie, I haven't used Linux since kernel 0.99! I'm a bit rusty.

I downloaded the ISC DHCP client, but haven't loaded it yet...I'm not ready to give up on this one yet!

Thanks in advance for your help/advice/direction.

Sully

Last edited by cpsully69; 08-21-2004 at 09:55 PM.
 
Old 09-04-2004, 03:45 AM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
if you are getting an ip address and everything else just not a default gateway
then i would conclude that the dhcpd server is not configured properly and is not setup for the gateway.
I would look at the config file for the dhcp server and make sure the line
option routers 192.168.2.1;
was in there.
 
Old 09-07-2004, 09:09 PM   #3
cpsully69
LQ Newbie
 
Registered: Aug 2004
Location: Near Cape Cod, MA
Distribution: Fedora Core 3
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your advice. As I was watching the laptop boot up, I saw a line at the end of the DHCP 'stuff' that stated it was 'waiting on mandatory device' and it showed the MAC address of eth0 (internal NIC). I've been using eth1 (pcmcia wireless card). So, I removed eth0 from the configuration which caused the pcmcia card to become eth0. Now everything works great, I get a default route, IP address and DNS server!

Now I just have to figure out where to configure the dhcpd and do this the 'right' way.

Thanks again!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding dhcpcd to startup? drache777 Linux - Newbie 6 01-18-2005 08:44 PM
Route to subnet exists but I get "Network unreachable" when adding default route fciuffani Linux - Networking 4 08-18-2004 02:11 PM
Adding default route breaks ping howlie Linux - Networking 4 07-29-2003 10:18 PM
Problem with adding default route... Grim Reaper Linux - Networking 1 02-22-2003 07:29 AM
Adding default route on startup? WeNdeL Linux - Newbie 2 01-08-2003 01:00 PM


All times are GMT -5. The time now is 05:20 AM.

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
Open Source Consulting | Domain Registration