Appreciate, respect and accept it, don't take it for granted

Config Static IP in Ubuntu

2016-03-02

設定network interface

$ vim /etc/network/interfaces
# 加上下面IP設定(address, netmask, gateway要看當時環境而定)
iface eth0 inet static
address 192.168.7.151
netmask 255.255.255.0
gateway 192.168.7.1

重新讀取網路設定

$ sudo /etc/init.d/networking restart

Blog comments powered by Disqus