ITeye博客

network config on centos

mathgl · 2014-04-03 09:50 · Linux/centos · 非技术 · Markdown

edit /etc/sysconfig/network-scripts/ifcfg-eth0 (first network card, ifcfg-eth1 is the second)

 

DEVICE=eth0

BOOTPROTO=static

IPADDR=192.168.3.110

NETMASK=255.255.255.0

ONBOOT=yes

DHCPCLASS=

 

edit /etc/sysconfig/network

 

NETWORKING=yes

HOSTNAME=xxx

GATEWAY=192.168.3.1

 

edit /etc/resolv.conf

 

nameserver 8.8.8.8

 

/etc/init.d/network restart

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。