Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux 指令列修改 IP 兩種方法

編輯:Linux 教學

方法一:即時生效,重開機失效

ifconfig eth0 192.168.1.18 netmask 255.255.255.0

方法二:永久生效,需重開機

vi /etc/sysconfig/network-scripts/ifcfg-eth0

修改 IPADDR、NETMASK、GATEWAY 等參數。

結合使用:立即生效且永久

同時執行上述兩種方式。

Copyright © Windows教程網 All Rights Reserved