当前位置:   article > 正文

虚拟机不能联网 ip丢失 ens33没有IP地址 解决办法_ens33突然无法启动当前不存在地址冲突

ens33突然无法启动当前不存在地址冲突

ifconfig -a之后发现没有IP

root@-vm:~/桌面# ifconfig -a
ens33: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:0c:29:10:e9:86  txqueuelen 1000  (以太网)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (本地环回)
        RX packets 6170  bytes 449258 (449.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6170  bytes 449258 (449.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17

输入以下命令

root@-vm:~/桌面# dhclient ens33
cmp: EOF on /tmp/tmp.66pDck5dlx which is empty
  • 1
  • 2

再次查看

root@zhaojiahao-vm:~/桌面# ifconfig -a
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.43.104  netmask 255.255.255.0  broadcast 192.168.43.255
        inet6 fe80::20c:29ff:fe10:e986  prefixlen 64  scopeid 0x20<link>
        inet6 240e:444:c12:d1cd:20c:29ff:fe10:e986  prefixlen 64  scopeid 0x0<global>
        ether 00:0c:29:10:e9:86  txqueuelen 1000  (以太网)
        RX packets 390  bytes 64968 (64.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 435  bytes 70467 (70.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (本地环回)
        RX packets 6923  bytes 509408 (509.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6923  bytes 509408 (509.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/642766
推荐阅读
相关标签
  

闽ICP备14008679号