Ubuntu Networking :: Cannot Obtain DHCP Lease ?

Feb 7, 2010

I have a home WiFi network that has been working fine for ages, which currently supports two Windows-based laptops and a WM5 smartphone. They all connect to the WiFi router (Linksys WRT54G) which in turn connects to the ADSL modem (Huawei MT882). The router is configured with a WEP key, the SSID is not being broadcast, and all MAC addresses must be whitelisted. I try to follow good wireless network security practice. I also have NAT running between the router and the modem.

Everything is working fine for the Windows clients, and now I am trying to add my Linux box to the mix. I am setting up an older HP Pavilion 510a desktop with Ubuntu v8.04LTS, using a Realtek RTL8185 WLAN card. The machine has an onboard RTL8139 LAN adaptor also, which works fine when I plug it in directly to an ethernet port on the wireless router. The WLAN, however, does not seem to be getting a DHCP packet, and keeps on autoconfiguring with a 169.254.x.x address. When I try giving it a static IP address it doesn't connect either.

As you can see from the screenshots below, the WLAN is working fine. I have it installed using the ndiswrapper and Windows drivers. I've been through the Comprehensive ndiswrapper troubleshooting guide but that did not resolve my problem.

I configured the network myself, and it works perfectly for my Windows machines. It is just my lack of experience with Linux which is preventing me from getting the wireless to work under Linux. I can get a HDCP packet in Linux when I am connected to the LAN using the RTL8139 adaptor, but not on the WLAN using the RTL8185 adaptor.

View 9 Replies


ADVERTISEMENT

General :: DHCP Negotiations Consistently Fails To Obtain Lease On First Try And Works On Second Try

Jul 16, 2010

I'm having some problems bringing up my wireless card at boot time on my Red Hat Linux 9.0 box. After some investigation with the boot scripts, I noticed that it was having problems with the DHCP negotiations when the ifup wlan0 command is issued.I then tested the command outside of the booting process and everytime the command is issued the first time, the dhclient fails to get any DHCP offers and returns with the message Unable to obtain a lease on first try. Exiting. and then exits.

If I then issue the same ifup command again a second time, it successfully receives a DHCP offer from the router and receives the needed IP address, and after this, the Internet connection on the box works fine. It is consistently doing this everytime. Why is it failing to obtain a lease the first time?

View 1 Replies View Related

Networking :: Configure A (openSUSE) Client To Dhcp To EBox DHCP Server - Lease An IP Address

Mar 25, 2010

I am puzzled with trying to configure a linux (openSUSE) client to dhcp to eBox DHCP server. I am using dhclient to lease an IP address with dhclient eth0 -s 10.45.48.108 and get a response

openSUSE11232CL1 dhclient: DHCPDISCOVER on eth0 to 10.45.48.108 port 67 interval 4
openSUSE11232CL1 dhclient: DHCPOFFER from 10.45.48.108
openSUSE11232CL1 dhclient: DHCPREQUEST on eth0 to 10.45.48.108 port 67
openSUSE11232CL1 dhclient: send_packet: Network is unreachable
openSUSE11232CL1 dhclient: send_packet: please consult README file regarding broadcast address.

The server reports eBox141 dhcpd: DHCPDISCOVER from 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
eBox141 dhcpd: DHCPOFFER on 10.45.200.2 to 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0

I interpret this as the server receives the request and the client accepting it but the lease does not last long and the connection breaks. what this could be and why the connection breaks? Or my undestanding is totally wrong on how it works and should work? And BTW, where is that README file that's referenced in the message I receive on the client?

View 2 Replies View Related

Networking :: Notification From DHCP Client On Lease Change?

Jan 26, 2011

