配置静态IP
# vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0 #自己的网卡名称
iface eth0 inet static
address 192.168.0.222 # win下的局域网,注意win的网络地址发送变化,静态地址需修改。
netmask 255.255.255.0
gateway 192.168.0.1
配置静态IP
# vi /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0 #自己的网卡名称
iface eth0 inet static
address 192.168.0.222 # win下的局域网,注意win的网络地址发送变化,静态地址需修改。
netmask 255.255.255.0
gateway 192.168.0.1