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 ~]#
  • 相关阅读:
    HDU 1018 Big Number
    UVa 10603 倒水问题
    UVa 12108 特别困的学生
    UVa 1590 IP网络(简单位运算)
    UVa 12325 宝箱
    UVa 253 骰子涂色
    UVa 815 洪水!
    springmvc(2)处理器设配器和映射器
    SpringMVC(1)
    MyBatis(10)逆向工程
  • 原文地址:https://www.cnblogs.com/dalianpai/p/13202825.html
Copyright © 2011-2022 走看看