﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-nicowen-随笔分类-linux</title><link>http://www.cnitblog.com/nicowen/category/2445.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 27 Sep 2011 16:55:44 GMT</lastBuildDate><pubDate>Tue, 27 Sep 2011 16:55:44 GMT</pubDate><ttl>60</ttl><item><title>文本方式设置IP地址</title><link>http://www.cnitblog.com/nicowen/archive/2006/04/12/9045.html</link><dc:creator>猫王</dc:creator><author>猫王</author><pubDate>Wed, 12 Apr 2006 04:15:00 GMT</pubDate><guid>http://www.cnitblog.com/nicowen/archive/2006/04/12/9045.html</guid><wfw:comment>http://www.cnitblog.com/nicowen/comments/9045.html</wfw:comment><comments>http://www.cnitblog.com/nicowen/archive/2006/04/12/9045.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/nicowen/comments/commentRss/9045.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/nicowen/services/trackbacks/9045.html</trackback:ping><description><![CDATA[以前用过文本方式下改IP地址,后来用的是图形界面,最近因为想试用一下新版的CHECKPOINT,装了台LINX虚拟机,为了不影响速度,只装了文本界面，开始的时候又没设ＩＰ，用了一下ＩＦＣＯＦＮＩＧ设了一下，发现重起后ＩＰ  地址没了，凭记忆找到了/etc/sysconfig/network-scripts,可是打开ＩＦＣＦＧ－ＥＴＨ０一看，确不知怎么改他的参数，幸好有一台ＬＩＮＵＸ服务器，对比了一下，现例出两种方式的内容，以便以后有一个借鉴：<br />DHCP模式：ＤＥＶＩＣＥ＝eht0  ；BOOTPROTO = dhcp ；ONBOOT = YES<br />ＮＡＴ模式：DEVICE = eth0　；BOOTPROTO ＝ static ；  BROADCAST = 192.168.10.255；<br />   IPADDR = 192.168.10.1；  NETMASK  = 255.255.255.0； NETWORK = 192.168.10.0； ONBOOT =yes<img src ="http://www.cnitblog.com/nicowen/aggbug/9045.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/nicowen/" target="_blank">猫王</a> 2006-04-12 12:15 <a href="http://www.cnitblog.com/nicowen/archive/2006/04/12/9045.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>