View previous topic :: View next topic |
Author |
Message |
mprzybyla n00b


Joined: 07 Aug 2005 Posts: 15
|
Posted: Tue Jul 25, 2006 8:55 pm Post subject: dhcpcd does not obbey dhcp server |
|
|
Hi,
after I use wireless network at work and try to connect to my home wlan, I get te IP number from network at work. Is there a way to force dhcpcd to use the IP assigned by dhcp server? Deleting /ver/lib/dhcpc/* is not a good solution ;P
dhcpcd output:
Code: |
michal-lap ~ # dhcpcd -d eth2
Info, MAC address = xx:xx:xx:xx:xx:xx
Debug, broadcasting DHCP_REQUEST for 172.16.20.116
Debug, broadcastAddr option is missing in DHCP server response. Assuming 192.168.1.255
Debug, dhcpIPaddrLeaseTime=4294967295 in DHCP server response.
Debug, DHCP_ACK received from precz (192.168.1.1)
Debug, broadcasting ARPOP_REQUEST for 172.16.20.116
Info, verified 172.16.20.116 address is not in use
Info, your IP address = 172.16.20.116
Debug, orig hostname = michal-lap
Debug, about to exec "/etc/dhcpc/dhcpcd.exe /var/lib/dhcpc/dhcpcd-eth2.info up"
|
and the network traffic:
Code: |
No. Time Source Destination Protocol Info
9 3.143465 0.0.0.0 255.255.255.255 DHCP DHCP Request - Transaction ID 0x8c487e70
Frame 9 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: IntelCor_3c:3a:95 (00:15:00:3c:3a:95), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
No. Time Source Destination Protocol Info
10 3.153053 192.168.1.1 192.168.1.100 DHCP DHCP ACK - Transaction ID 0x8c487e70
Frame 10 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: ZyxelCom_dd:8c:ce (00:a0:c5:dd:8c:ce), Dst: IntelCor_3c:3a:95 (00:15:00:3c:3a:95)
Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 192.168.1.100 (192.168.1.100)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Bootstrap Protocol
No. Time Source Destination Protocol Info
11 3.153102 IntelCor_3c:3a:95 Broadcast ARP Who has 172.16.20.112? Tell 0.0.0.0
Frame 11 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_3c:3a:95 (00:15:00:3c:3a:95), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)
No. Time Source Destination Protocol Info
12 3.201625 IntelCor_3c:3a:95 Broadcast ARP Who has 172.16.20.112? Tell 0.0.0.0
Frame 12 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_3c:3a:95 (00:15:00:3c:3a:95), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)
No. Time Source Destination Protocol Info
13 3.255513 IntelCor_3c:3a:95 Broadcast ARP Who has 172.16.20.112? Tell 0.0.0.0
Frame 13 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_3c:3a:95 (00:15:00:3c:3a:95), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)
No. Time Source Destination Protocol Info
14 3.305683 IntelCor_3c:3a:95 Broadcast ARP Who has 172.16.20.112? Tell 0.0.0.0
Frame 14 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_3c:3a:95 (00:15:00:3c:3a:95), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)
No. Time Source Destination Protocol Info
15 3.357687 IntelCor_3c:3a:95 Broadcast ARP Who has 172.16.20.112? Tell 0.0.0.0
Frame 15 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_3c:3a:95 (00:15:00:3c:3a:95), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)
No. Time Source Destination Protocol Info
16 3.423957 IntelCor_3c:3a:95 Broadcast ARP 172.16.20.112 is at 00:15:00:3c:3a:95
Frame 16 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: IntelCor_3c:3a:95 (00:15:00:3c:3a:95), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (reply)
|
I use dhcpcd-2.0.8-r2.
regards
m. |
|
Back to top |
|
 |
Zi7 n00b


Joined: 23 Jul 2006 Posts: 43 Location: Provence
|
Posted: Tue Jul 25, 2006 11:17 pm Post subject: |
|
|
I've never seen that in my entire life!  |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Wed Jul 26, 2006 8:40 am Post subject: Re: dhcpcd does not obbey dhcp server |
|
|
mprzybyla wrote: | Hi,
after I use wireless network at work and try to connect to my home wlan, I get te IP number from network at work. Is there a way to force dhcpcd to use the IP assigned by dhcp server? Deleting /ver/lib/dhcpc/* is not a good solution |
You have two options
1) Get the DHCP server to force the specific IP on the client
2) Get the DHCP client to release it's IP every time like so in /etc/conf.d/net
dhcp_eth0="release"
BTW, this is not a dhcpcd specific thing - any dhcp client that remembers it's last IP does the same, like dhclient _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
 |
think4urs11 Bodhisattva


Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Wed Jul 26, 2006 11:13 am Post subject: |
|
|
as UberLord already stated it should be enough to have your dhcp server configured to be authoritative. By default config dhcp servers are (shall be) configured to be non-authoritative - because with that a freshly setup dhcp server in a segment with another dhcp cannot create confusion.
config parameters are
- authoritative for dhcpd
- dhcp-authoritative for dnsmasq _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|