 cfant
join:2003-11-17 San Jose, CA | Problem with DHCP on Linux
Hi!
I know that Linux is not officially supported, but I have a problem getting address with DHCP. I don't have a problem getting address on XP. I have also noticed that lease period is 12hrs.
Regards. |
|
  dslx_gm Premium,VIP join:2002-12-26 Winnetka, CA
| Hi cfant -
I haven't heard of any problems with DHCP and Linux. What distro are you using? Are you having a problem when you try to switch between the XP machine and the Linux machine? If that is the case it may be due to the MAC address of your XP machine binding to the build in our router. One of the easiest ways to resolve that is to add an additional IP address to your account. You can do that by logging into the my account section of our website and adding an another DHCP connection.
-- George General Manager DSLExtreme Will work for reviews.  |
|
 cfant
join:2003-11-17 San Jose, CA
| I have already tried it. I have Fedora Core 2. While it works for a while, the problem occurs when you power off Linux machine. For example, everything works ok in the evening, you power off the machine, and in the morning you can't get the address.Is your server binding to a mac address of the client?
Regards. |
|
  dslx_gm Premium,VIP join:2002-12-26 Winnetka, CA
edit: September 30th, @09:07PM
| Yes the server binds to the Mac address of the client. The lease time in Northern California is currently 15 minutes and throughout the rest of our network is currently 5 minutes. That means that if you tried to plug in a another device with a different MAC address during that lease time it wouldn't get a connection. Since you are waiting overnight that shouldn't be a problem though. I would recommend that you change your settings to have 2 IP connections assigned and see if that helps resolve the problem.
I assume that you are not using a router but going straight from the modem to the computer correct? -- George General Manager DSLExtreme Will work for reviews.  |
|
 suriyan
join:2002-09-25 Belmont, CA
| I use FC4 and havent had any dhcp issues. The only issue I did face was when there was the 4 am outage every morning, which has been resolved a few days ago. By the time the outage ended, dhclient in Linux gives up on acquiring a dhcp address. As a result I wouldnt have an IP on my Linux box when I wake up.
But currently, all is hunky dory. |
|
 cfant
join:2003-11-17 San Jose, CA | reply to dslx_gm What happens in the case where you use a machine with two nic cards and NAT?
WAN -> NIC1 -> PC -> NIC2 -> local lan |
|
 suriyan
join:2002-09-25 Belmont, CA | cfant, I havent tried the combination that you have described above. But for debugging your dhcp related issues, please grep for dhclient in /var/log/messages. Failures/Successes can be seen there, which can help you hone in on the problem. |
|
 cfant
join:2003-11-17 San Jose, CA
| Here is the log when everything works:
Oct 2 20:07:41 dhclient[263]: DHCPREQUEST on fxp1 to 68.183.26.1 port 67 Oct 2 20:07:42 dhclient[263]: DHCPACK from 68.183.26.1 Oct 2 20:07:42 dhclient[263]: bound to 68.183.26.130 -- renewal in 450 seconds.
fxp1 has the MAC address from XP machine,
xp -> hub -> fxp0 -> firewall -> fxp1 -> wan
To me it loks like I have only one address, since I am always able to get the IP address when using XP. Just one more thing, I have allocated three addresses in my account web page.
Regards. |
|