装了ubuntu7.04,出现2个网络,上不了网

xklapple 2007-08-30 06:25:01
我新装的ubuntu7.04,上不了网. 忘各位指点迷津
现在出现了两个有线网络:eth0 和 eth1.
我把两个都设置成静态id,并且也设置了dns.(我在windows地下用同样的静态ip和同样的dns都可以上网).

我原来使用windows系统的时候,有一次网卡接触不良,我就把原来的网卡直接拔掉了,换了个新网卡.然后开机就发现(当时还是在windows系统)我有2个网络连接.而且原来的网络连接没办法删除.我就把原来的网络连接禁用了.从新设置了新的网络连接的ip.

现在刚刚装了ubuntu7.04,我在终端输入 ifconfig ,出来了3个,分别是 eth0, eth1,还有一个好像是无线上网的.

我ping网关(192.168.100.1)不通,ping局域网其它机子也不通.
但是我在windows系统下一切正常.

...全文
139 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
hefuhua 2007-08-30
  • 打赏
  • 举报
回复
哈哈,不错
不管是默认的,还是都设置,反正要保证两个网卡的IP不在同一个段就可以同时使用

继续努力,我也是菜鸟,入门难些,坚持坚持就好了,呵呵
hefuhua 2007-08-30
  • 打赏
  • 举报
回复
dns需要配置DNS服务器,不知道你在桌面下的命令

你可以看应该有这个/etc/resolv.conf 文件就是存储dns的服务器的
我的如下
cat /etc/resolv.conf

nameserver 61.29.220.6
nameserver 61.29.204.76
nameserver 61.29.204.67

xklapple 2007-08-30
  • 打赏
  • 举报
回复
我晕了:我把eth1禁用了,只把eth0开启了。就可以上网了。
艾,菜鸟菜鸟
hefuhua 2007-08-30
  • 打赏
  • 举报
回复
root用户

ifconfig eth0 down #停掉eth0
route #看看你的网关地址是否正确,

ping 网关地址 #看能不能ping通网关
xklapple 2007-08-30
  • 打赏
  • 举报
回复
还有,ping 我的dns也不通。
xklapple 2007-08-30
  • 打赏
  • 举报
回复
没有人回复阿?
我ping自己通(192.168.100.25),
ping不通局域网的其他机子阿,也ping不同网关(192.168.100.1)。
着急啊!!!
xklapple 2007-08-30
  • 打赏
  • 举报
回复
补充:我在终端输入ifconfig 的结果:
大家看看是什么原因导致不能上网。

kangle@kangle-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:E0:09:12:B7
inet6 addr: fe80::219:e0ff:fe09:12b7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:470 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:54032 (52.7 KiB) TX bytes:5487 (5.3 KiB)
Interrupt:16 Base address:0x6f00

eth1 Link encap:Ethernet HWaddr 00:0B:6A:25:33:EE
inet addr:192.168.100.25 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0xd800

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:62 errors:0 dropped:0 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5114 (4.9 KiB) TX bytes:5114 (4.9 KiB)

kangle@kangle-desktop:~$
kangle@kangle-desktop:~$
kangle@kangle-desktop:~$
xklapple 2007-08-30
  • 打赏
  • 举报
回复
to 老兵哥:
谢谢你.
我现在已经把eth0禁用了,在 网络设置-->连接--里面.我把eth0的属性得 启用此连接得复选筐 没有选择.也就是禁用了eth0这个连接.
还是上不了网.

hefuhua 2007-08-30
  • 打赏
  • 举报
回复
eth0 eth1别用同一个网段
如:
eth0:192.168.100.1
eth1:172.30.5.1

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