Page MenuHomeVyOS Platform

"monitor dhcp" does not output any DHCP related information
Closed, InvalidPublicBUG

Description

Running monitor dhcp on a productuon router I see no DHCP related messaged, even when there is a lot of traffic accourding to tcpdump:

vyos@vyos:~$ monitor dhcp
08:46:14.359844 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:50:56:80:02:ba, length 300
08:46:15.360480 IP 192.168.189.2.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 300

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202008040823
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

c-po renamed this task from "monitor dhcp" does not outpu any DHCP related information to "monitor dhcp" does not output any DHCP related information.Aug 10 2020, 7:22 AM

"monitor dhcp" parse /var/log/messages and not use tcpdump

tail -f /var/log/messages \
  | awk "/$awkmatch/{ \$5=\"  $1:\"; for (f=5; f<=NF; ++f) {printf(\"%s \", \$f);}; printf(\"\n\") }"

For example, on the server-side, it shows

vyos@vyos:~$ monitor dhcp 
  DHCP: in your dhcpd.conf file for the network segment 
  DHCP: to which interface eth1 is attached. ** 
  DHCP: 
  DHCP: Server starting service. 

  DHCP: DHCPDISCOVER from 50:00:00:03:00:00 via eth0 
  DHCP: DHCPOFFER on 10.0.0.10 to 50:00:00:03:00:00 (vyos) via eth0 
  DHCP: DHCPREQUEST for 10.0.0.10 (10.0.0.1) from 50:00:00:03:00:00 (vyos) via eth0 
  DHCP: DHCPACK on 10.0.0.10 to 50:00:00:03:00:00 (vyos) via eth0 
  DHCP: DHCPDISCOVER from 50:00:00:02:00:00 via eth0 
  DHCP: DHCPOFFER on 10.0.0.11 to 50:00:00:02:00:00 (vyos) via eth0 
  DHCP: DHCPDISCOVER from 50:00:00:02:00:00 (vyos) via eth0 
  DHCP: DHCPOFFER on 10.0.0.11 to 50:00:00:02:00:00 (vyos) via eth0 
  DHCP: DHCPREQUEST for 10.0.0.11 (10.0.0.1) from 50:00:00:02:00:00 (vyos) via eth0 
  DHCP: DHCPACK on 10.0.0.11 to 50:00:00:02:00:00 (vyos) via eth0 
  DHCP: DHCPDISCOVER from 50:00:00:04:00:00 via eth0 
  DHCP: DHCPOFFER on 10.0.0.12 to 50:00:00:04:00:00 (vyos) via eth0 
  DHCP: DHCPREQUEST for 10.0.0.12 (10.0.0.1) from 50:00:00:04:00:00 (vyos) via eth0 
  DHCP: DHCPACK on 10.0.0.12 to 50:00:00:04:00:00 (vyos) via eth0
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 1:31 PM
erkin removed a subscriber: Active contributors.