Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Linux系統教程 >> Linux系統常見問題解答 >> ubuntu設置靜態IP

ubuntu設置靜態IP

日期:2017/1/20 17:36:08      編輯:Linux系統常見問題解答

設置IP

/etc/network/interfaces

? 1 2 3 4 5 6 7 8 9 10 11 12 auto lo iface lo inet loopback   auto eth0                                                         iface eth0 inet static     address 192.168.1.100     network 192.168.1.0     netmask 255.255.255.0     broadcast 192.168.1.255     gateway 192.168.1.1     up route add default gw 192.168.1.1     down route del default gw 192.168.1.1

設置DNS

/etc/resolv.conf

? 1 2 nameserver 202.96.128.86 nameserver 114.114.114.114
Copyright © Windows教程網 All Rights Reserved