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
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.192
netmask 255.255.255.0
gateway 192.168.1.1
————————————————
指定网卡重启
ifdown eth0
ifup eth0
网络重启
/etc/init.d/networking restart
service networking restart
service networking restart
博主微信
这是我的微信扫一扫
您可以选择一种方式赞助本站
支付宝扫一扫赞助
微信钱包扫描赞助
赏