Michael Biebl:

How would I create that (the former)?
https://www.cyberciti.biz/faq/linux-unix-dhcpdump-monitor-dhcp-traffic/

Ah, OK. That's nice and clean. I guess it needs to be done on the client, right? So here we go (attached).

It probably makes sense to involve upstream at this point and file a
corresponding bug report at
https://github.com/systemd/systemd/issues

Wanted to do that first, but it stated: "Bother your distribution if your systemd version is more than 2 behind latest upstream.", so I went here.

Bye...

        Dirk
--
Dirk Heinrichs <dirk.heinri...@altum.de>
GPG Public Key: D01B367761B0F7CE6E6D81AAD5A2E54246986015
Sichere Internetkommunikation: http://www.retroshare.org
Privacy Handbuch: https://www.privacy-handbuch.de
# dhcpdump -i host0 
  TIME: 2019-12-29 15:27:29.476
    IP: 0.0.0.0 (8e:5c:b0:99:be:da) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         1 (DHCPDISCOVER)
OPTION:  61 ( 19) Client-identifier         
ff:0b:89:5b:12:00:02:00:00:ab:11:0a:f3:70:6c:f2:6d:80:1c
OPTION:  55 (  9) Parameter Request List      1 (Subnet mask)
                                              3 (Routers)
                                             12 (Host name)
                                             15 (Domainname)
                                              6 (DNS server)
                                             26 (Interface MTU)
                                             33 (Static route)
                                            121 (Classless Static Route)
                                             42 (NTP servers)
                                            
