Skip to content

linux网卡配置

转载本站文章请注明:
转载来至:[记录与PHP的PK经历]
本文链接: linux网卡配置

linux网卡配置

##设置IP地址##
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=220.200.1.111
NETMASK=255.255.255.0
ONBOOT=yes

##设置网关##
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=ippbx
GATEWAY=”220.200.1.126″
GATEWAYDEV=”eth0″
FORWARD_IPV4=”yes”

##设置dns##
vi /etc/resolv.conf
nameserver 211.97.104.129

##设置dhcp##
vi /etc/dhcpd.conf

##重启网络##
/etc/init.d/network restart

LINUX 网卡设置DNS(1)linux网卡配置(3)linux(1)linux 网卡 安装(2)linux 网卡配置 dns设置(1)Linux 网卡配置(6)linux网卡安装(1)liunx 网卡安装(1)linux php 网卡(1)linux 网卡安装(2)linux 网卡 配置(1)配置linux网卡(1)

中文关键字:linux vi 网络 pr 网卡 配置 network etc sysconfig 220.200 eth yes conf 网关 gatewaydev

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*
Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).