【问题标题】:Unable to display IP address after using ifconfig on ubuntu18.04在 ubuntu18.04 上使用 ifconfig 后无法显示 IP 地址
【发布时间】:2021-11-06 15:07:21
【问题描述】:

所有, 在ubuntu18.04上使用ifconfig后,可以得到“eno1,eno2”相关信息,但是没有显示IP和网络掩码,但是现在远程连接操作需要这个IP。网上给出了以下解决方案:

  1. 先用sudo dhclient eno1更新IP地址
  2. 然后运行sudo ifconfig eno1
  3. reboot 当我执行sudo dhclient eno1时,终端卡了很长时间没有响应。 我想问我如何获得我的ubuntu IP。 期待你的回答~ return when run "ifconfig"

【问题讨论】:

    标签: ubuntu ip ifconfig


    【解决方案1】:

    很确定网络接口没有启动。试试ifup eno1。如果您希望界面在启动时启动,还请查看/etc/sysconfig/network-scripts。如果相应的文件不存在,您可能需要生成它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-04
      • 2014-07-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多