硬件配置如下:
处理器名称 AMD Sempron, 1600 MHz (8 x 200) 2800+
主板名称 ASRock AM2NF6G-VSTA (2 PCI, 1 PCI-E x1, 1 PCI-E x16, 1 HDMR, 4 DDR2 DIMM,
Audio, Video, LAN)
主板芯片组 nVIDIA nForce 6100-405, AMD Hammer
系统内存 1472 MB (DDR2 SDRAM)
显示卡 NVIDIA GeForce 6100 nForce 405 (256 MB)
声卡 Realtek ALC888/1200 @ nVIDIA MCP61 - High Definition Audio Control
硬盘驱动器 Maxtor 6V080E0 (80 GB, 7200 RPM, SATA-II)ler
硬盘驱动器 WDC WD400LB-55DNA0 (37 GB, IDE)
光盘驱动器 ASUS CB-5216A (DVD:16x, CD:52x/32x/52x DVD-ROM/CD-RW)
网络适配器 NVIDIA nForce Networking Controller (192.168.1.8)
软件情况:
先装的XP,为了学习,挂了另一个40G的硬盘用来研究UBUNTU8.04
光盘安装的,进入顺利,自动建立了启动菜单.
但问题就出在网络上
首先系统给我用DHCP配置了个IP192.168.1.XX,然后还给我指定了个192.168.1.74作为DNS服务器,当然不符合我在WINDOWS中的配置,因为我们这
是公司局域网上网:
IP:192.168.1.8
子网掩掩码:255.255.255.0
网关:192.168.1.1
DNS服务器有两个:202.96.128.166
202.96.134.133
(声明,我在广东深圳)命令
在图形界面,我怎么都改不了DNS服务器,听了网友们的介绍我在终端用如下操作:
sudo gedit /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.8
netmask
255.255.255.0
gateway 192.168.1.1
auto eth0
更改了IP信息为上面的..并保存后重启网络
sudo /etc/init.d/networking restart
然后输入命令更改DNS服务器:
sudo gedit /etc/resolv.conf:
把202.96.128.166及202.96.134.133加入
按照大家的描述,我应该能上网了,可打开FIREFOX还是不能上.下面是我在终端的操作:
ubuntu8.04无法配置上网(局域网内,指定IP上网的,但WINXP下正常)
-
- 帖子: 5
- 注册时间: 2008-09-24 15:10
-
- 帖子: 5
- 注册时间: 2008-09-24 15:10
Re: ubuntu8.04无法配置上网(局域网内,指定IP上网的,但WINXP下正常)
系统提示更新时出现的情况
W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/ ... 0.3.3+0.4-
0ubuntu0.8.04.3_all.deb
无法解析域名“security.ubuntu.com”
W: Failed to fetch
http://security.ubuntu.com/ubuntu/pool/ ... .1_all.deb
无法解析域名“security.ubuntu.com
”
终端进入IP地址设定(图型界面及可完成)
thinkwen@thinkwen-linux:~$ sudo gedit /etc/network/interfaces
sudo: unable to resolve host thinkwen-linux
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7
GTK Panel of
SCIM 1.4.7
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.8
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0
sudo: unable to resolve host
thinkwen-linux
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading
socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7
GTK Panel of SCIM 1.4.7
终端进入DNS设置(图形界面无法更改成功)
thinkwen@thinkwen-linux:~$ sudo gedit /etc/resolv.conf
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 5075
#
### END INFO
nameserver 202.96.128.166
nameserver 202.96.134.133
domain mshome
W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/ ... 0.3.3+0.4-
0ubuntu0.8.04.3_all.deb
无法解析域名“security.ubuntu.com”
W: Failed to fetch
http://security.ubuntu.com/ubuntu/pool/ ... .1_all.deb
无法解析域名“security.ubuntu.com
”
终端进入IP地址设定(图型界面及可完成)
thinkwen@thinkwen-linux:~$ sudo gedit /etc/network/interfaces
sudo: unable to resolve host thinkwen-linux
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7
GTK Panel of
SCIM 1.4.7
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.8
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0
sudo: unable to resolve host
thinkwen-linux
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading
socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7
GTK Panel of SCIM 1.4.7
终端进入DNS设置(图形界面无法更改成功)
thinkwen@thinkwen-linux:~$ sudo gedit /etc/resolv.conf
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 5075
#
### END INFO
nameserver 202.96.128.166
nameserver 202.96.134.133
domain mshome
-
- 帖子: 5
- 注册时间: 2008-09-24 15:10
Re: ubuntu8.04无法配置上网(局域网内,指定IP上网的,但WINXP下正常)
thinkwen@thinkwen-linux:~$ route -v
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local *
255.255.0.0 U 1000 0 0 eth0
thinkwen@thinkwen-linux:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 58:8f:cc:8f:13:00
inet addr:192.168.1.8 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::5a8f:ccff:fe8f:1300/64 Scope:Link
UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1
RX packets:16497 errors:0 dropped:0 overruns:0 frame:0
TX packets:378 errors:0
dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1154728 (1.1 MB) TX bytes:33253
(32.4 KB)
Interrupt:220 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1
Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX
packets:1826 errors:0 dropped:0 overruns:0 frame:0
TX packets:1826 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:91300 (89.1 KB) TX bytes:91300 (89.1 KB)
thinkwen@thinkwen-linux:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local *
255.255.0.0 U 1000 0 0 eth0
thinkwen@thinkwen-linux:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 58:8f:cc:8f:13:00
inet addr:192.168.1.8 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::5a8f:ccff:fe8f:1300/64 Scope:Link
UP BROADCAST RUNNING MULTICAST
MTU:1500 Metric:1
RX packets:16497 errors:0 dropped:0 overruns:0 frame:0
TX packets:378 errors:0
dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1154728 (1.1 MB) TX bytes:33253
(32.4 KB)
Interrupt:220 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1
Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX
packets:1826 errors:0 dropped:0 overruns:0 frame:0
TX packets:1826 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:91300 (89.1 KB) TX bytes:91300 (89.1 KB)
thinkwen@thinkwen-linux:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
-
- 帖子: 50
- 注册时间: 2007-05-10 20:18
Re: ubuntu8.04无法配置上网(局域网内,指定IP上网的,但WINXP下正常)
我来学习的,看看有没有解决的办法
-
- 帖子: 11
- 注册时间: 2008-09-27 23:26
Re: ubuntu8.04无法配置上网(局域网内,指定IP上网的,但WINXP下正常)
和我的情况基本一样,呵呵,不能解析。
-
- 帖子: 5
- 注册时间: 2008-09-24 15:10
Re: ubuntu8.04无法配置上网(局域网内,指定IP上网的,但WINXP下正常)
呵呵,那楼上的老兄有没有找到解决办法啊...
- adagio
- 论坛版主
- 帖子: 22110
- 注册时间: 2008-02-17 23:47
- 来自: 美丽富饶的那啥星球
Re: ubuntu8.04无法配置上网(局域网内,指定IP上网的,但WINXP下正常)
GUI也可以改的
系统--->系统管理--->网络
可设定静态IP,掩码,网关,DNS
我觉得你的配置文件不大对头,帖上我的,你参考一下,我一切正常
你试试清空/etc/network/interfaces,然后重新配置一次
系统--->系统管理--->网络
可设定静态IP,掩码,网关,DNS
我觉得你的配置文件不大对头,帖上我的,你参考一下,我一切正常
代码: 全选
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.25
netmask 255.255.255.0
pre-up /sbin/ifconfig eth0 up
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……
---------------------------------------------------------------------------------
★ [图片版]新手当自强(续)FAQ
★ [新手进阶]挂载、fstab、调整linux分区
★ [图片版]E17桌面环境配置手把手
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……
---------------------------------------------------------------------------------
★ [图片版]新手当自强(续)FAQ
★ [新手进阶]挂载、fstab、调整linux分区
★ [图片版]E17桌面环境配置手把手
-
- 帖子: 11
- 注册时间: 2008-09-27 23:26
Re: ubuntu8.04无法配置上网(局域网内,指定IP上网的,但WINXP下正常)
来和LZ汇报下,我 已经KO了 ,办法是把 ROUTE的 MTU从1482改到1400。
ROUTE型号 WRT54GS,TOMATO 1.13。
ROUTE型号 WRT54GS,TOMATO 1.13。
-
- 帖子: 477
- 注册时间: 2006-08-30 11:16
- 来自: 广东阳春