首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何刷新本地IP地址?

如何刷新本地IP地址?
EN

Ask Ubuntu用户
提问于 2021-02-22 21:52:54
回答 1查看 255关注 0票数 0

如何刷新ip a命令在inet附近看到的当前本地IP地址?问题是,有时我从交换机连接电缆,然后IP发生变化。

它似乎改变了,因为每当我将它连接到交换机时,我就不能再使用ssh了(超时)

*这个交换机实际上是我用来做交换机的旧路由器

EN

回答 1

Ask Ubuntu用户

发布于 2021-02-22 22:01:17

忘记IP,使用ssh user_name@host_name.local连接到名为host_name的机器。它将解决您的IP更改问题。

代码语言:javascript
复制
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:~$
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1318507

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档