Debian 6系统安配置静态IP上网教程以及重启网络命令

2019年11月28日22:45:36 评论 1,230
首月免费体验

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
weinxin
博主微信
这是我的微信扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: