In this mode a service is owned by one node in the cluster. It is implemented by announcing that the layer 2 address (MAC address) that matches to the external IP is the MAC address of the node. For external devices the node have multiple IP address.
sudo tcpdump -i eth0 ether host aa:bb:cc:11:22:33192.168.10.101Name: config
Namespace: metallb-system
Labels: <none>
Annotations: <none>
Data
====
config:
----
address-pools:
- name: default
protocol: layer2
addresses:
- 192.168.10.100-192.168.10.120
Events: <none>
tcpdump -ni eth0 host LoadBalancerIP15:51:33.181077 IP 10.70.241.145.sun-sr-https > 10.70.241.148.63763: Flags [P.], seq 7037:7649, ack 799, win 501, options [nop,nop,TS val 2010209827 ecr 2965654999], length 612
15:51:33.181224 IP 10.70.241.148.63763 > 10.70.241.145.sun-sr-https: Flags [.], ack 7649, win 1285, options [nop,nop,TS val 2965656222 ecr 2010209827], length 0
15:51:33.222334 IP 10.70.241.148.32945 > 10.70.241.145.sun-sr-https: Flags [.], ack 5580, win 787, options [nop,nop,TS val 3579291379 ecr 2010209827], length 0
15:51:33.227039 IP 10.70.241.145.7946 > 10.70.241.148.7946: UDP, length 54
15:51:33.227201 IP 10.70.241.148.7946 > 10.70.241.145.7946: UDP, length 49
138 packets captured
138 packets received by filter
0 packets dropped by kernel
[root@kworker1 ~]# tcpdump -ni eth0 host 10.70.241.151
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
makrand@mint-gl63:~$ telnet 10.70.241.51 80
Trying 10.70.241.51...
Connected to 10.70.241.51.
Escape character is '^]'.
^CConnection closed by foreign host.
makrand@mint-gl63:~$
--
You received this message because you are subscribed to the Google Groups "metallb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metallb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metallb-users/c5b2098d-d023-40eb-8e80-a1bb43fed972o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to metall...@googlegroups.com.
> >> To unsubscribe from this group and stop receiving emails from it, send an email to metall...@googlegroups.com.
> >> To view this discussion on the web visit https://groups.google.com/d/msgid/metallb-users/c5b2098d-d023-40eb-8e80-a1bb43fed972o%40googlegroups.com.
> >
> > --
> > You received this message because you are subscribed to the Google Groups "metallb-users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to metall...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/metallb-users/CABdC_7nzGXHurGy2oJtOAO%3D%2BXW%3DqkA0VhXK7D3TbaLuqDFP64A%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to the Google Groups "metallb-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to metall...@googlegroups.com.
[root@kworker1 ~]# tcpdump -ni eth0 host 10.70.241.51
tcpdump: verbose output suppressed, use -v or -vv for full protocol decodelistening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
^C03:20:18.308597 IP 10.70.241.1.44968 > 10.70.241.51.http: Flags [S], seq 337147234, win 64240, options [mss 1460,sackOK,TS val 2759737199 ecr 0,nop,wscale 7], length 003:20:18.308970 IP 10.70.241.51.http > 10.70.241.1.44968: Flags [S.], seq 1509632657, ack 337147235, win 64308, options [mss 1410,sackOK,TS val 3807027570 ecr 2759737199,nop,wscale 7], length 003:20:18.309010 IP 10.70.241.1.44968 > 10.70.241.51.http: Flags [.], ack 1, win 502, options [nop,nop,TS val 2759737199 ecr 3807027570], length 003:20:23.428324 ARP, Request who-has 10.70.241.51 tell 10.70.241.1, length 2803:20:23.428696 ARP, Reply 10.70.241.51 is-at 00:16:3e:6a:72:10, length 465 packets captured5 packets received by filter
0 packets dropped by kernel
To unsubscribe from this group and stop receiving emails from it, send an email to metallb-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metallb-users/b5396b63-afe2-4d6e-a902-6cfb5c02c29ao%40googlegroups.com.