如何刷新ip a
命令在inet
附近看到的当前本地IP地址?问题是,有时我从交换机连接电缆,然后IP发生变化。
它似乎改变了,因为每当我将它连接到交换机时,我就不能再使用ssh了(超时)
*这个交换机实际上是我用来做交换机的旧路由器
发布于 2021-02-22 14:01:17
忘记IP,使用ssh user_name@host_name.local
连接到名为host_name
的机器。它将解决您的IP更改问题。
MacUser2525:~$ alias pi
alias pi='ssh zeus@buster-raspi.local'
MacUser2525:~$ pi
Linux buster-raspi 5.9.0-0.bpo.5-arm64 #1 SMP Debian 5.9.15-1~bpo10+1 (2020-12-31) aarch64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Feb 18 01:31:30 2021 from fe80::1003:5492:80fa:2bc5%eth0
zeus@buster-raspi:~$
https://askubuntu.com/questions/1318507
复制相似问题