1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| sudo vim /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.0.128 netmask 255.255.255.0 gateway 192.168.0.2
auto eth1 iface eth1 inet static address 192.168.72.130 netmask 255.255.255.0
//保存后 sudo service networking restart ifconfig reboot
|