<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yousri&#039;s Blog &#187; 网络配置</title>
	<atom:link href="http://blog.yousri.org/tag/%e7%bd%91%e7%bb%9c%e9%85%8d%e7%bd%ae/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.yousri.org</link>
	<description>一个人骑单车在陌生城市路上自由穿梭的生活</description>
	<lastBuildDate>Fri, 20 Jan 2012 15:01:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>删除Ubuntu的NetworkManager网络管理并手动设置静态IP</title>
		<link>http://blog.yousri.org/2009/03/19/%e5%88%a0%e9%99%a4ubuntu%e7%9a%84networkmanager%e7%bd%91%e7%bb%9c%e7%ae%a1%e7%90%86%e5%b9%b6%e6%89%8b%e5%8a%a8%e8%ae%be%e7%bd%ae%e9%9d%99%e6%80%81ip.html</link>
		<comments>http://blog.yousri.org/2009/03/19/%e5%88%a0%e9%99%a4ubuntu%e7%9a%84networkmanager%e7%bd%91%e7%bb%9c%e7%ae%a1%e7%90%86%e5%b9%b6%e6%89%8b%e5%8a%a8%e8%ae%be%e7%bd%ae%e9%9d%99%e6%80%81ip.html#comments</comments>
		<pubDate>Thu, 19 Mar 2009 08:27:52 +0000</pubDate>
		<dc:creator>Yousri</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network manager]]></category>
		<category><![CDATA[网络配置]]></category>

		<guid isPermaLink="false">http://qingxianyan.cn/?p=312</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Ubuntu操作系统安装完成后网络管理默认是用DHCP自动获取IP地址的，之前在自己住宿就一两台机使用反正也没啥差就懒得改为静态固定IP，但是最近在公司使用vm虚拟机下安装了台Ubuntu8.10玩一玩，有时基本使用SecureCRT软件SSH远程登陆使用，但是由于公司使用都是内部动态 IP地址，而且机器较多所以导致IP地址经常性更换，有点烦所以自己决定试图修改成使用静态IP，可是那个可恶的NetworkManager总是在重启后又变成默认的DHCP自动获取IP。。。故决定删除彻底NetworkManager sudo apt-get –purge remove network-manager sudo apt-get –purge remove network-manager-gnome &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;手动设置静态IP地址：编辑修改网络接口配置文件/etc/network/interfaces sudo vim /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 172.17.4.170 netmask 255.255.255.0 network 172.17.4.1 gateway 172.17.4.3 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;修改设置DNS服务器配置文件/etc/resolv.conf sudo vim /etc/resolv.conf nameserver 202.101.103.54 nameserver 202.101.103.55 nameserver 172.17.4.1 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;最后重启网络服务 sudo /etc/init.d/networking restart &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;这样上网基本就没什么问题啦/// 如果你之前没有删除NetworkManager网络管理的话，重启后/etc/resolv.conf里面的配置文件又会被修改为 # Generated by <a href='http://blog.yousri.org/2009/03/19/%e5%88%a0%e9%99%a4ubuntu%e7%9a%84networkmanager%e7%bd%91%e7%bb%9c%e7%ae%a1%e7%90%86%e5%b9%b6%e6%89%8b%e5%8a%a8%e8%ae%be%e7%bd%ae%e9%9d%99%e6%80%81ip.html'>[...]</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F03%2Fsoftware_install_in_ubuntu.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于Ubuntu系统软件安装方式</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F21%2Fcentos52%25E6%2590%25AD%25E5%25BB%25BA%25E9%2585%258D%25E7%25BD%25AEdns%25E6%259C%258D%25E5%258A%25A1.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">centos5.2搭建配置dns服务</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F10%2F12%2Fsetting_mysql.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">配置Mysql实现远程操作</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F12%2F22%2Fwindows-server-2003-install-and-setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows Server 2003服务器简易安全配置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ubuntu操作系统安装完成后网络管理默认是用DHCP自动获取IP地址的，之前在自己住宿就一两台机使用反正也没啥差就懒得改为静态固定IP，但是最近在公司使用vm虚拟机下安装了台Ubuntu8.10玩一玩，有时基本使用SecureCRT软件SSH远程登陆使用，但是由于公司使用都是内部动态 IP地址，而且机器较多所以导致IP地址经常性更换，有点烦所以自己决定试图修改成使用静态IP，可是那个可恶的NetworkManager总是在重启后又变成默认的DHCP自动获取IP。。。故决定删除彻底NetworkManager</p>
<pre class="brush: bash">
    sudo apt-get –purge remove network-manager
    sudo apt-get –purge remove network-manager-gnome
</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手动设置静态IP地址：编辑修改网络接口配置文件/etc/network/interfaces</p>
<pre class="brush: bash">
    sudo vim /etc/network/interfaces
    auto lo
    iface lo inet loopback
    auto eth0
    iface eth0 inet static
            address 172.17.4.170
            netmask 255.255.255.0
            network  172.17.4.1
            gateway 172.17.4.3
</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;修改设置DNS服务器配置文件/etc/resolv.conf</p>
<pre class="brush: bash">
    sudo vim /etc/resolv.conf
    nameserver 202.101.103.54
    nameserver 202.101.103.55
    nameserver 172.17.4.1
</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最后重启网络服务</p>
<pre class="brush: bash">sudo /etc/init.d/networking restart</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这样上网基本就没什么问题啦///   如果你之前没有删除NetworkManager网络管理的话，重启后/etc/resolv.conf里面的配置文件又会被修改为</p>
<pre class="brush: bash"># Generated by NetworkManager</pre>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;导致又是使用DHCP动态分配IP地址的。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F08%2F03%2Fsoftware_install_in_ubuntu.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于Ubuntu系统软件安装方式</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2009%2F02%2F21%2Fcentos52%25E6%2590%25AD%25E5%25BB%25BA%25E9%2585%258D%25E7%25BD%25AEdns%25E6%259C%258D%25E5%258A%25A1.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">centos5.2搭建配置dns服务</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F10%2F12%2Fsetting_mysql.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">配置Mysql实现远程操作</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.yousri.org%2F2008%2F12%2F22%2Fwindows-server-2003-install-and-setting.html&from=http%3A%2F%2Fblog.yousri.org%2F2009%2F03%2F19%2F%25E5%2588%25A0%25E9%2599%25A4ubuntu%25E7%259A%2584networkmanager%25E7%25BD%2591%25E7%25BB%259C%25E7%25AE%25A1%25E7%2590%2586%25E5%25B9%25B6%25E6%2589%258B%25E5%258A%25A8%25E8%25AE%25BE%25E7%25BD%25AE%25E9%259D%2599%25E6%2580%2581ip.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows Server 2003服务器简易安全配置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.yousri.org/2009/03/19/%e5%88%a0%e9%99%a4ubuntu%e7%9a%84networkmanager%e7%bd%91%e7%bb%9c%e7%ae%a1%e7%90%86%e5%b9%b6%e6%89%8b%e5%8a%a8%e8%ae%be%e7%bd%ae%e9%9d%99%e6%80%81ip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

