vim /etc/network/interfaces
添加以下內容,並重啓電腦
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
broadcast 192.168.1.255
vim /etc/network/interfaces
添加以下內容,並重啓電腦
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
broadcast 192.168.1.255