On 18.8.20 19.43, Hans-Werner Kneitinger wrote:
> Am 18.08.20 um 09:38 schrieb Hans-Werner Kneitinger:
> Sorry for german, let me ask in my very unused school englisch.
>
>> Hallo zusammen,
>> ich käpfe hier mit einem sonderbaren Problem Mein RPi 4 hat kein Default
>> GW gesetzt.
>
> I Have a strange Problem with my Pi4 and latest fresh installed
> Raspberry OS.
>
>> Auf einem älteren Pi läuft dnsmasq. Dort ist u.A. die Option 3 für das
>> StandarsGW mit der IP Adresse gesetzt.
>
> An older RPi is setup as an DHCP/DNS Server via dnsmmasq. The dhcp option 3
> is set to the IN-GW IP.
>
>> Aktuelles RaspiOS IP via DHCP. In der dhclient.conf wird u.A. auch eine
>> request auf routers gemacht.
>
> The RPi4 requests via dhclint.conf the routers, too.
>
>> Dem dnsmasq.log nach, wir das GW angefragt und auch gesendet. Es scheint
>> aber nicht vom Rpi4 übernommen zu werden.
>
> As the dnsmasq.log shows, there is a request for the router and it is
> answerde corectly. But on the RPi4 it is not set. Other options like
> domain or other routes are set.
>
>> Nach Eingane von "route add default GW " hat der Pi4 bis zur
>> nächsten DHCP Anfrage das DefaultGW und kann ins IN.
>
> Doing "route add defaukt gw " manually did the job until leastime
> ended and next dhcp requst is done by the RPi4
>
>> Andere Parameter werden übernommen. Andere Geräte scheinen kein Problem
>> zu haben. An einer anderen Stelle im Netzwerk hinter einem anderen
>> Router bekommt der Pi sein default GW.
>
> Other devices do well, RPi did well on an other segment in the network
> with an other router DHCP/DNS.
>
>> Das hier
>> http://www.elektronik-kompendium.de/sites/raspberry-pi/2008011.htm habe
>> ich schon gefunden, ich werde aber aus den vielen Lösungsmöglichkeiten
>> nicht ganz schlau. Da der Pi im Netzwerk manchmal umzieht, ist ein
>> statisches Default GW nicht wirklich hilfreich.
>
> I found some Information abaut Network problems, but did not find a
> usefull answer. Setting a static defaukt gw via script at boot is no
> option in my usecase.
>
>> Wer kann mir bei der Problemlösung helfen und hat einen Rat?
> Have somebody an idea wich can help to figure out the problem or help
> debugging?
If that were mine, I'd start by taking Ethernet trace dumps from
either end of the DHCP exchange, either the client or the server,
to see if the default route is indeed requested and set from the
server.
The tool to capture the traffic is tcpdump, which is pretty good
in displaying what is going on. A still better way would be to
install Wireshark to a desktop computer, get tcpdump grab a .pcap
file and decode it using Wireshark.
The protocol to look at is UDP, ports 67 and 68.
--
-TV
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|