[Bug 1831470] Re: systemd dhcp don't work on vlan

Roman 1831470 at bugs.launchpad.net
Tue Jun 4 17:06:14 UTC 2019


here is two tcpdumps of dhcp ports

root at gwd:~# tcpdump -vv -i enp3s0 -n port 67 and port 68
tcpdump: listening on enp3s0, link-type EN10MB (Ethernet), capture size 262144 bytes

SYSTEMD [NOT WORKED]
19:58:01.261864 IP (tos 0xc0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 300)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from c8:d3:a3:50:02:33, length 272, xid 0x495060a3, secs 1539, Flags [none] (0x0000)
          Client-Ethernet-Address c8:d3:a3:50:02:33
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            Client-ID Option 61, length 7: ether c8:d3:a3:50:02:33
            Parameter-Request Option 55, length 8:
              Subnet-Mask, Default-Gateway, Hostname, Domain-Name
              Domain-Name-Server, MTU, Static-Route, Classless-Static-Route
            MSZ Option 57, length 2: 576
            Hostname Option 12, length 3: "gwd"


DHCLIENT [WORKED]
20:02:33.187353 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from c8:d3:a3:50:02:33, length 300, xid 0x5986fc7c, Flags [none] (0x0000)
          Client-Ethernet-Address c8:d3:a3:50:02:33
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Request
            Requested-IP Option 50, length 4: 213.141.128.50
            Hostname Option 12, length 3: "gwd"
            Parameter-Request Option 55, length 13:
              Subnet-Mask, BR, Time-Zone, Default-Gateway
              Domain-Name, Domain-Name-Server, Option 119, Hostname
              Netbios-Name-Server, Netbios-Scope, MTU, Classless-Static-Route
              NTP

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1831470

Title:
  systemd dhcp don't work on vlan

Status in systemd package in Ubuntu:
  New

Bug description:
  root at gwd:~# uname -a
  Linux gwd 4.15.0-50-generic #54-Ubuntu SMP Mon May 6 18:46:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

  root at gwd:~# lsb_release -a
  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 18.04.2 LTS
  Release:        18.04
  Codename:       bionic

  root at gwd:~# cat /etc/systemd/network/enp3s0.network
  [Match]
  Name=enp3s0

  [Link]
  MACAddress=C8:D3:A3:50:02:33

  [Network]
  VLAN=enp3s0.2

  root at gwd:~# cat /etc/systemd/network/enp3s0.2.netdev
  [NetDev]
  Name=enp3s0.2
  Kind=vlan

  [VLAN]
  Id=2

  root at gwd:~# cat /etc/systemd/network/enp3s0.2.network
  [Match]
  Name=enp3s0.2

  [Network]
  DHCP=ipv4

  [DHCP]
  UseRoutes=true

  -----------------------------
  No ip on enp3s0.2 after boot!
  dhclient enp3s0.2 works fine, i create systemd service for it as temporary workaround

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1831470/+subscriptions



More information about the foundations-bugs mailing list