TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: HANS-WERNER KNEITINGER
from: TAUNO VOIPIO
date: 2020-08-19 16:47:00
subject: Re: RPi4 dont get default

On 19.8.20 10.07, Hans-Werner Kneitinger wrote:
> Am 18.08.20 um 20:30 schrieb Tauno Voipio:
> Thank you for your support.
>
>> ...
>> The protocol to look at is UDP, ports 67 and 68.
>
> It looks ok to me. Here is the client output:
>
> After restart I am beginning with
> --- route
> Kernel-IP-Routentabelle
> Ziel            Router          Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.64    m-router.dmz.kn 255.255.255.192 UG    202    0        0 eth0
> 192.168.2.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0
> ---- end
> Thats OK but missing defaut GW.
>
> --- dhclient -v eth0
> Internet Systems Consortium DHCP Client 4.4.1
> Copyright 2004-2018 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
>
> Listening on LPF/eth0/dc:a6:32:87:69:13
> Sending on   LPF/eth0/dc:a6:32:87:69:13
> Sending on   Socket/fallback
> DHCPREQUEST for 192.168.2.14 on eth0 to 255.255.255.255 port 67
> DHCPNAK from 192.168.2.1
> DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
> DHCPOFFER of 192.168.2.14 from 192.168.2.4
> DHCPREQUEST for 192.168.2.14 on eth0 to 255.255.255.255 port 67
> DHCPACK of 192.168.2.14 from 192.168.2.4
> Warning: The unit file, source configuration file or drop-ins of
> systemd-timesyncd.service changed on disk. Run 'systemctl daemon-reload'
> to reload units.
> bound to 192.168.2.14 -- renewal in 37999 seconds
> --- end
>
> Normaly dhcp/dns at 192.168.2.1 is off. Same result if it is on/off, no
> default GW.
>
>
> Starting tcpdump on the client with capturining udp 67,68 into file. On
> a second terminal doing
>
> --- dhclient -v -r eth0
> Killed old client process
> Internet Systems Consortium DHCP Client 4.4.1
> Copyright 2004-2018 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
>
> Listening on LPF/eth0/dc:a6:32:87:69:13
> Sending on   LPF/eth0/dc:a6:32:87:69:13
> Sending on   Socket/fallback
> DHCPRELEASE of 192.168.2.14 on eth0 to 192.168.2.4 port 67
> Warning: The unit file, source configuration file or drop-ins of
> systemd-timesyncd.service changed on disk. Run 'systemctl daemon-reload'
> to reload units.
> --- end
> Stopping tcpdump
>
> --- dcpdump file
> P (tos 0x0, ttl 64, id 36249, offset 0, flags [DF], proto UDP (17),
> length 328)
>      192.168.2.14.68 > 192.168.2.4.67: BOOTP/DHCP, Request from
> dc:a6:32:87:69:13, length 300, xid 0x1c37e372, Flags [none]
>    Client-IP 192.168.2.14
>    Client-Ethernet-Address dc:a6:32:87:69:13
>    Vendor-rfc1048 Extensions
>      Magic Cookie 0x63825363
>      DHCP-Message Option 53, length 1: Release
>      Server-ID Option 54, length 4: 192.168.2.4
>      Hostname Option 12, length 6: "hoshi2"
> IP (tos 0x0, ttl 64, id 9930, offset 0, flags [none], proto UDP (17),
> length 365)
>      0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from
> dc:a6:32:87:69:13, length 337, xid 0x830907f7, Flags [none]
>    Client-Ethernet-Address dc:a6:32:87:69:13
>    Vendor-rfc1048 Extensions
>      Magic Cookie 0x63825363
>      DHCP-Message Option 53, length 1: Request
>      Client-ID Option 61, length 7: ether dc:a6:32:87:69:13
>      Requested-IP Option 50, length 4: 192.168.2.14
>      MSZ Option 57, length 2: 1472
>      Vendor-Class Option 60, length 45:
> "dhcpcd-8.1.2:Linux-5.4.51-v7l+:armv7l:BCM2711"
>      Hostname Option 12, length 6: "hoshi2"
>      T145 Option 145, length 1: 1
>      Parameter-Request Option 55, length 14:
>        Subnet-Mask, Classless-Static-Route, Static-Route,
> --> Default-Gateway <-- Thats the request for default GW
>        Domain-Name-Server, Hostname, Domain-Name, MTU
>        BR, Lease-Time, Server-ID, RN
>        RB, Option 119
> IP (tos 0x0, ttl 64, id 9930, offset 0, flags [none], proto UDP (17),
> length 576)
>      192.168.2.1.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 548,
> xid 0x830907f7, Flags [Broadcast]
>    Server-IP 192.168.2.1
>    Client-Ethernet-Address dc:a6:32:87:69:13
>    Vendor-rfc1048 Extensions
>      Magic Cookie 0x63825363
>      DHCP-Message Option 53, length 1: NACK
> IP (tos 0xc0, ttl 64, id 26735, offset 0, flags [none], proto UDP (17),
> length 419)
>      192.168.2.4.67 > 192.168.2.14.68: BOOTP/DHCP, Reply, length 391, xid
> 0x830907f7, Flags [none]
> -->   Your-IP 192.168.2.14   <-- Thats the Client IP
> -->   Server-IP 192.168.2.4  <-- Thats my dnsmasq
>    Client-Ethernet-Address dc:a6:32:87:69:13
>    Vendor-rfc1048 Extensions
>      Magic Cookie 0x63825363
>      DHCP-Message Option 53, length 1: ACK
>      Server-ID Option 54, length 4: 192.168.2.4
>      Lease-Time Option 51, length 4: 82800
>      RN Option 58, length 4: 41400
>      RB Option 59, length 4: 72450
>      Subnet-Mask Option 1, length 4: 255.255.255.0
>      BR Option 28, length 4: 192.168.2.255
>      Hostname Option 12, length 6: "hoshi2"
>      Classless-Static-Route Option 121, length 9:
> (192.168.1.64/26:192.168.2.2)
>      T119 Option 119, length 58:
>
868,28026,2667,28261,26996,26990,26469,29187,28261,29696,1388,28515,24940,49156
,1382,29289,29818,866,28536,192,1034,27502,25961,29801,28263,25970,1134,24941,2
5856
>      Domain-Name Option 15, length 18: "dmz.kneitinger.net"
>      Domain-Name-Server Option 6, length 4: 192.168.2.4
> -->     Default-Gateway Option 3, length 4: 192.168.2.1 <-- Thats the
> defaultgw
> --- end
> Seems to be ok, for me.
>
> --- route
> Kernel-IP-Routentabelle
> Ziel            Router          Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.64    m-router.dmz.kn 255.255.255.192 UG    202    0        0 eth0
> 192.168.2.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0
> --- end
> Again, no default GW is set.
>
> Someone an idea whats going wrong?


You are right. It seems that the server behaves.

Do you have other client using the same server, just to check that
they go well?

My experience stops here, I'm using a different DHCP client, dhclient
instead of dhcpcd. Please check the configuration of dhcpcd.

--

-TV

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.