阅读背景:

linux系统设置静态IP,DHCP网络服务,DNS

来源:互联网 

一、设置静态IP及DHCP网络服务

kk@yuanqiangfei:~$ cat /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
auto eth0                                                #eth0网卡开机启动
iface eth0 inet dhcp                                    #使用DHCP服务器申请动态IP
#iface eth0 inet static                                 #设置eth0网卡静态IP
#address 192.168.1.188                               #静态IP   
#netmask 255.255.255.0                               #掩码
#gateway 192.168.1.1                                  #网关   
kk@yuanqiangfei:~$ cat 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: