Re: can't get ip through dhcp after upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Kevin Old wrote:
>> On Wed, 10 Nov 2004 13:58:07 +0100, Alexander Apprich
>> <a.apprich@xxxxxxxxxxxxxxxxxxxx> wrote:
> [schnip]
>>>>Can you elaborate on "using dhclient"?  I'm having the same problem as
>>>>Ketil with trying to connect to a network.
>>>
>>>Just execute dhclient, and if eth0 is up and a dhcp server is availible
>>>eth0 get its network config assigned. Older RedHats < 8 used to have
>>>pump which did allmost the same.
>>>
>>>If dhclient doesn't work it's probably because a firewall is blocking
>>>DHCP.
>>
>>
>> Ok, it must be the firewall, but I have it disabled.  I've verified
>> this by the "/sbin/service iptables status" which reports "Firewall is
>> stopped".
>>
>> Under "Security" (in the Gnome menu, not sure where) it shows that the
>> firewall is disabled and SELinux is disabled.
>>
>> Any ideas if there's something else somehow blocking the network?
>>
>
> Where is the dhcp server located at, same subnet? Do you have another
> box which gets ist netconfig from the dhcp server? maybe it's an
> issue from something between your box and the dhcp server?
>
>> Thanks,
>> Kevin
>>
>>
>
> Alex
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>
if you execute /sbin/iptables -L, will you see 3 empty iptables-chains with no rules inside? If no, probably your
firewall hasn't properly stopped. If you want to stop firewalling completely, i always use /sbin/service iptables stop

also, if you do /sbin/ifconfig, do you just get lo? or even eth0? what ip-adresses can you see? Just 127.0.0.1?

also, do 'locate dhclient' - do you find those files:

/var/lib/dhcp/dhclient-eth0.leases

in here, you will find some appropiate messages about the lease of your ip, something like:
lease {
  interface "eth0";
 fixed-address 192.168.2.100;
  option subnet-mask 255.255.255.0;
  option dhcp-lease-time -1;
  option routers 192.168.2.1;
  option dhcp-message-type 5;
  option dhcp-server-identifier 192.168.2.1;
  option domain-name-servers 192.168.2.1;
  renew 2 2038/1/19 03:14:07;
  rebind 2 2038/1/19 03:14:07;
  expire 2 2038/1/19 03:14:07;
}
(bad example, fixed ip)

...and...
/etc/dhclient-eth0.conf

this makes your hostname known to your dhcp/dns-servers.
if you don't have a leases-file: try again to start dhclient and look in /var/log/messages, you should get some
entries there.

Roger



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux