V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
clorts
V2EX  ›  Ubuntu

ubuntu 修改 ip 后,如何使修改生效?

  •  
  •   clorts · Jun 23, 2016 · 3767 views
    This topic created in 3604 days ago, the information mentioned may be changed or developed.
    通过命令行操作的
    ifconfig eth0 down
    ifconfig eth0 up
    好像还是老的 ip 。。。
    znoodl
        1
    znoodl  
       Jun 23, 2016
    修改修改配置文件重启服务才生效,在命令下改的 ip 重启会失效
    xyok
        2
    xyok  
       Jun 23, 2016 via Smartisan T1
    好像在 /etc/system/network/ 改对应 eth0 网卡配置文件,
    service network restart
    SaltedFish12138
        3
    SaltedFish12138  
       Jun 23, 2016 via iPhone
    新版本 ubuntu 中请使用 ifup 和 ifdown
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3713 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 10:38 · PVG 18:38 · LAX 03:38 · JFK 06:38
    ♥ Do have faith in what you're doing.