I have computer with the IP address: 10.0.0.1
and a another router in the
same network, WAN is: 10.0.0.5
and LAN is 192.168.10.1
When I'm typing route add 192.168.1.0 mask 255.255.255.0 10.0.0.1
and I'm pinging to 192.168.10.1
, I am getting a response. But how in the ARP list can I see 192.168.10.1
MAC address?
And then I'm pinging 10.0.0.5
and I'm getting the same MAC address. MAC address works on layer 2
and 10.0.0.5
is on layer 2
but 192.168.10.1
is not layer 2
.
Thanks for the help
route add 192.168.1.0 mask 255.255.255.0 10.0.0.1
, do you mean... 10.0.0.5
instead? Could you share the output ofip addr show
,ip route list
andtcpdump -i any -n icmp or arp
? (start the tcpdump command while the arp table does not have the 192.168.10.1 entry yet, and run it while you are doing ping to that address).