LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Unable to resolve address with DHCP enabled (http://www.linuxquestions.org/questions/slackware-14/unable-to-resolve-address-with-dhcp-enabled-584614/)

DaJohnson 09-14-2007 06:57 AM

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!

BCarey 09-14-2007 10:24 AM

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

Alien Bob 09-14-2007 10:42 AM

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

DaJohnson 09-14-2007 01:39 PM

Quote:

Originally Posted by BCarey (Post 2891745)
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.

DaJohnson 09-14-2007 02:08 PM

Quote:

Originally Posted by Alien Bob (Post 2891760)
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.


All times are GMT -5. The time now is 12:50 PM.