Hello, how is it possible that arp and ifconfig return two different macaddress?

Pier. C.:
Hello, how is it possible that arp and ifconfig return two different macaddress?
image.png

Pier. C.:

image.png

Pier. C.:
c4:07 vs c4:09

c4:09 has been onbtained running:

ssh node01
ifconfig

Pier. C.:

image.png

Pier. C.:

image.png

Pier. C.:
the internal ip is 10.17.196.9

Pier. C.:

image.png

Pier. C.:
question 6 in https://kodekloud.com/topic/practice-test-explore-environment-2/

For some reason the internal ip seen by the kubelet is 10.17.196.9 but then running arp/ssh is using this ip for the connection 196.7

Any suggestion to understand better what is happening?

unnivkn:
Hi @Pier. C. fyi:



IP-Mimatch-Answer-1.png

Pier. C.:
Hello @unnivkn, in your example i see the same behaviour:
ARP provide the macaddress of an ip (248.8) that is different from the INTERNAL-IP seen by the kubelet (248.9). Why?

Pier. C.:
I see that node01 has 2 IP, and two macaddr referring to the same Interface (eth0)
in my example 196.8 and 196.9 refer to node01

Pier. C.:

image.png

Pier. C.:
So the question is. Based on what should I prefer to provide one of the two mac-address?

unnivkn:
it may be an alias, that why in my case both .8 and .9 points to node01, so you can ignore it