I am a software engineer trying to learn about networking from Ben Eater's video series.
By looking at my wifi connection info, I think I have learned that my router's IP address is 172.20.20.1
. (This is the value of the field Default Route).
When I run arp
, I get this output.
$ arp 172.20.20.1 Address HWtype HWaddress Flags Mask Iface 172.20.20.1 ether 00:00:00:02:02:02 C wlp1s0
But when I run ifconfig
, I get (among other things) this output:
wlp1s0 Link encap:Ethernet HWaddr e0:94:67:af:28:2d inet addr:172.20.20.20 Bcast:172.20.20.255 Mask:255.255.255.0
Shouldn't the inet
addresses match? Why is HwAddress
equal to 00:00:00:02:02:02
while the other is e0:94:67:af:28:2d
?
Is there a concept I am misunderstanding?