dhcpcd-discuss

Odd Issue

Rich

Sun Sep 19 00:57:35 2010

 Hi

I'm experiencing something very odd with IP address assigned to eth0.
To start, I'm using Slackware64 13.1 current. I then d/l the current snapshot
and tried with similar results.

Dhcpcd appears to retrieve the IP 192.168.1.101,
and establishes a connection. I am able to connect to internet fine (no conflicting IP yet). However, when I check ifconfig, the IP address is incorrect (keeps using last known IP).

I removed the lease files.
I tried cycling my router, but no change.

It appeared after I decided to use a static IP for a bit,
then switched back.  I didnt pay much attention to it,
until my wife started having print issues - the IP keeps refreshing lease
every time the machine is rebooted. This also affects apache as the http
server address has changed.  I was thinking of changing it to static
just to avoid this. (just curious why ifconfig IP is not refreshing)

Are there any cached routing tables?
I was able to repeat it as follows:

> dhcpcd -d -t 10 eth0
> ifconfig eth0 192.168.1.115
> dhcpcd -k eth0
> ifconfig eth0 down
> dhcpcd -d -t 10 eth0

The IP assigned will be the 192.168.1.115, even though dhcpcd leased another. I can connect, resolve, and ping fine - as long as I never encounter another IP already used.
Possibility of duplicate IP is high.

Thanks - let me know if you need any other logs to help

Regards
Rich


dhcpcd[7050]: version 5.2.7 starting
dhcpcd[7050]: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT dhcpcd[7050]: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[7050]: eth0: broadcasting for a lease
dhcpcd[7050]: eth0: sending DISCOVER (xid 0x9404342f), next in 4.91 seconds
dhcpcd[7050]: eth0: offered 192.168.1.101 from 192.168.1.1
dhcpcd[7050]: eth0: sending REQUEST (xid 0x9404342f), next in 4.46 seconds
dhcpcd[7050]: eth0: acknowledged 192.168.1.101 from 192.168.1.1
dhcpcd[7050]: eth0: checking for 192.168.1.101
dhcpcd[7050]: eth0: sending ARP probe (1 of 3), next in 1.98 seconds
dhcpcd[7050]: eth0: sending ARP probe (2 of 3), next in 1.15 seconds
dhcpcd[7050]: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd[7050]: eth0: leased 192.168.1.101 for 3932100 seconds
dhcpcd[7050]: eth0: adding IP address 192.168.1.101/24
dhcpcd[7050]: eth0: adding route to 192.168.1.0/24
dhcpcd[7050]: eth0: adding default route via 192.168.1.1
dhcpcd[7050]: eth0: writing lease `/var/lib/dhcpcd/dhcpcd-eth0.lease'
dhcpcd[7050]: eth0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd[7050]: forking to background
dhcpcd[7050]: forked to background, child pid 7079

> ifconfig

eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: xxxxx/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4487 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5305 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2209842 (2.1 MiB)  TX bytes:636558 (621.6 KiB)
          Interrupt:26 Base address:0xe000





Follow-Ups:
Re: Odd IssueRoy Marples
Archive administrator: postmaster@marples.name