歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> Linux文化 >> 用ifconfig設置IP,每次啟動後還要重新設置,怎樣才能使在啟動後也生效呢?

用ifconfig設置IP,每次啟動後還要重新設置,怎樣才能使在啟動後也生效呢?

日期:2017/2/27 12:12:20   编辑:Linux文化

用ifconfig設置IP,每次啟動後還要重新設置,怎樣才能使在啟動後也生效呢?

>>> 此貼的回復 >> 修改/etc/network/interface文件,可以給網卡指定ip 比如: auto eth0 iface eth0 inet static address 192.168.1.34 netmask 255.255.255.0 記得把iface eth0 inet dhcp注釋掉

>>> 此貼的回復 >> ifconfig eth0 down ifconfig eth0 up


Copyright © Linux教程網 All Rights Reserved