V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
batilo
V2EX  ›  VPS

VPS 上 Network 服务消失, eth0 获取不到 ipv4 地址

  •  
  •   batilo · Dec 9, 2015 · 1631 views
    This topic created in 3801 days ago, the information mentioned may be changed or developed.
    系统是: Centos 7
    服务商是: Conoha


    具体情况是上午的时候重启了一次机器, SSH 无法登录。通过面版里面的终端访问 vps 后, ifconfig 只显示 lo 的信息,没有 eth0 ,但是 /etc/sysconfig/network-scripts/ifcfg-eth0 存在,里面设置是通过 dhcp 获取 ipv4 地址

    通过 ifconfig -a 能够看到 eth0 信息,但是没有对应的 ipv4 地址,所以也就无法访问外网。

    systemctl status network.service 提示找不到 network.service 文件,/etc/init.d 里面也没有 network

    请教各位菊苣遇到这种情况应该怎么修理
    2 replies    2015-12-10 22:27:22 +08:00
    cq65617875
        1
    cq65617875  
       Dec 9, 2015   ❤️ 1
    ip link set eth0 up
    ifconfig eth0 x.x.x.x
    msg7086
        2
    msg7086  
       Dec 10, 2015
    不要用 dhcp 吧,用静态设定比较靠谱。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3713 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 10:38 · PVG 18:38 · LAX 03:38 · JFK 06:38
    ♥ Do have faith in what you're doing.