clorts
V2EX  ›  Ubuntu

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

  •  
  •   clorts · Jun 23, 2016 · 3931 views
    This topic created in 3671 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   ·   2945 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:16 · PVG 22:16 · LAX 07:16 · JFK 10:16
    ♥ Do have faith in what you're doing.