1024x768
Normal
0
7.8 磅
0
2
false
false
false
EN-US
ZH-CN
X-NONE
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:宋体;
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;
mso-font-kerning:1.0pt;}
一、设置IP:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
修改以下内容:
DEVICE=eth0
HWADDR=00:07:E9:05:E8:B4
BOOTPROTO=static
BROADCAST=192.168.8.255
IPADDR=192.168.8.10
IPV6INIT=no
IPV6_AUTOCONF=no
NETMASK=255.255.255.0
NETWORK=192.168.8.0
ONBOOT=yes
二、修改网关
修改对应网卡的网关的配置文件
vi
/etc/sysconfig/network
修改以下内容
NETWORKING=yes
HOSTNAME=centos.xusy.co
GATEWAY=192.168.8.254
三、 修改DNS
修改对应网卡的DNS的配置文件
vi /etc/resolv.conf
修改以下内容
nameserver 192.168.8.2
nameserver 8.8.8.8
四、重新启动网络配置
service network restart
阅读(690) | 评论(0) | 转发(0) |