zoukankan      html  css  js  c++  java
  • 虚拟机的网络问题

    我本地的虚拟机开启了dhcp,但是有时间重启ip就换了。写死ip以后居然ping不通本地和百度,修改如下:

     把时间改到最大的63天,然后定一个固定的ip当作起始的ip,把想写死的ip不在这个范围里面就行。

     

     然后在进行启停就可以了

     

     最后也能ping通本地和百度了

    [root@localhost ~]# ping 10.9.9.140
    PING 10.9.9.140 (10.9.9.140) 56(84) bytes of data.
    64 bytes from 10.9.9.140: icmp_seq=1 ttl=128 time=0.770 ms
    64 bytes from 10.9.9.140: icmp_seq=2 ttl=128 time=0.694 ms
    ^Z
    [2]+  已停止               ping 10.9.9.140
    [root@localhost ~]# ping www.baidu.com
    PING www.a.shifen.com (180.101.49.11) 56(84) bytes of data.
    64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=1 ttl=128 time=20.3 ms
    64 bytes from 180.101.49.11 (180.101.49.11): icmp_seq=2 ttl=128 time=19.3 ms
    ^Z
    [3]+  已停止               ping www.baidu.com
    [root@localhost ~]#
  • 相关阅读:
    48. Rotate Image
    83. Remove Duplicates from Sorted List
    46. Permutations
    HTML5笔记
    18. 4Sum
    24. Swap Nodes in Pairs
    42. Trapping Rain Water
    Python modf() 函数
    Python min() 函数
    Python max() 函数
  • 原文地址:https://www.cnblogs.com/dalianpai/p/13202825.html
Copyright © 2011-2022 走看看