james@ubuntu:~$ vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.36
netmask 255.255.255.0
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.36
netmask 255.255.255.0
gateway 192.168.1.1
w !sudo tee %
q!
sudo /etc/init.d/networking restart

1040

被折叠的 条评论
为什么被折叠?