Is there any way to get an async notification (perhaps through something like a Linux message queue or Unix socket) when a DHCP client is either unable to renew its lease, or the address obtained changes from the previous value? I've got the ISC client and will dig into it to determine if it supports such a feature, but thought I'd ask here in parallel. (I'm trying to find out if there are any DHCP clients out there which already support this capability.)

If you're curious: We have an application where we're doing auto-registration of an IP camera to an external server. If the camera's dynamically assigned address changes, we need to restart the auto-reg state machine. I've seen implementations where a socket is opened and a SIOCGIFADDR ioctl used to fetch the IP addr, but I'd sure like to avoid polling like this if possible.

View 1 Replies View Related

Networking :: Redhat Does Not Retry Renewing DHCP Lease More Than Once?

Apr 23, 2010

We have 20+ Redhat servers on our network and every so often our DHCP server goes down. When it comes back up we have to go around to all of our RedHat servers and restart networking manually. Other OS's (Ubuntu, Windows, etc..) will continually try to get a DHCP lease so that when our DHCP does come back up it requires no work from us for them to get back on the network. But it seems that Redhat only tries once and if it fails it never tries again. Have to go around to 20 different servers (some of them are at remote locations) is less then ideal when this happens. how we can get Redhat to continually try to get a DHCP lease like other OS's?

View 1 Replies View Related

Ubuntu Networking :: Ionitx Can't Get Wired Ethernet To Work ( No DHCP Lease )?

Jun 5, 2010

I have a Zotac Ionitx A-U. I can't get it to establish an internet connection with the wired ethernet within Ubuntu. The chip is detected, but trying to bring up the connection stalls out at trying to obtain a DHCP lease, like this:

DHCP DISCOVER ...
DHCP DISCOVER ...
No DHCPOFFERS received
Specs:
Ionitx A-U
Ubuntu 10.04 x64 kernel 2.6.32-22 (also didn't work in 9.10)

[Code]...

View 3 Replies View Related

Networking :: Dhcp Lease Time Algorithm Apparently Imprecise?

Mar 3, 2011

The system I am working on is a xdsl board running Linux kernel 2.6 and receiving dhcp address from a Microsoft XP PC. when looking through the dhclient.leases file I can see there's something wrong with renew time and stuff.strange calculation. as far as you know is this normal? You may find below the dhclient.lease file.

lease {
interface "tap0";
fixed-address 10.0.1.16;
filename "***";
medium "-link0 -link1 -link2";

[code]....

View 2 Replies View Related

Networking :: DHCP Lease Under SuSE Is Not Working., Limited At 10 Minutes?

Jun 22, 2011

I got a strange issue here: We are using ISC DHCP v4 which is default in Open SuSE 11.4. These two options 'default-lease-time' and 'max-lease-time' are set in all subnets, with values between 43200 (12 hours) to 518400 (144 hours). See partial dhcpd.conf below please.Now the lease time from Windows client's ipconfig output is only 10 minutes. Why? (dhcpd on servers restarted many times. ipconfig /release, ipconfig /renew on client run many times)

Code:
lease-file-name "/etc/dhcpd.leases";
default-lease-time 43200; # 12 hours

[code]....

View 1 Replies View Related

OpenSUSE Install :: PXE / Dhcp / 11.2 - Preserve Dhcp Lease On Reinit Of Driver?

Feb 8, 2010

first: PXE flawless bind to dhcp address but put next binding state to free second: when installer calls init script to reinit ethernet driver (e1000 (vmware)) binding fails 11.2 opensuse fail to reinit dhcp with log entry "no free leases" third: when manual set network install works how to preserve dhcp lease on reinit of driver?

View 1 Replies View Related

Ubuntu Networking :: Set Up A Permanent DHCP Lease For My MAC Address - Share Internet ADSL Connection

May 26, 2010

I've set up a permanent DHCP lease for my MAC address. I did this hoping to resolve the fact that I share my Internet ADSL connection with my wife and my daughter (the latter a great bandwidth hog)!

View 5 Replies View Related

Fedora Networking :: DHCP Lease Renewal Failing On Wired Ethernet Connection?

Aug 1, 2010

I'm running an up-to-date Fedora 12 machine with the Gnome desktop (meaning with Network Manager). My network connection is a wired ethernet to a switch which then connects to a Netgear router. For some reason, this machine can't renew its leases with DHCP, so NetworkManager deactivates eth0, taking my machine off the network. I have to click Network Manager and enable eth0, which seems to work every time.

How can I fix it? Here are the relevant bits from /var/log/messages showing a failed DHCP request and then the successful renewal.

Code:
Aug 1 04:00:08 ironton dhclient[12452]: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Aug 1 04:00:08 ironton dhclient[12452]: DHCPNAK from 192.168.1.1
Aug 1 04:00:08 ironton NetworkManager[1261]: <info> (eth0): DHCPv4 state changed reboot -> expire
Aug 1 04:00:08 ironton NetworkManager[1261]: <info> (eth0): device state change: 8 -> 9 (reason 6)
Aug 1 04:00:08 ironton NetworkManager[1261]: <info> Marking connection 'System eth0' invalid because IP configuration expired.

[Code]...

View 5 Replies View Related

Ubuntu Networking :: Wireless Connection Cannot Obtain IP With DHCP

Feb 16, 2010

I have router and wireless card Linksys. Driver are installed correctly for wireless card.

Using WifiRadar I can see the access point is detected.

DHCP woks perfectly for wired lan.

However when I try to connect to the detected access point the ip addres is never retrieved and the connection never established.

I tried most of he basic instructions posted on ubuntu forums, but the problem doesn't seem to be with basic configuration: driver, essid, wep key, etc..

The problem seems to be with DHCP not able to retrieve an IP address from the DHCP server of the router. Of course the router works file with other laptops (windows based) that have wireless card.

I also tried the Network Connections setup part of ubuntu. That one shows the access point by its essid name in the list of wireless network, but when I try to connect it takes sometime and eventually asks for the wep key, which I provide and then it times out and keep asking it. The same wep key works for other pcs.
Can't figure it out. I am using ubuntu 9.10.

Some more details are the following:

1) Here the output from the log file: /var/log/wifi-radar.log

Of course it is set ... and dhcp client works for wired lan anyway.

2) diego@mysuperlaptop:/var/run$ sudo iwlist wlan0 scan [sudo] password for diego:

I tried everything I could think about in the UI windows setting (WifiRadar and Wireless Network Connections) a well in the config files from the shell. I just don't get what the deal is. I am pretty sure it is a DHCP issue but can't figure out what.

View 9 Replies View Related

Ubuntu Networking :: Unable To Obtain DHCP Through Wireless

Feb 17, 2010

Linksys router and an acer aspire one. I have updated to the 9.10 netbook remix and the laptop associates with the router but will not pickup dhcp. If I specify an address then the machine looks like its connected but will not go to a website. I manually inserted dns but still nothing. So I updated to
linux-backports-modules-karmic-generic
linux-backports-modules-wireless-karmic-generic
Still will not use DHCP , I to am using ethernet at the moment. It was working before the update.

View 6 Replies View Related

Networking :: Can't Obtain IP From Wifi Router Using DHCP?

Sep 29, 2010

I installed PCLOS 2010.07 into my laptop and dual booting with windows vista. Now I got a weird problem that is when I connected linux to my wifi router, it cannot obtain IP! (it still work correctly in windows, problem just with linux) I had to manually set ip and that worked. Now i wonder what is happening, because I didn't see this problem with PCLOS 2009 borrowed from my friend few months ago.

View 4 Replies View Related

Server :: How To Time Limit A DHCP Lease

May 9, 2011

I would like to be able to schedule a limit for an IP connection for my kid's computers/iPods. Since I know the MAC addresses of their various hardware items, is there a way to shut down their connectivity at a particular time via the DHCP server or perhaps a firewall rule?

Running Ubuntu 10.04 and Shorewall is being used for the firewall.

View 4 Replies View Related

Slackware :: DHCP Server Is Not Offering A Lease (WEP Network)?

Mar 28, 2010

Looking at var/log/messages below, it looks like I'm not being offered a lease on this particular network. I can successfully connect to the network because iwconfig wlan0 reveals my network ssid and the access point I'm connected to. But pinging google.com gives me nothing..

Code:

root@darkstar:/# tail -f var/log/messages | grep dhcpcd
Mar 28 15:45:42 darkstar dhcpcd[5329]: wlan0: adding IP address 169.254.76.182/16
Mar 28 15:46:13 darkstar dhcpcd[5329]: wlan0: adding IP address 169.254.76.182/16
Mar 28 15:46:44 darkstar dhcpcd[5329]: wlan0: adding IP address 169.254.76.182/16

[code]...

View 1 Replies View Related

CentOS 5 Networking :: CentOS 5 BCM4315 WPA-PSK DHCP Won't Obtain IP Address

Nov 7, 2010

I am having a problem getting a wireless network connection on my DELL laptop running CentOS 5. I have no problem getting a wireless connection when the laptop is booted in Windows XP. I also don't have a problem when booted under CentOS 5 and there is no authentication setup on the wireless router. I only have a problem when I setup authentication. The router wireless log shows the PC connectinng, authenticating, and succeeding authentication.I am using the Broadcom Hybrid-wl wireless driver.

View 19 Replies View Related

OpenSUSE Network :: Using As A Network Gateway - Renew DHCP Lease

Jul 15, 2010

Why trying to avoid ranting about my Linksys router, I'll try and keep things short. I have a Linksys router in which the default firmware was terrible and would not correctly renew its DHCP lease. After getting feed up with that I flashed dd-wrt on the router and now it works better but randomly DNS queries would stop being resolved. To rule out the chances that it is my ISPs DNS servers I switched my DNS to openDNS, same problem happens (although I have to admit openDNS is a lot better than what my ISP has).

Anyways I'm about feed up with it and about an inch away from drop kicking the thing out my window. To avoid that I figured I will give it one more change and instead of using my Linksys as my network gateway I'll move all of that to my home server, and make the Linksys just an wireless AP. Besides setting up DHCP, DNS, and iptables on the server is there anything else I will need to know and setup on the server to make this work?

Side note anyone using openSUSE for DHCP know if setting up reserved IPs for certain MAC address is possible?

View 2 Replies View Related

Server :: Script For Clearing The Dhcp Server Lease?

Dec 3, 2010

I have a openSUSE10.2(X86-64) Linux DHCP Server in my environment. It has a lot of VM's and Desktop systems which get added continuously. Also, it has a lots of Static-IP entries.Part-IIssue:The DHCP Server stopped leasing the IP's somehow.Workaround:1. Stopped the dhcpd service. (service dhcpd stop)2. Navigated to /var/lib/dhcp/db folder.3. Deleted the "dhcpd.leases" and "dhcpd.leases~" files.4. Recreated the "dhcpd.leases" file. (touch dhcpd.leases)5. Started the dhcpd service. (service dhcpd stop)

View 2 Replies View Related

Ubuntu Networking :: Unable To Get Another Lease, Period

Nov 15, 2010

I've been trying to figure out a strange DHCP problem my girlfriend's having: She can only get (or renew) a DHCP lease once; Subsequent tries timeout. I tried switching from network-manager (which uses dhclient) to wicd (dhcpcd), and noticed a key difference: With wicd, restarting helps (again, works once, then another restart is required). With network-manager, I haven't been able to get another lease, period.

Exploring the dhcpcd case further, I found that suspend/hibernate do not correct the issue; a full restart is required. Neither does `/etc/init.d/wicd restart` help. I don't remember if I tried killing dhcpcd; I'll have to test that. The current workaround is to restart the computer after each disconnect. It's pretty annoying, though, so I'd like to try to collect enough specifics to file accurate bug reports for each dhcpcd and dhclient. Is anyone familiar with these projects? Are these known issues? Any ideas how to hone in a bit? My gut tells me there's some state somewhere that needs to get flushed.

View 2 Replies View Related

Ubuntu Networking :: DHCP Server No Longer Responses To DHCP Requests - Can't Ping Gateway

Oct 22, 2010

Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.

Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address. When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces

Code:

auto lo
iface lo inet loopback
auto vlan100
iface vlan100 inet static

[code]....

why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.

View 6 Replies View Related

Ubuntu Networking :: DHCP Server No Longer Responds To DHCP Requests - Can't Ping Gateway

Jul 1, 2010

Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.

Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address.

When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces

Code:

auto lo
iface lo inet loopback
auto vlan100

[code]....

why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.

View 2 Replies View Related

Ubuntu Networking :: If DHCP Not Available - Fallback And Start DHCP Server?

Mar 8, 2010

Currently I have my eth0 interface getting a DHCP address but at times the DHCP server will not be reachable. Sooo what I would like my server to do is if it cannot find a DHCP server assign a static address to eth0. Then start the DHCP service so it can then dish out some addresses.How can I do this? Surely it is possible

View 2 Replies View Related

Ubuntu Networking :: Automatically Obtain A New IP?

Jan 26, 2010

I have an Ubuntu server running behind a router and I generally manage it from a remote location. I ran into a problem today when I changed the subdomain that the router is on and in turn changed all of the ip addresses for everything on the local network. After restarting the router, I can no longer access the Ubuntu server.

I made sure that I changed the port forwarding settings to reflect the changes in ip addresses. Also the router does not even show the Ubuntu server as having an ip address issued to it. So from that I guess that the server never requested for a new ip after the router restarted. I think I've had this problem before and I ended up restarting the entire server manually. I know that if I restart it, everything should be back to normal. That's what I'll have to end up doing, but I wanted to avoid having this problem in the future, so I was wondering if there is any way to set up the server so that it requests for a new ip address automatically.

View 7 Replies View Related

Networking :: Cannot Obtain An IP Address

Nov 19, 2010

I just installed ubuntu 10.10 on my laptop Dell Inspiron 1525. Wireless internet is not working. I installed wicd network manager and I am able to see the available wireless networks. My wireless connection is encrypted. I have tried all encrypted options with the key but no avail. It says "Cannot obtain an IP address" after validating authentication.

View 4 Replies View Related

Ubuntu Networking :: Cannot Obtain IP Address On Wired Connection

Jan 30, 2010

I am having a persistent problem with getting a wired network connection under a recent install of Ubuntu 9.10. The network manager will show the wired network as 'disconnected' after a restart. This is true whether I am connected directly to my ISP's modem, or through the Linksys router that I usually use.The output of ifconfig suggests that eth0 is not being assigned an IP address:Code:I have reached the limits of my own ingenuity.

View 9 Replies View Related

Ubuntu Networking :: Cannot Obtain IP Address On Wireless Network?

Feb 19, 2010

I believe I have the wireless card installed properly and wicd sees the router. When I try to connect I get an error "can not obtain IP address" Output from iwcongif and lspci is.

dillan@dillan-desktop:~$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.

[code]....

View 9 Replies View Related

Ubuntu Networking :: Cannot Obtain Ip Address With A Particular Wireless Network?

Mar 5, 2010

I'm using Ubuntu 9.10 and I recently changed certain settings of my router. After that ubuntu isnt able to obtain IP address from this wifi network. I've tried to connect with win 7 and OS X and both of the OSes are able to connect to the same wifi network. I tried to connect ubuntu to another wifi network at school and it connected successfully.

View 7 Replies View Related

Ubuntu Networking :: Wicd Unable To Obtain IP Address?

Mar 12, 2010

I have just installed Ubuntu 9.10 (64 Bit) and I'm trying my best to get this Linksys WMP300N wireless adapter to work.I have searched and gone through a number of threads here with some level of progress but I still can not get this to work.Adapter info is BCM43XG [14e4:4329] rev 01I have installed driver bcmwl5.inf using ndiswrapper and ndisgtk.I had absolutely no success trying to use network manager applet so uninstalled it and went with Wicd instead which at least sees my SSID network with a strong signal.My network is encrypted using WPA and I entered the passphrase which seems to pass authentication but it keeps trying to get an IP address until finally it just tosses a failed message.I feel as though I'm really close but it just won't connect.

iwconfig
lo no wireless extensions.
eth0 no wireless extensions.

[code].....

View 9 Replies View Related

Networking :: Cannot Obtain IP Address Under My Profile

May 16, 2010

But i can under an alternate profile. Running ubuntu 10.04 and cannot seem to pin point the problem. When I was doing some looking into it, it appeared that the wpa-supplicant.conf wasn't where the man page indicated it should be. ie /etc/, but then it wouldn't or shouldn't work for the other profile either, right? i tried to post this before but i couldn't find it anywhere.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved