clorts
V2EX  ›  Ubuntu

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

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