Ubuntu Linux在命令列下改網卡的IP的方式:
#修改時需要root權限
sudo vim /etc/network/interfaces
DHCP的設定
auto eth0
iface eth0 inet dhcp
手動設定static IP的方式
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.255
gateway 192.168.1.254

Feeling ,News ,Knowledge ,And More
Ubuntu Linux在命令列下改網卡的IP的方式:
#修改時需要root權限
sudo vim /etc/network/interfaces
DHCP的設定
auto eth0
iface eth0 inet dhcp
手動設定static IP的方式
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.255
gateway 192.168.1.254