LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Interface card(Ethernet) not sending DHCP requests (https://www.linuxquestions.org/questions/linux-newbie-8/interface-card-ethernet-not-sending-dhcp-requests-321131/)

vishalsethia 05-07-2005 06:58 PM

Interface card(Ethernet) not sending DHCP requests
 
Hi,

I had Fedora Core 2.6.9 installed and I gave yum update to upgrade my kernel. Everything was working fine until i re-booted my machine.

After I rebooted, the grub laoder gave me three options
1) Fedora 2.6.11
2) Fedora 2.6.9
3) Other

And now if i try to log on to Fedora(Both Kernels), my interface card does not send DHCP requests and so I'am unable to connect to the internet.

I found out a way in which i assigned a static IP address and set the gateway address to that of my default gateway ........ in that case ping,traceroute works, but DNS fails.... so if i try google.com, it is unable to resolve the name and hence page not found.

Everything works fine in Windows.

I dont know where I am making a mistake. Any help will be greatly appreciated.


Vishal

exodist 05-07-2005 08:45 PM

try typing dhcpcd -t 10 -d eth0 (or other ethernet card, if you manually configure you know what it is)

Tino27 05-08-2005 12:50 AM

And after running exodist's suggestion, you can verify that the correct DNS servers were set by examing the contents of the /etc/resolv.conf file. You should see "nameserver xxx.xxx.xxx.xxx" entries for each of your DNS servers.

vishalsethia 05-08-2005 01:05 AM

my machine does not have dhcpcd. i tried it using locate /whereis and none of them returned any thing

SML 05-08-2005 01:12 AM

First check that the ethernet card is activated? If not, are modules loaded for ethernet card?

If active, check that you can reach your modem?

Does your modem have the onboard flash memory to get your IP from your ISP?

Some of the following commands may give you some ideas to check. Should be easy to find out what each command is doing ..

#killalll dhcpcd
#ifconfig eth0 down
#dhcpcd eth0
#ifconfig eth0
#lsmod
#netconfig
#/etc/rc.d/rc.inet1 stop
#/etc/rc.d/rc.ient1 start
#dhcpcd
#dmesg | less
#man ifconfig
#cat /proc/pci
#ping 216.239.37.99
#ping www.google.com
#cat /proc/net/dev
#start adsl
#adsl-setup
#adsl-start
#stty
#/sbin/modprobe xxxxx (to load module)
#/etc/rc.d/rc.inet1 eth0_restart
#ifconfig eth0
#./rc.inet1 stop
#./rc.inet1 start
#ifconfig eth0 up

exodist 05-08-2005 01:12 AM

you have to be root to use dhcpcd, it should be in /sbin, if not then eather you have a problem, or your distro uses an alternate meathod for dhcp (unlikely, but I have seen it) if this is the case I do not know the distro-safe way, but you can download the source and compile it yourself.


All times are GMT -5. The time now is 02:50 AM.