-
为eth0 配置网络
-
1 vi /etc/network/intefaces
-
添加以下内容
1 auto eth0 2 iface eth0 inet static 3 address 192.168.0.10 4 netmask 255.255.255.0 5 gateway 192.168.0.1
-
关闭网络
-
1 ifdown eth0
-
开启网络
-
1 ifup eth0
-
转载于:https://www.cnblogs.com/zeopean/p/ubuntu.html