debian 设置静态IP
2013-05-18 10:38
218 查看
作者:Canbus
转自:/article/2071608.html
vi /etc/netword/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.107
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
然后重启网络:
转自:/article/2071608.html
vi /etc/netword/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.107
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.1
然后重启网络:
$ /etc/init.d/networking restart
相关文章推荐
- debian 设置静态IP
- 搭建linux服务器之Debian设置静态IP
- 设置debian静态ip
- 设置debian的静态IP
- Debian5静态IP设置
- debian linux静态IP设置。
- Debian 8.5设置静态IP
- 设置debian的静态IP(方便简单)
- Ubuntu中设置静态IP和DNS
- ubuntu16.04设置静态IP
- WMware中CentOS中的网络设置(静态IP设置)
- 工具 05 设置静态IP
- Ubuntu下获得root权限和设置静态IP
- Centos 7 学习之静态IP设置
- Ubuntu 12.04 静态ip的设置方法
- linux系统设置静态IP 查看网卡配置文件
- VMWare中Linux虚拟机设置静态IP上网的设置方法
- centos设置静态IP