2015年7月19日 星期日

ubuntu固定ip

1404桌面版,直接在桌面上面設定就可以了,
其他的才是下面的。


1. 修改 Ethernet 網路設定
[ jonny@lucid ~ ]
$ sudo vi /etc/network/interfaces Enter
 auto lo
 iface lo inet loopback
 
 auto eth0
 iface eth0 inet static # 固定 (靜態) IP。
 address 192.168.2.50 # IP 位址。
 netmask 255.255.255.0 # 網路遮罩。
 gateway 192.168.2.1 # 預設閘道。


2. 修改完可使用以下指令重新啟動網路讀取網路設定。
[ jonny@lucid ~ ]
$ sudo /etc/init.d/networking restart Enter



參考


沒有留言:

張貼留言