当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : How to Set a Static IP address in Ubuntu 8.10 (Intrepid Ibex
帖子发表于 : 2008-12-04 14:02 

注册: 2006-12-02 17:32
帖子: 328
地址: Matrix,01帝国
送出感谢: 0 次
接收感谢: 0 次
原文地址:
http://www.ubuntugeek.com/how-to-set-a- ... -ibex.html

There seems to be a known bug with the Gnome Network Manager included with the Ubuntu 8.10 release that resets any static ip address settings that are set manually when the system is rebooted reverting back to a DHCP setup. These steps will remove the Gnome Network Manager and help you manually setup the required files for your static network configuration.

Solution 1

Step 1 – Remove the Gnome Network Manager: You need to complete this step first because if left installed this application will overwrite any changes you make to your configuration when the system is rebooted. This is apparently where the bug is located.
To remove the Gnome Network Manager issue the following command in the terminal:

代码:
sudo update-rc.d -f NetworkManager remove


This will disable and remove the Gnome Network Manager application. Now you will have to edit your configuration manually.

Restart your System

Step 2 – Manual configuration of your network interface: In this step you will manually configure your network interface by editing the following two files using your preferred text editor(nano gedit vi). For the purpose of this example I am using the nano editor.

Step 2.1 – Manually configure your network interface file: You can edit the appropriate file by entering the following command into the terminal:

代码:
sudo nano /etc/network/interfaces


Once your prefered editor opens the file you want to enter the following information (changing your addresses where necessary):

代码:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx(enter your ip here)
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx(enter gateway ip here)


Be sure to save your changes.

Step 2.2 – Manually configure your dns configuration file: You can edit the appropriate file by entering the following command into the terminal:

代码:
sudo nano /etc/resolv.conf


Once your preferred editor opens the file you want to enter the following information (changing your addresses where necessary):

代码:
# Generated by NetworkManager
nameserver xxx.xxx.xxx.xxx(enter your dns server ip)
nameserver xxx.xxx.xxx.xxx(enter your alt dns server ip)


Be sure to save your changes.

Step 2.3 – Manually restart your network interface with the new settings: Enter the following command in the terminal:

代码:
sudo /etc/init.d/networking restart


This should return a result that looks like the following:

代码:
*Reconfiguring network interfaces… [OK]


At this point in your terminal you should be able to run the ifconfig command and the results should reflect your new settings. If the addressing is correct you should have full network access, even after a system restart.

Haven’t tried reinstalling the Network Manger after doing these steps to see if it still works.

Solution 2

Install Wicd if you need both wired and wireless connection

Solution 3

Also, it is said that adding a new config in networkmanager (instead of editing the system default ‘Auto eth0′ stuff) and assign the right MAC address (and the static ip) will fix it, every thing’s fine even after reboot, and you can still use that gnome-networkmanager.

Check this simple guide

Credit Goes here


_________________
http://senhtry.blog.ubuntu.org.cn

Acer TravelMate 3272NWXCi
Intel Core 2 Duo T5500
Kingston 1G DDR2 667
nVidia Geforce Go 7300


页首
 用户资料  
 
2 楼 
 文章标题 : Re: How to Set a Static IP address in Ubuntu 8.10 (Intrepid Ibex
帖子发表于 : 2008-12-04 21:57 

注册: 2005-04-26 15:23
帖子: 45
送出感谢: 0 次
接收感谢: 0 次
看看能不能解决升级networkmanager的bug


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译