Linux kail 配置静态IP

 
kail Linux配置静态IP
 
1:编辑配置文件
 
vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.222
netmask 255.255.255.0
network 192.158.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

#保存

3:重启网络
 
/etc/init.d/networking restart

0 个评论

要回复文章请先登录注册