0

I’ve got two wifi APs and one station. Each AP got a DHCP server. I’m using systemd-networkd as DHCP client.

  • AP1 : 11:11:11:11:11:11
  • AP2 : 22:22:22:22:22:22
  • station (jokobox) : aa:aa:aa:aa:aa:aa (Linux jokobox 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux, systemd version 232)
cat /etc/systemd/network/20-wireless.network
[Match]
Name=wlan0

[Network]
DHCP=ipv4
MulticastDNS=no
LLMNR=no
DNSSEC=no
Domains=joko.lan
LinkLocalAddressing=no
IPv6AcceptRA=no

Connection to wifi AP1 is OK.

networkctl status wlan0
wlan0
   Link File: /etc/systemd/network/99-default.link
Network File: /etc/systemd/network/20-wireless.network
        Type: wlan
       State: routable (configured)
        Path: pci-0000:03:00.0
      Driver: iwlwifi
      Vendor: Intel Corporation
       Model: Wireless 7260 (Dual Band Wireless-AC 7260)
  HW Address: aa:aa:aa:aa:aa:aa (Intel Corporate)
     Address: 192.168.43.200
     Gateway: 192.168.43.1
         DNS: 192.168.43.1
Search Domains: joko.lan

tcpdump -envi wlan0
09:52:45.935646 aa:aa:aa:aa:aa:aa > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 343: (tos 0xc0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 329)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from aa:aa:aa:aa:aa:aa, length 301, xid 0xddfdbc0e, secs 2, Flags [none]
      Client-Ethernet-Address aa:aa:aa:aa:aa:aa
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: Request
        Client-ID Option 61, length 19: hardware-type 255, f8:03:00:00:00:00:00:00:00:00:00:00:00:00:11:22:33:44
        Parameter-Request Option 55, length 9: 
          Subnet-Mask, Default-Gateway, Hostname, Domain-Name
          Domain-Name-Server, Static-Route, Classless-Static-Route, NTP
          TZ-Name
        MSZ Option 57, length 2: 576
        Server-ID Option 54, length 4: 192.168.43.1
        Requested-IP Option 50, length 4: 192.168.43.200
        Hostname Option 12, length 7: "jokobox"
09:52:45.947799 11:11:11:11:11:11 > aa:aa:aa:aa:aa:aa, ethertype IPv4 (0x0800), length 360: (tos 0x0, ttl 64, id 8795, offset 0, flags [none], proto UDP (17), length 346)
    192.168.43.1.67 > 192.168.43.200.68: BOOTP/DHCP, Reply, length 318, xid 0xddfdbc0e, secs 2, Flags [none]
      Your-IP 192.168.43.200
      Server-IP 192.168.43.1
      Client-Ethernet-Address aa:aa:aa:aa:aa:aa
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: ACK
        Server-ID Option 54, length 4: 192.168.43.1
        Lease-Time Option 51, length 4: 3600
        RN Option 58, length 4: 1800
        RB Option 59, length 4: 3150
        Subnet-Mask Option 1, length 4: 255.255.255.0
        BR Option 28, length 4: 192.168.43.255
        Default-Gateway Option 3, length 4: 192.168.43.1
        Domain-Name-Server Option 6, length 4: 192.168.43.1
        Hostname Option 12, length 7: "jokobox"
        Vendor-Option Option 43, length 15: 65.00.00.00.00.00.00.00.00.00.00.00.00.00.68

Connection to wifi AP2 is not working, no IP and no route

And I keep going received this in syslog

Jan 13 10:42:14 jokobox kernel: [641586.990386] IPv4: martian source 255.255.255.255 from 192.168.0.1, on dev wlan0
Jan 13 10:42:14 jokobox kernel: [641586.990389] ll header: 00000000: ff ff ff ff ff ff 00 22 22 22 22 22 22 08 00        .......!..q…

etc ...

tcpdump -envi wlan0
10:42:14.798867 aa:aa:aa:aa:aa:aa > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 337: (tos 0xc0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 323)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from aa:aa:aa:aa:aa:aa, length 295, xid 0xa4f56a19, secs 1, Flags [none]
      Client-Ethernet-Address aa:aa:aa:aa:aa:aa
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: Request
        Client-ID Option 61, length 19: hardware-type 255, f8:03:00:00:00:00:00:00:00:00:00:00:00:00:11:22:33:44
        Parameter-Request Option 55, length 9: 
          Subnet-Mask, Default-Gateway, Hostname, Domain-Name
          Domain-Name-Server, Static-Route, Classless-Static-Route, NTP
          TZ-Name
        MSZ Option 57, length 2: 576
        Requested-IP Option 50, length 4: 192.168.43.200
        Hostname Option 12, length 7: "jokobox"
10:42:14.839384 22:22:22:22:22:22 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 322: (tos 0x0, ttl 100, id 0, offset 0, flags [none], proto UDP (17), length 308)
    192.168.0.1.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 280, xid 0xa4f56a19, Flags [none]
      Your-IP 192.168.0.126
      Client-Ethernet-Address f8:03:89:63:00:02
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: ACK
        Server-ID Option 54, length 4: 192.168.0.126
        Lease-Time Option 51, length 4: 86400
        Subnet-Mask Option 1, length 4: 255.255.255.0
        Default-Gateway Option 3, length 4: 192.168.0.1
        Domain-Name-Server Option 6, length 4: 192.168.0.1
        Domain-Name Option 15, length 4: "home"
10:42:16.491840 aa:aa:aa:aa:aa:aa > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 337: (tos 0xc0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 323)
    0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from aa:aa:aa:aa:aa:aa, length 295, xid 0x2d903f40, secs 1, Flags [none]
      Client-Ethernet-Address aa:aa:aa:aa:aa:aa
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: Discover
        Client-ID Option 61, length 19: hardware-type 255, f8:03:00:00:00:00:00:00:00:00:00:00:00:00:11:22:33:44
        Parameter-Request Option 55, length 9: 
          Subnet-Mask, Default-Gateway, Hostname, Domain-Name
          Domain-Name-Server, Static-Route, Classless-Static-Route, NTP
          TZ-Name
        MSZ Option 57, length 2: 576
        Requested-IP Option 50, length 4: 192.168.43.200
        Hostname Option 12, length 7: "jokobox"
10:42:16.535421 22:22:22:22:22:22 > ff:ff:ff:ff:ff:ff, ethertype IPv4 (0x0800), length 322: (tos 0x0, ttl 100, id 0, offset 0, flags [none], proto UDP (17), length 308)
    192.168.0.1.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 280, xid 0x2d903f40, Flags [none]
      Your-IP 192.168.0.126
      Client-Ethernet-Address f8:03:89:63:00:02
      Vendor-rfc1048 Extensions
        Magic Cookie 0x63825363
        DHCP-Message Option 53, length 1: Offer
        Server-ID Option 54, length 4: 192.168.0.126
        Lease-Time Option 51, length 4: 86400
        Subnet-Mask Option 1, length 4: 255.255.255.0
        Default-Gateway Option 3, length 4: 192.168.0.1
        Domain-Name-Server Option 6, length 4: 192.168.0.1
        Domain-Name Option 15, length 4: "home"

etc ...

Why I'm not getting the 192.168.0.126 IP address ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.