LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-14-2007, 05:57 AM   #1
DaJohnson
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
Unable to resolve address with DHCP enabled


I am a Nu B to Linux and have chosen Slackware 12 as OS. My problem is DHCP is not pulling the DNS IP resolution address from my Linksys router.

I have just installed the OS and am using DHCP option for NIC. I have ran Netconfig using the following options attempting to fix issue:

Hostname: workstation
domain: BegTech.com
address scheme: DHCP
DHCP_HOSTNAME: (null)

Upon restart of the OS I login as root and run IFCONFIG:
eth0 gets HWaddr 00:01:..ETC. IPaddress 192.168.1.12 Bcast 192.168.1.255 Mask 255.255.255.0 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1

lo local loopback inet addre:127.0.0.1 Mask: 255.0.0.0
inet6 addr: ::1/128 scope host. up loopback running mtu:1500 Metric:1

I have verified USE_DHCP(0)="yes" in /etc/rc.d/rc.inet1.conf.

/etc/resolv.conf shows BegTech.com and nothing else. I have checked the etc/dhcpc/dhcpcd-eth0.info and it contains all the proper information for my network so i know it is pulling it but I am not able to ping anylocations except 127.0.0.1.

Any input would be greatly appreciated. Thank you.

PS Should I change the domain to the IP of the routers LAN IP?

Thanks agian!
 
Old 09-14-2007, 09:24 AM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,477

Rep: Reputation: Disabled
One thing you could do is manually enter the DNS servers (look on your router for these) in /etc/resolv.conf and then set DHCP_KEEPRESOLV[x]="yes" in rc.inet1.conf.

Brian
 
Old 09-14-2007, 09:42 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,315

Rep: Reputation: Disabled
Hm, not being able to resolve any IP address AND not able to ping anything else but 127.0.0.1 ? Can't you even ping the IP address that your eth0 received from the dhcp server (192.168.1.12)?

To me it sounds like your default route is not set. Try
Code:
route -n
and look if there is a default route. It should look like:
Code:
0.0.0.0    192.168.1.1    0.0.0.0    UG    1   0     0 eth0
(with 192.168.1.1 replaced by the actual IP address of your cable router).
If the default route is not set, the DHCP Server is not relaying this piece of information to your DHCP client.

Eric
 
Old 09-14-2007, 12:39 PM   #4
DaJohnson
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by BCarey View Post
One thing you could do is manually enter the DNS servers (look on your router for these) in /etc/resolv.conf and then set DHCP_KEEPRESOLV[x]="yes" in rc.inet1.conf.

Brian
I used the 192.168.1.1 as my domain setting and now both nameservers show up in the /etc/resolv.conf file. I have also verified the leasetime and reneltime in /etc/dhcpc/dhcpcd-eth0.info to be correct. I am now able to ping the lo and eth0 Iface IP, but still not able to ping the gateway-- still getting Destination Host Unreachable.
Thank you for your reply any other help will be greatly appreciated.
 
Old 09-14-2007, 01:08 PM   #5
DaJohnson
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob View Post
Hm, not being able to resolve any IP address AND not able to ping anything else but 127.0.0.1 ? Can't you even ping the IP address that your eth0 received from the dhcp server (192.168.1.12)?

To me it sounds like your default route is not set. Try
Code:
route -n
and look if there is a default route. It should look like:
Code:
0.0.0.0    192.168.1.1    0.0.0.0    UG    1   0     0 eth0
(with 192.168.1.1 replaced by the actual IP address of your cable router).
If the default route is not set, the DHCP Server is not relaying this piece of information to your DHCP client.

Eric
route -n produces:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

I did notice that when I use route during the destination default listing the system hangs as though it is waiting for something and then reports appropriately. Still I not able to ping past the eht0 Iface. when I ping an IP outside the network or ping the Gateway I get Destination Host Unreachable.

I have installed Slack12 on my laptop now and it runs wonderfully run under root but am not able to get user to see the network infact I am not able to do ifconfig either under user, but I will tackle that after getting the desktop system to work.
Thank you, any other ideas will be greatly appreciated and since I have now gotten one computer up and running in Slack I will be able to better convince the family members to changeUp
Thank you.
 
  


Reply

Tags
dhcp, slackware12


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
Single DHCP server ,to provide the ip address to a MAC address in two different subne alix123 Linux - Software 5 05-08-2007 11:16 PM
Realtek 8139 network not working - DHCP unable to get IP address duryodhan Slackware 18 02-03-2007 08:28 AM
Cannot resolve ip address jules verne Linux - Networking 1 08-09-2006 10:34 AM
Resolve IP to MAC Address TheRealDeal Linux - General 1 12-03-2003 07:16 PM
unable to obtain ip address from dhcp server (Fedora Core 1) zero79 Linux - Hardware 5 11-15-2003 01:42 PM


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