artem@two:~$ ssh user@one
ssh: Could not resolve hostname one: No address associated with hostname
artem@two:~$ ping one
ping: unknown host one
artem@two:~$ nslookup one
Server: 127.0.1.1
Address: 127.0.1.1#53
Non-authoritative answer:
Name: one
Address: 10.11.12.1
artem@two:~$ ping one
PING one (10.11.12.1) 56(84) bytes of data.
64 bytes from one (10.11.12.1): icmp_seq=1 ttl=64 time=0.301 ms
64 bytes from one (10.11.12.1): icmp_seq=2 ttl=64 time=0.200 ms
64 bytes from one (10.11.12.1): icmp_seq=3 ttl=64 time=0.212 ms
^C
--- one ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2017ms
rtt min/avg/max/mdev = 0.200/0.237/0.301/0.048 ms
artem@two:~$ ssh user@one
user@one's password:
на микротике прописан статический адрес для one (ip->dns->static). на локалхосте two NetworkManager, адрес и днс получаются через DHCP.