FS#15404 - [dhcpcd] dhcp client receives a strange ip
Attached to Project:
Arch Linux
Opened by Dmitry (veranyon) - Monday, 06 July 2009, 14:35 GMT
Last edited by Ronald van Haren (pressh) - Sunday, 12 July 2009, 16:30 GMT
Opened by Dmitry (veranyon) - Monday, 06 July 2009, 14:35 GMT
Last edited by Ronald van Haren (pressh) - Sunday, 12 July 2009, 16:30 GMT
|
Details
Description:
dhcp client receives a strange ip. Not the same as in the other OS Linux / etc. Under archlinux, I see that the dhcp server gives me an ip address on the same subnet as before, but with a different "tail". For example I receive 10.32.76.254 address (openSuSE, FreeBSD, win). But under Archlinux OS I always get the address 10.32.76.220. hardly. why, mac address all the same. Additional info: I watch that one on any Archlinux. Prior to the upgrade and after upgrade The config file of dhcp client is standart. There won't any changes. my rc.conf config file: # LOCALE="ru_RU.utf8" HARDWARECLOCK="local" USEDIRECTISA="no" TIMEZONE="Europe/Moscow" KEYMAP="us" CONSOLEFONT=cyr-sun16 CONSOLEMAP= USECOLOR="yes" MOD_AUTOLOAD="yes" MODULES=(vmnet vmmon vmci ip_nat_ftp ip_nat_pptp ip_conntrack_ftp ip_conntrack_irc) USELVM="no" HOSTNAME="estaf" eth0="dhcp" INTERFACES=(eth0) DAEMONS=(acpid syslog-ng network iptables net-profiles crond cups) #########the end############## my /etc/host.conf file order hosts,bind multi on ############################### /etc/hosts 127.0.0.1 localhost.localdomain localhost estaf ethernet card: rlt8139 Steps to reproduce: /etc/rc.d/network restart Thanks |
This task depends upon
Closed by Ronald van Haren (pressh)
Sunday, 12 July 2009, 16:30 GMT
Reason for closing: None
Additional comments about closing: Thanks Roy for clearing things up.
Sunday, 12 July 2009, 16:30 GMT
Reason for closing: None
Additional comments about closing: Thanks Roy for clearing things up.
I think that a better place to your question is in forums. More people read it.
Good Luck!
People were advised to make dumping for that connections (when the client are connecting to dhcp server). But, I do not have an intermediate router that would compare archlinux' asks to srv.. with the other operating system. whet that other OS are connecting to server.
maybe because dhcp client sends different hostname? So dhcp server assign other IP.
I was changing that one.. many/much times
for example I can change my hostname on openSUSE/Slackware and have 10.32.76.254 address anyway. not 10.32.76.220
our provider take ip's by mac. it's hard moment. I had see my mac under arch. it's = mac who I see and under any other OS Linux/BSD/win.
I installed dhclient now, but how do I to "switch" to it.
I tried to uninstall dhcpcd:
pacman -R dhcpcd
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: netcfg: requires dhcpcd>=4.0
I use netcfg pack for ppp connections. Should it be remove.
as far as your ip, I'm not quite sure what the problem is. dhcpcd seems to assign you a perfectly valid ip adress if I understand correctly? If you want a static ip, why use dhcp altogether?
If I understand it wrong, please try to rephrase your question as from here it doesn't seem to be a problem with dhcpcd.
how much I remember, there are three types of destination addresses using dhcp:
dynamic, which is given to the first free address.
dinamic, with links to mac.
and static to dhcp. last case was not considered.
I have a case number two. That is, if I even managed to put hackintosh, then get the ip, which has already scored in the dhcp server. mac account from my card.
windows, freebsd. any linux distrib.
they all receive the same address.
Provider to be released that "old" ip on the Internet. And I can not get access to the Internet using a different ip. Also, in the dns records, he is tied to my name - estaf.trc.local. To request that the case would be changed - is difficult.
I want to understand why the address is changed by ArchLinux and does not change in any other OS, but still old.
I can from scratch to install some FreeBSD - not even configure the network, but simply run dhcpcd command and I get the old address of 10.32.76.254. From dhcp server. - And this will always be.
Very bad that I do not know English, of course.
No intermediate machines that would make dumping. To see the differences in the query ip with ArchLinux and other operating systems.
Alternatively you could try to request a specific adress with the -r flag (also see the dhcpcd manpage), or a combination of both (or more options).
I'm sorry if I say irrelevant things, I'm just having a hard time understanding the problem.
No, I don't. For example I can install Slacware Linux and set the localhost.localdomain.org name or set noestaf.trc.local name and get 10.32.76.254 address anyway. And I get a train ip.
>Alternatively you could try to request a specific adress with the -r flag (also see the dhcpcd manpage), or a combination of both (or more options).
>I'm sorry if I say irrelevant things, I'm just having a hard time understanding the problem.
I know about it. I do. Exit no.
Just say - I have now installed from scratch any Ubuntu and train I get the old address. Excluding a dns name.
Strange.
Already done so
Alternatively you could try to request a specific adress with the -r flag (also see the dhcpcd manpage), or a combination of both (or more options).
I'm sorry if I say irrelevant things, I'm just having a hard time understanding the problem.
btw, you may want to contact Roy Marples (upstream dhcpcd developer) and link to this bug report, he may just know how you can solve your issue.
Older dhcpcd versions created whats called a DUID and used this to make a ClientID that didn't change, regardless of if the network cards changed in the computer. Anyway, this proved problematic when done by default and dhcpcd-5.x ships with the duid feature off by default. However, I suspect this is your problem.
If the file /etc/dhcpcd.duid exists or there is any reference to duid or clientid in /etc/dhcpcd.conf then remove it.
#cat /etc/dhcpcd.conf | grep duid
#updatedb
#locate duid
#
nothing
hostname
option domain_name_servers, domain_name, domain_search, host_name
option ntp_servers
require dhcp_server_identifier
nohook lookup-hostname
noipv4ll
ifconfig eth0 up
start dumping > dump
dhcpcd
stop dumping
Try this -
Start a dump in a terminal, then in another one do this
dhcpcd -dT eth0
was wrong logs.
next..
killall dhcpcd
ifconfig eth0 down
ifconfig eth0 up
wait 5
dhcpcd -dT eth0
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: broadcasting for a lease
dhcpcd: eth0: sending DHCP_DISCOVER (xid 0x76ddbf9a), next in 4.71 seconds
dhcpcd: eth0: offered 10.32.76.220 from 10.0.0.6
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason TEST
interface=eth0
pid=10410
reason=TEST
skip_hooks=lookup-hostname
new_broadcast_address=10.32.77.255
new_classless_static_routes='192.168.10.0/24 10.32.76.1 192.168.0.0/21 10.32.76.1 10.0.0.0/8 10.32.76.1'
new_dhcp_lease_time=432000
new_dhcp_message_type=2
new_dhcp_rebinding_time=378000
new_dhcp_renewal_time=216000
new_dhcp_server_identifier=10.0.0.6
new_domain_name=users.trc.local
new_domain_name_servers='10.0.0.120 10.0.0.185'
new_ip_address=10.32.76.220
new_network_number=10.32.76.0
new_routers=10.32.76.1
new_subnet_cidr=23
new_subnet_mask=255.255.254.0
/etc/rc.d/network stop
ifconfig eth0 up
wireshark on
dhcpcd -dT eth0
wait ~10
wireshark off > dhcpcd-d-T
wireshark on
dhcpcd
wait ~10
wireshark off > dhcpcd_simple
Does dhcpcd get the correct address if you request it directly?
dhcpcd -dB -r 10.32.76.237
.. be thinking that would make such a ..
ok.
>>time>>
ipconfig /release *
capture eth0 iface on
ipconfig /renew
wait ~10
capture eth0 iface off > out.pcap
>dhcpcd -dB -r 10.32.76.237
# /etc/rc.d/network stop
# ifconfig eth0 up
# dhcpcd -dB -r 10.32.76.254 &
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: rebinding lease of 10.32.76.254
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x175f3679), next in 3.17 seconds
dhcpcd: eth0: NAK: requested address not available from 10.0.0.6
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason NAK
dhcpcd: eth0: broadcasting for a lease
dhcpcd: eth0: sending DHCP_DISCOVER (xid 0x3f896d25), next in 4.84 seconds
dhcpcd: eth0: offered 10.32.76.220 from 10.0.0.6
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x3f896d25), next in 4.59 seconds
dhcpcd: eth0: acknowledged 10.32.76.220 from 10.0.0.6
dhcpcd: eth0: checking for 10.32.76.220
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.08 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.70 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 10.32.76.220 for 432000 seconds
dhcpcd: eth0: adding IP address 10.32.76.220/23
dhcpcd: eth0: adding route to 10.32.76.0/23
dhcpcd: eth0: adding route to 192.168.10.0/24 via 10.32.76.1
dhcpcd: eth0: adding route to 192.168.0.0/21 via 10.32.76.1
dhcpcd: eth0: adding route to 10.0.0.0/8 via 10.32.76.1
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: eth0: sending ARP announce (1 of 2), next in 2.00 seconds
dhcpcd: eth0: sending ARP announce (2 of 2)
ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:54:16:C1
inet addr:10.32.76.220 Bcast:10.32.77.255 Mask:255.255.254.0
inet6 addr: fe80::280:48ff:fe54:16c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1818 errors:0 dropped:0 overruns:0 frame:0
TX packets:1953 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:414681 (404.9 Kb) TX bytes:338346 (330.4 Kb)
Interrupt:17 Base address:0x2c00
there's 220th tail. anyway
Anyway, I think your ISP is using a broken DHCP server implementation.
Try this
dhcpcd -dBI -r 10.32.76.254
ifconfig eth0 up
dhcpcd -dBI -r 10.32.76.254
dhcpcd: version 5.0.4 starting
dhcpcd: 10.32.76.254: interface not found or invalid
(wait 60)
ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:54:16:C1
inet6 addr: fe80::280:48ff:fe54:16c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
.......
ctrl+C
I'm beginning a 10.32.76.219 ip
and now 219. 5th time already
>Anyway, I think your ISP is using a broken DHCP server implementation.
when I have opensuse, so that one was get an 10.32.76.254 too. opensuse, gentoo and slackware.
dhcpcd -dBT -I '' -r 10.32.76.254 eth0
Naming the distro is quite pointless - Slackware uses dhcpcd-3.x, opensuse dhcpcd-4.x with patches and Gentoo dhcpcd-4.x
All of them use other DHCP clients as well, such as dhclient. AFAIK, only dhcpcd is the default on Gentoo.
So if you name a distro also name the DHCP client and version.
ifconfig eth0 up
dhcpcd -dBT -I '' -r 10.32.76.254 eth0
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: broadcasting for a lease
dhcpcd: eth0: sending DHCP_DISCOVER (xid 0x45ec384e), next in 4.88 seconds
dhcpcd: eth0: offered 10.32.76.254 from 10.0.0.6
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason TEST
interface=eth0
pid=7826
reason=TEST
skip_hooks=lookup-hostname
new_broadcast_address=10.32.77.255
new_classless_static_routes='192.168.10.0/24 10.32.76.1 192.168.0.0/21 10.32.76.1 10.0.0.0/8 10.32.76.1'
new_dhcp_lease_time=432000
new_dhcp_message_type=2
new_dhcp_rebinding_time=378000
new_dhcp_renewal_time=216000
new_dhcp_server_identifier=10.0.0.6
new_domain_name=users.trc.local
new_domain_name_servers='10.0.0.120 10.0.0.185'
new_ip_address=10.32.76.254
new_network_number=10.32.76.0
new_routers=10.32.76.1
new_subnet_cidr=23
new_subnet_mask=255.255.254.0
/etc/rc.d/network start
ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:54:16:C1
inet addr:10.32.76.219 Bcast:10.32.77.255 Mask:255.255.254.0
inet6 addr: fe80::280:48ff:fe54:16c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:902967 errors:0 dropped:0 overruns:0 frame:0
TX packets:1972911 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114733323 (109.4 Mb) TX bytes:2100365595 (2003.0 Mb)
Interrupt:17 Base address:0x2c00
If it does, I'll explain why the ISP DHCP server is "broken". I can problem tell you which DHCP server your ISP is using as well ;)
vim /etc/dhcpcd.conf
cat /etc/dhcpcd.conf | grep clientid
clientid
/etc/rc.d/network start
ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:54:16:C1
inet addr:10.32.76.219 Bcast:10.32.77.255 Mask:255.255.254.0
inet6 addr: fe80::280:48ff:fe54:16c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
dhcpcd -d eth0
dhcpcd: open_control: Connection refused
dhcpcd: sending signal 15 to pid 9280
dhcpcd: waiting for pid 9280 to exit
dhcpcd -d eth0
dhcpcd: open_control: Connection refused
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: rebinding lease of 10.32.76.219
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x75617650), next in 3.51 seconds
dhcpcd: eth0: acknowledged 10.32.76.219 from 10.0.0.6
dhcpcd: eth0: checking for 10.32.76.219
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.65 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.54 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 10.32.76.219 for 432000 seconds
dhcpcd: eth0: adding IP address 10.32.76.219/23
dhcpcd: eth0: adding route to 10.32.76.0/23
dhcpcd: eth0: adding route to 192.168.10.0/24 via 10.32.76.1
dhcpcd: eth0: adding route to 192.168.0.0/21 via 10.32.76.1
dhcpcd: eth0: adding route to 10.0.0.0/8 via 10.32.76.1
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: forking to background
killall dhcpcd
process not found
I had made it before "dhcpcd -x eth0" command
/etc/rc.d/network stop
killall dhcpcd
process not found (ok)
/etc/rc.d/network start
:: Starting Network [BUSY] dhcpcd: open_control: Connection refused
ifconfig is showing 10.32.76.219 ip
dhcpcd -x eth0
dhcpcd: open_control: Connection refused
dhcpcd: sending signal 15 to pid 9742
dhcpcd: waiting for pid 9742 to exit
next:
dhcpcd -d eth0
dhcpcd: open_control: Connection refused
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: rebinding lease of 10.32.76.219
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x268791d4), next in 4.11 seconds
dhcpcd: eth0: acknowledged 10.32.76.219 from 10.0.0.6
dhcpcd: eth0: checking for 10.32.76.219
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.87 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.81 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 10.32.76.219 for 432000 seconds
dhcpcd: eth0: adding IP address 10.32.76.219/23
dhcpcd: eth0: adding route to 10.32.76.0/23
dhcpcd: eth0: adding route to 192.168.10.0/24 via 10.32.76.1
dhcpcd: eth0: adding route to 192.168.0.0/21 via 10.32.76.1
dhcpcd: eth0: adding route to 10.0.0.0/8 via 10.32.76.1
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: forking to background
219
rm -f /var/db/dhcpcd-eth0.lease /var/lib/dhcpcd-eth0.lease /var/lib/dhcpcd/dhcpcd-eth0.lease
Then try again.
If it works, remove the clientid option from dhcpcd.conf, remove the lease files and re-test.
killall dhcpcd
process not found (ok)
locate .lease
/usr/man/man5/dhclient.leases.5.gz
/var/lib/dhcpcd/dhcpcd-eth0.lease
rm /var/lib/dhcpcd/dhcpcd-eth0.lease
ls /var/lib/dhcpcd/dhcpcd-eth0.lease
file not found (ok)
/etc/rc.d/network start
open_control: Connection refused
[DONE]
ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:54:16:C1
inet addr:10.32.76.219 Bcast:10.32.77.255 Mask:255.255.254.0
inet6 addr: fe80::280:48ff:fe54:16c1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1661054 errors:0 dropped:0 overruns:0 frame:0
TX packets:3696682 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:203231776 (193.8 Mb) TX bytes:3898469620 (3717.8 Mb)
Interrupt:17 Base address:0x2c00
dhcpcd -x eth0
dhcpcd: open_control: Connection refused
dhcpcd: sending signal 15 to pid 10387
dhcpcd: waiting for pid 10387 to exit
dhcpcd -d eth0
dhcpcd: open_control: Connection refused
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: rebinding lease of 10.32.76.219
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x7be5ca95), next in 4.52 seconds
dhcpcd: eth0: acknowledged 10.32.76.219 from 10.0.0.6
dhcpcd: eth0: checking for 10.32.76.219
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.53 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.06 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 10.32.76.219 for 432000 seconds
dhcpcd: eth0: adding IP address 10.32.76.219/23
dhcpcd: eth0: adding route to 10.32.76.0/23
dhcpcd: eth0: adding route to 192.168.10.0/24 via 10.32.76.1
dhcpcd: eth0: adding route to 192.168.0.0/21 via 10.32.76.1
dhcpcd: eth0: adding route to 10.0.0.0/8 via 10.32.76.1
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: forking to background
219
locate .lease
/usr/man/man5/dhclient.leases.5.gz
/var/lib/dhcpcd/dhcpcd-eth0.lease
dhcpcd -x eth0
rm /var/lib/dhcpcd/dhcpcd-eth0.lease
dhcpcd -d eth0
2. then next:
dhcpcd -x eth0
rm /var/lib/dhcpcd/dhcpcd-eth0.leasedhcpcd -d eth0
dhcpcd: open_control: Connection refused
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: broadcasting for a lease
dhcpcd: eth0: sending DHCP_DISCOVER (xid 0x18a836ca), next in 3.10 seconds
dhcpcd: eth0: offered 10.32.76.219 from 10.0.0.6
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x18a836ca), next in 3.89 seconds
dhcpcd: eth0: acknowledged 10.32.76.219 from 10.0.0.6
dhcpcd: eth0: checking for 10.32.76.219
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.93 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.20 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 10.32.76.219 for 432000 seconds
dhcpcd: eth0: adding IP address 10.32.76.219/23
dhcpcd: eth0: adding route to 10.32.76.0/23
dhcpcd: eth0: adding route to 192.168.10.0/24 via 10.32.76.1
dhcpcd: eth0: adding route to 192.168.0.0/21 via 10.32.76.1
dhcpcd: eth0: adding route to 10.0.0.0/8 via 10.32.76.1
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: forking to background
rm /var/lib/dhcpcd/dhcpcd-eth0.leasedhcpcd -d eth0
dhcpcd -d eth0
dhcpcd: open_control: Connection refused
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: broadcasting for a lease
dhcpcd: eth0: sending DHCP_DISCOVER (xid 0x18a836ca), next in 3.10 seconds
dhcpcd: eth0: offered 10.32.76.219 from 10.0.0.6
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x18a836ca), next in 3.89 seconds
dhcpcd: eth0: acknowledged 10.32.76.219 from 10.0.0.6
dhcpcd: eth0: checking for 10.32.76.219
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.93 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.20 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 10.32.76.219 for 432000 seconds
dhcpcd: eth0: adding IP address 10.32.76.219/23
dhcpcd: eth0: adding route to 10.32.76.0/23
dhcpcd: eth0: adding route to 192.168.10.0/24 via 10.32.76.1
dhcpcd: eth0: adding route to 192.168.0.0/21 via 10.32.76.1
dhcpcd: eth0: adding route to 10.0.0.0/8 via 10.32.76.1
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: forking to background
A last post is right.
Now try requesting the address (-r 10.32.76.254) and/or adding/removing the clientid option to /etc/dhcpcd.conf
So that's 4 possible test combinations.
dhcpcd: version 5.0.4 starting
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd: eth0: rebinding lease of 10.32.76.254
dhcpcd: eth0: sending DHCP_REQUEST (xid 0x23336704), next in 4.10 seconds
dhcpcd: eth0: acknowledged 10.32.76.254 from 10.0.0.6
dhcpcd: eth0: checking for 10.32.76.254
dhcpcd: eth0: sending ARP probe (1 of 3), next in 1.84 seconds
dhcpcd: eth0: sending ARP probe (2 of 3), next in 1.22 seconds
dhcpcd: eth0: sending ARP probe (3 of 3), next in 2.00 seconds
dhcpcd: eth0: leased 10.32.76.254 for 432000 seconds
dhcpcd: eth0: adding IP address 10.32.76.254/23
dhcpcd: eth0: adding route to 10.32.76.0/23
dhcpcd: eth0: adding route to 192.168.10.0/24 via 10.32.76.1
dhcpcd: eth0: adding route to 192.168.0.0/21 via 10.32.76.1
dhcpcd: eth0: adding route to 10.0.0.0/8 via 10.32.76.1
dhcpcd: eth0: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason BOUND
dhcpcd: forking to background
Is manually adding the ip address in the settings?
Try using the arch scripts again.
:: Stopping Network [DONE]
:: Starting Network [DONE]
bash-4.0# ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:48:54:16:C1
inet addr:10.32.76.254 Bcast:10.32.77.255 Mask:255.255.254.0
inet6 addr: fe80::280:48ff:fe54:16c1/64 Scope:Link
yes :)
but the fact of artificially grown lease file. hm.
anyway I show that topic to admin of my ISP.
I know he. Just, sometimes he is difficult to reach.
Great thanks, Roy. And I do not know how I can to repay you, even.
if the lease file won't "autoremoving", just wait, when released this engineer and show him this page.
This is normal behaviour for a DHCP client, as the DHCP server did not NAK the address.
I didn't know what to do then.
@Dmitry: I can close this now I assume?
I didn't change some config files in that OS. I about dhcpcd.conf and other simular files.
If you can, of course.
How to determine the cause of such behavior attribution strange ip?
Where to dig?
The default for dhcpcd-5.x is not to send a ClientID. This matches the behaviour of in-kernel DHCP clients and the dhclient program most other distributions use.
However, the default on Windows and Mac OSX is to sent a default ClientID of Ethernet + MAC address.
The default for early versions of dhcpcd-4.x and earlier was to sent a ClientID, but this proved troublesome for users migrating from dhclient and users running an NFS / where the kernel DHCP hands over to dhcpcd.
Now some DHCP servers make a distinction between a client that sends a ClientID of Ethernet + MAC address and those that don't, even when there is enough information in the DHCP message to construct a default ClientID of Ethernet + MAC address. One such server is ISC DHCPD, which is probably what your ISP uses. Other servers, such as dnsmasq can interchange quite freely between the default ClientID and no ClientID.
Hope this helps, but there is no "bug" here as such to fix.
However, I have added debugging messages to dhcpcd to indicate if it's reading an old lease to try and reuse which may help others in the future.
@Ronald: A topic has been exhausted.