# nano /etc/network/interfaces
设置成静态地址
“auto eth0”表示网卡随系统自动启动
“iface eth0 inet static”表示网卡为静态ip地址
“address 192.168.2.147”表示设置ip地址
”netmask 255.255.255.0”表示子网掩码
“gateway 192.168.2.1”表示网关
# nano /etc/network/interfaces
设置成静态地址
“auto eth0”表示网卡随系统自动启动
“iface eth0 inet static”表示网卡为静态ip地址
“address 192.168.2.147”表示设置ip地址
”netmask 255.255.255.0”表示子网掩码
“gateway 192.168.2.1”表示网关