Thanks for the infos. Still a bit puzzled how bridge command can see the port switch immediately if this is not communicated, But anyways, in prep for the ping test I looked into tcpdump and monitored a roam with it on both APs.
roaming esp32 from ax1 to ax2:
- discover and request broadcasts of esp32 are seen by ax1 (the dhcp server) and ax2
- resulting offer is seen on br-lan of ax1 but not on br-lan of ax2
- sometimes a request / ack is followed by the offer on ax1 but not seen on ax2 and no effect on esp32
ax1
root@ax1:~# tcpdump -i br-lan -nn ether host 24:a1:60:54:37:d4 -vvv
16:27:20.422265 IP (tos 0x0, ttl 255, id 2515, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x3961a776, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
16:27:20.422681 IP (tos 0x0, ttl 255, id 2515, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x3961a776, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
16:27:20.423648 IP (tos 0xc0, ttl 64, id 5817, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [bad udp cksum 0x8635 -> 0x6f56!] BOOTP/DHCP, Reply, length 300, xid 0x3961a776, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:27:20.424553 IP (tos 0xc0, ttl 64, id 5818, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [bad udp cksum 0x8635 -> 0x6f56!] BOOTP/DHCP, Reply, length 300, xid 0x3961a776, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:27:20.925205 IP (tos 0x0, ttl 255, id 2516, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x3961a776, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
16:27:20.925730 IP (tos 0x0, ttl 255, id 2516, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x3961a776, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
16:27:20.926751 IP (tos 0xc0, ttl 64, id 5824, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [bad udp cksum 0x8635 -> 0x6f56!] BOOTP/DHCP, Reply, length 300, xid 0x3961a776, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:27:20.927656 IP (tos 0xc0, ttl 64, id 5825, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [bad udp cksum 0x8635 -> 0x6f56!] BOOTP/DHCP, Reply, length 300, xid 0x3961a776, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
ax2
root@ax2:~# tcpdump -i br-lan -nn ether host 24:a1:60:54:37:d4 -vvv
16:27:20.421610 IP (tos 0x0, ttl 255, id 2515, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x3961a776, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
16:27:20.924554 IP (tos 0x0, ttl 255, id 2516, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x3961a776, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
Then something changes
ax1
16:29:50.244880 IP (tos 0x0, ttl 255, id 2608, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x47409cd6, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
16:29:50.245368 IP (tos 0x0, ttl 255, id 2608, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x47409cd6, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
16:29:50.245727 IP (tos 0xc0, ttl 64, id 24954, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [bad udp cksum 0x8635 -> 0x6c17!] BOOTP/DHCP, Reply, length 300, xid 0x47409cd6, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:29:50.246293 IP (tos 0xc0, ttl 64, id 24955, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [bad udp cksum 0x8635 -> 0x6c17!] BOOTP/DHCP, Reply, length 300, xid 0x47409cd6, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:29:54.151948 24:a1:60:54:37:d4 > ff:ff:ff:ff:ff:ff Null Unnumbered, xid, Flags [Response], length 46: 01 00
16:29:54.152266 24:a1:60:54:37:d4 > ff:ff:ff:ff:ff:ff Null Unnumbered, xid, Flags [Response], length 46: 01 00
16:29:54.163513 IP (tos 0x0, ttl 255, id 2609, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x98fdd13a, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Request
MSZ Option 57, length 2: 576
Requested-IP Option 50, length 4: 192.168.1.179
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
Hostname Option 12, length 13: "Roamer-5437D4"
END Option 255, length 0
PAD Option 0, length 0, occurs 25
16:29:54.163940 IP (tos 0x0, ttl 255, id 2609, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x98fdd13a, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Request
MSZ Option 57, length 2: 576
Requested-IP Option 50, length 4: 192.168.1.179
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
Hostname Option 12, length 13: "Roamer-5437D4"
END Option 255, length 0
PAD Option 0, length 0, occurs 25
16:29:54.165546 IP (tos 0xc0, ttl 64, id 25217, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [bad udp cksum 0x8635 -> 0xe2f5!] BOOTP/DHCP, Reply, length 300, xid 0x98fdd13a, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:29:54.166220 IP (tos 0xc0, ttl 64, id 25218, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [bad udp cksum 0x8635 -> 0xe2f5!] BOOTP/DHCP, Reply, length 300, xid 0x98fdd13a, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:29:54.177760 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.179 tell 192.168.1.179, length 46
ax2
16:29:50.244242 IP (tos 0x0, ttl 255, id 2608, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x47409cd6, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
MSZ Option 57, length 2: 1500
Hostname Option 12, length 13: "Roamer-5437D4"
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
END Option 255, length 0
PAD Option 0, length 0, occurs 31
16:29:54.151359 24:a1:60:54:37:d4 > ff:ff:ff:ff:ff:ff Null Unnumbered, xid, Flags [Response], length 6: 01 00
16:29:54.162876 IP (tos 0x0, ttl 255, id 2609, offset 0, flags [none], proto UDP (17), length 336)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 24:a1:60:54:37:d4, length 308, xid 0x98fdd13a, Flags [none] (0x0000)
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Request
MSZ Option 57, length 2: 576
Requested-IP Option 50, length 4: 192.168.1.179
Parameter-Request Option 55, length 12:
Subnet-Mask, Default-Gateway, BR, Domain-Name-Server
Domain-Name, Netbios-Name-Server, Netbios-Node, Netbios-Scope
Router-Discovery, Static-Route, Classless-Static-Route, Vendor-Option
Hostname Option 12, length 13: "Roamer-5437D4"
END Option 255, length 0
PAD Option 0, length 0, occurs 25
16:29:54.165197 IP (tos 0xc0, ttl 64, id 25217, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x98fdd13a, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:29:54.165857 IP (tos 0xc0, ttl 64, id 25218, offset 0, flags [none], proto UDP (17), length 328)
192.168.1.236.67 > 192.168.1.179.68: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x98fdd13a, Flags [none] (0x0000)
Your-IP 192.168.1.179
Server-IP 192.168.1.236
Client-Ethernet-Address 24:a1:60:54:37:d4
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 192.168.1.236
Lease-Time Option 51, length 4: 43200
RN Option 58, length 4: 21600
RB Option 59, length 4: 37800
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 192.168.1.255
Domain-Name-Server Option 6, length 4: 192.168.1.236
Domain-Name Option 15, length 3: "job"
Default-Gateway Option 3, length 4: 192.168.1.221
END Option 255, length 0
PAD Option 0, length 0, occurs 3
16:29:54.177167 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.179 tell 192.168.1.179, length 28
now connect succeeded...