OPTION:  57 (  2) Maximum DHCP message size 576
OPTION:  12 (  3) Host name                 testhost
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.495
    IP: 192.168.1.102 (be:fa:b7:4:ca:34) > 192.168.1.7 (8e:5c:b0:99:be:da)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.7
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         2 (DHCPOFFER)
OPTION:  54 (  4) Server identifier         192.168.1.102
OPTION:  51 (  4) IP address leasetime      7200 (2h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.1.250
OPTION:  15 (  8) Domainname                altum.de
OPTION:   6 (  8) DNS server                192.168.1.102,192.168.1.103
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.495
    IP: 192.168.1.103 (6:e3:54:3f:e6:27) > 192.168.1.7 (8e:5c:b0:99:be:da)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.7
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         2 (DHCPOFFER)
OPTION:  54 (  4) Server identifier         192.168.1.103
OPTION:  51 (  4) IP address leasetime      7200 (2h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.1.250
OPTION:  15 (  8) Domainname                altum.de
OPTION:   6 (  8) DNS server                192.168.1.102,192.168.1.103
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.496
    IP: 0.0.0.0 (8e:5c:b0:99:be:da) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         3 (DHCPREQUEST)
OPTION:  61 ( 19) Client-identifier         
ff:0b:89:5b:12:00:02:00:00:ab:11:0a:f3:70:6c:f2:6d:80:1c
OPTION:  55 (  9) Parameter Request List      1 (Subnet mask)
                                              3 (Routers)
                                             12 (Host name)
                                             15 (Domainname)
                                              6 (DNS server)
                                             26 (Interface MTU)
                                             33 (Static route)
                                            121 (Classless Static Route)
                                             42 (NTP servers)
                                            
OPTION:  57 (  2) Maximum DHCP message size 576
OPTION:  54 (  4) Server identifier         192.168.1.102
OPTION:  50 (  4) Request IP address        192.168.1.7
OPTION:  12 (  3) Host name                 testhost
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.497
    IP: 192.168.1.102 (be:fa:b7:4:ca:34) > 192.168.1.7 (8e:5c:b0:99:be:da)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.7
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         5 (DHCPACK)
OPTION:  54 (  4) Server identifier         192.168.1.102
OPTION:  51 (  4) IP address leasetime      7200 (2h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.1.250
OPTION:  15 (  8) Domainname                altum.de
OPTION:   6 (  8) DNS server                192.168.1.102,192.168.1.103
---------------------------------------------------------------------------

  TIME: 2019-12-29 15:27:29.498
    IP: 192.168.1.103 (6:e3:54:3f:e6:27) > 192.168.1.7 (8e:5c:b0:99:be:da)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: d7fa1228
  SECS: 1
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.1.7
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 8e:5c:b0:99:be:da:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         5 (DHCPACK)
OPTION:  54 (  4) Server identifier         192.168.1.103
OPTION:  51 (  4) IP address leasetime      7200 (2h)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:   3 (  4) Routers                   192.168.1.250
OPTION:  15 (  8) Domainname                altum.de
OPTION:   6 (  8) DNS server                192.168.1.102,192.168.1.103
---------------------------------------------------------------------------
Dez 29 15:49:16 testhost systemd[1]: Starting Network Service...
Dez 29 15:49:16 testhost systemd-networkd[8942]: Bus bus-api-network: changing state UNSET → OPENING
Dez 29 15:49:16 testhost systemd-networkd[8942]: Bus bus-api-network: changing state OPENING → AUTHENTICATING
Dez 29 15:49:16 testhost systemd-networkd[8942]: timestamp of '/etc/systemd/network' changed
Dez 29 15:49:16 testhost systemd-networkd[8942]: timestamp of '/run/systemd/network' changed
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: New device has no master, continuing without
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Flags change: +UP +LOWER_UP +RUNNING +MULTICAST +BROADCAST
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Link 2 added
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Link state is up-to-date
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: found matching network '/run/systemd/network/10-netplan-host0.network'
Dez 29 15:49:16 testhost systemd-networkd[8942]: LLDP: Started LLDP client
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Started LLDP.
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Setting address genmode for link
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Acquiring DHCPv4 lease
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): STARTED on ifindex 2
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Saved original MTU: 1500
Dez 29 15:49:16 testhost systemd-networkd[8942]: lo: New device has no master, continuing without
Dez 29 15:49:16 testhost systemd-networkd[8942]: lo: Flags change: +LOOPBACK +UP +LOWER_UP +RUNNING
Dez 29 15:49:16 testhost systemd-networkd[8942]: lo: Link 1 added
Dez 29 15:49:16 testhost systemd-networkd[8942]: lo: Link state is up-to-date
Dez 29 15:49:16 testhost systemd-networkd[8942]: lo: Unmanaged
Dez 29 15:49:16 testhost systemd-networkd[8942]: lo: Saved original MTU: 65536
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Adding address: fe80::8c5c:b0ff:fe99:beda/64 (valid forever)
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Gained IPv6LL
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Discovering IPv6 routers
Dez 29 15:49:16 testhost systemd-networkd[8942]: NDISC: Started IPv6 Router Solicitation client
Dez 29 15:49:16 testhost systemd-networkd[8942]: lo: Adding address: ::1/128 (valid forever)
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Adding address: 192.168.1.7/24 (valid for 1h 58min 36s)
Dez 29 15:49:16 testhost systemd-networkd[8942]: lo: Adding address: 127.0.0.1/8 (valid forever)
Dez 29 15:49:16 testhost systemd-networkd[8942]: rtnl: received address with invalid family 129, ignoring
Dez 29 15:49:16 testhost systemd-networkd[8942]: rtnl: received address with invalid family 128, ignoring
Dez 29 15:49:16 testhost systemd-networkd[8942]: Enumeration completed
Dez 29 15:49:16 testhost systemd-networkd[8942]: Bus bus-api-network: changing state AUTHENTICATING → HELLO
Dez 29 15:49:16 testhost systemd[1]: Started Network Service.
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): DISCOVER
Dez 29 15:49:16 testhost systemd-networkd[8942]: NDISC: Sent Router Solicitation, next solicitation in 4s
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=RequestName cookie=2 reply_cookie=0 signature=su error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=method_call sender=n/a destination=org.freedesktop.DBus path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=AddMatch cookie=3 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_32 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=4 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_32 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=5 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_31 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=6 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_31 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=7 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_32 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=8 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1/link/_32 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=9 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Sent message type=signal sender=n/a destination=n/a path=/org/freedesktop/network1 interface=org.freedesktop.DBus.Properties member=PropertiesChanged cookie=10 reply_cookie=0 signature=sa{sv}as error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): OFFER
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): REQUEST (requesting)
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): received message was not an ACK, ignoring
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): ACK
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): lease expires in 1h 59min 57s
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): T2 expires in 1h 44min 59s
Dez 29 15:49:16 testhost systemd-networkd[8942]: DHCP CLIENT (0x64f098b3): T1 expires in 59min 58s
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: DHCPv4 address 192.168.1.7/24 via 192.168.1.250
Dez 29 15:49:16 testhost systemd-networkd[8942]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.157 path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Bus bus-api-network: changing state HELLO → RUNNING
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: Updating address: 192.168.1.7/24 (valid for 2h)
Dez 29 15:49:16 testhost systemd-networkd[8942]: host0: DHCP: No routes received from DHCP server: No data available
Dez 29 15:49:16 testhost systemd-networkd[8942]: Got message type=signal sender=org.freedesktop.DBus.Local destination=n/a path=/org/freedesktop/DBus/Local interface=org.freedesktop.DBus.Local member=Connected cookie=4294967295 reply_cookie=0 signature=n/a error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Got message type=signal sender=org.freedesktop.DBus destination=:1.157 path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=2 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Got message type=signal sender=org.freedesktop.DBus destination=:1.157 path=/org/freedesktop/DBus interface=org.freedesktop.DBus member=NameAcquired cookie=3 reply_cookie=0 signature=s error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.157 path=n/a interface=n/a member=n/a cookie=4 reply_cookie=2 signature=u error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Successfully acquired requested service name.
Dez 29 15:49:16 testhost systemd-networkd[8942]: Got message type=method_return sender=org.freedesktop.DBus destination=:1.157 path=n/a interface=n/a member=n/a cookie=5 reply_cookie=3 signature=n/a error-name=n/a error-message=n/a
Dez 29 15:49:16 testhost systemd-networkd[8942]: Match type='signal',sender='org.freedesktop.login1',path='/org/freedesktop/login1',interface='org.freedesktop.login1.Manager',member='PrepareForSleep' successfully installed.
Dez 29 15:49:16 testhost systemd[1]: Starting Wait for Network to be Configured...
Dez 29 15:49:16 testhost systemd-networkd-wait-online[8944]: ignoring: lo
Dez 29 15:49:18 testhost systemd-networkd[8942]: LLDP: Successfully processed LLDP datagram.
Dez 29 15:49:20 testhost systemd-networkd[8942]: NDISC: Sent Router Solicitation, next solicitation in 8s
Dez 29 15:49:28 testhost systemd-networkd[8942]: NDISC: No RA received before link confirmation timeout
Dez 29 15:49:28 testhost systemd-networkd[8942]: NDISC: Invoking callback for 'timeout' event.
Dez 29 15:49:28 testhost systemd-networkd[8942]: host0: Configured

Reply via email to