LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-05-2006, 11:45 PM   #1
FishFoot
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
DHCP Deactivated but requests for lease fill logs and eventually succeed


I have a new server running Ubuntu Dapper 6.06. I had the system connected to a LAN with a network address of 192.168.1.1/24 where it had a DHCP assigned IP address of 192.168.1.145.

I have a second network with the address 192.168.2.1/24. I moved the system onto this network but assigned it the static IP addressd 192.168.2.200 by modifying the /etc/network/interfaces file. It now reads:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0

#DHCP setup for 192.168.1.1/24
#iface eth0 inet dhcp

#Network 2 192.168.2.1/24
iface eth0 inet static
        address 192.168.2.200
        netmask 255.255.255.0
        network 192.168.2.0
        broadcast 192.168.2.255
        gateway 192.168.2.1
Everything was chugging along nicely until about 3pm today when the machine disappeared from the network. When I went looking for it I found it at 192.168.2.2, a DHCP assigned address.

This lead me into the /var/log/syslog where I found a continual stream of messages about DHCP:
Code:
Oct  5 06:25:33 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:27:18 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:27:38 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:27:46 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:27:59 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:28:42 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:31:25 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:32:12 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:32:26 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:33:48 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:34:28 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:34:49 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:35:00 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:35:15 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:38:54 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:39:07 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:40:41 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:43:06 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:45:29 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:46:16 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:46:28 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:48:25 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:49:09 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:51:30 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:51:47 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:52:47 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:52:58 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Oct  5 06:54:08 computer1 dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
...
This obviously fails because there is no 192.168.1.1. Then strangly and seemingly randomly the requests start calling 255.255.255.255 and again, at a seemingly random point, it succeeds.
Code:
Oct  5 15:01:16 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:01:31 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:02:13 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:02:22 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:02:35 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:02:43 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:02:52 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:03:02 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:03:17 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:05:35 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:05:43 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:06:02 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:06:48 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:08:06 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:08:17 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:08:34 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:09:04 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:09:16 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:09:32 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:09:43 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:10:01 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:10:19 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:11:58 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:12:16 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:12:21 computer1 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Oct  5 15:12:23 computer1 dhclient: DHCPOFFER from 192.168.2.1
Oct  5 15:12:23 computer1 dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  5 15:12:23 computer1 dhclient: DHCPACK from 192.168.2.1

I thought I had disabled DHCP in the /etc/network/interfaces but...

Does anybody know what gives?

Thanks
-FishFoot
 
Old 11-26-2006, 11:34 AM   #2
ghost45
LQ Newbie
 
Registered: Nov 2006
Posts: 1

Rep: Reputation: 0
DHCP Deactivated but requests for lease fill logs and eventually succeed

Your Network address has the same (root) IP address as my Wireless Router
(192.168.2.1) which is my router's "Internet Access" with my ISP. My security software recently alerted me that my computer was being attacked and the attempt was blocked (from 192.168.2.1/67). I searched Google.com and your message/notes came up with this 'strange' coincidence. I would recommend you change your IP address(es) and port(s) addresses to avoid this conflict in the future.
 
Old 11-26-2006, 11:11 PM   #3
elmr007
Member
 
Registered: Aug 2006
Location: Texas
Distribution: FC6
Posts: 60

Rep: Reputation: 15
Crap!!what am I going to do!?! my LAN is on 192.168.2.1 lol just kidding Ghost45, Fishfoot's address has nothing to do with your problem. There are thousands of computers in the world with that address. port /67 is for dhcp, tcp, and udp protocals.

Fishfoot, on the machine that is running dhcp, you can edit the dhcp.conf file so that it always passes out the address 192.*.*.200 to the second linux box. Look in the Dhcp.conf file I believe it actually says something about printers "apearing at a static address" but it works for both. I use it so my wireless routers stay at a specific address (so i can find them).
 
Old 11-26-2006, 11:18 PM   #4
elmr007
Member
 
Registered: Aug 2006
Location: Texas
Distribution: FC6
Posts: 60

Rep: Reputation: 15
sorry that was /etc/dhcpd.conf not /etc/dhcp.conf
 
  


Reply

Tags
dhcp, ip, network, static


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Requesting a new DHCP lease raypen Linux - Networking 2 06-07-2006 10:19 PM
Cannot obtain DHCP lease TroelsSmit Linux - Newbie 24 06-18-2005 04:32 AM
NFS-requests fill up memory. atlesn Linux - Networking 0 11-29-2004 03:17 PM
DHCP Lease Delete! kofi Linux - Networking 2 07-29-2004 08:00 PM
Renewing DHCP Lease JimKyle Linux - Networking 10 07-18-2004 07:54 PM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration