QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: jjking007

双网卡问题,谢谢!

[复制链接]
 楼主| 发表于 2004-11-11 10:24:13 | 显示全部楼层
eth0      Link encap:Ethernet  HWaddr 00:E0:5E:39:4F:77
          inet addr:192.168.0.28  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4443 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:6261510 (5.9 Mb)  TX bytes:2880 (2.8 Kb)
          Interrupt:11 Base address:0xb000

eth1      Link encap:Ethernet  HWaddr 00:50:BF:14:D0:B8
          inet addr:192.168.0.29  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7121 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4066 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:5981214 (5.7 Mb)  TX bytes:532626 (520.1 Kb)
          Interrupt:11 Base address:0x5000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:26236 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26236 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1794336 (1.7 Mb)  TX bytes:1794336 (1.7 Mb)

大哥谢谢帮我 看 看什么问题!
回复

使用道具 举报

发表于 2004-11-11 10:28:52 | 显示全部楼层

不明白为什么两个网卡放到一个网段里,即使不出错,有什么意义吗?
回复

使用道具 举报

发表于 2004-11-11 10:30:25 | 显示全部楼层
从信息看没有问题,不知你说的问题在哪?
回复

使用道具 举报

 楼主| 发表于 2004-11-11 10:32:44 | 显示全部楼层
本来是不应该在一个网段的,我是想先确保这块网卡没问题,能正常工作,所以才这样改的,可是我用第二块卡ping网关ping不通,所以才,,,,,,谢谢大哥指教!
回复

使用道具 举报

发表于 2004-11-11 10:34:43 | 显示全部楼层
你这么试当然会有问题,网卡没问题但是路由不对。
回复

使用道具 举报

 楼主| 发表于 2004-11-11 10:36:56 | 显示全部楼层
我用第二块卡的 时候第一块是已经拔掉网线了的,可是第二块卡就是ping不通,何解呢?
是不是我的配置文件哪里忘记添加了第二块卡了.
回复

使用道具 举报

发表于 2004-11-11 10:40:18 | 显示全部楼层
你在root下用route看看就明白了。
回复

使用道具 举报

 楼主| 发表于 2004-11-11 10:40:29 | 显示全部楼层
我的第二块卡是仿照第一块配置的,而且用的时候已经断了第一块卡了,请问我该怎么改呢?
回复

使用道具 举报

 楼主| 发表于 2004-11-11 10:43:00 | 显示全部楼层
大哥,因为我很菜,所以路由还不是很懂得看,能不能解释一下呢,谢谢!
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.0.251   0.0.0.0         UG    0      0        0 eth1
[root@jj root]#

这是第一块卡的.
回复

使用道具 举报

发表于 2004-11-11 10:46:13 | 显示全部楼层
咦,eth1怎么这么多路由?
为了简单起见,两个网卡设成两个网段以后在试试吧。
回复

使用道具 举报

 楼主| 发表于 2004-11-11 11:00:35 | 显示全部楼层
我 已经改了
DEVICE=eth1
BOOTPROTO=none
BROADCAST=202.204.208.127
IPADDR=202.204.208.5
NETMASK=255.255.255.128
NETWORK=202.204.208.0
ONBOOT=yes
USERCTL=no
PEERDNS=no
TYPE=Ethernet
改了以后route是这样的
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
202.204.208.0   *               255.255.255.128 U     0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.0.251   0.0.0.0         UG    0      0        0 eth0
可是这样改了以后我就上不了网了,不知为什么,所以我现在又改回原来的.
回复

使用道具 举报

发表于 2004-11-11 13:19:30 | 显示全部楼层
你的那个IP 202.204.208.5/255.255.255.128 是怎么回事?是合法IP吗?
另外你的上网方式是什么?网络结构是怎样的?
我的意思是你可以将eth0设为:192.168.0.28/255.255.255.0
而将eth1设为:192.168.1.28/255.255.255.0这样的两个网段测试。
回复

使用道具 举报

 楼主| 发表于 2004-11-11 14:21:24 | 显示全部楼层
我这里是以太网,拨号的,我已经按照你 说的 改了ip,但是只要 eth1 和eth0不在同一网段就不能上网,我这台不是主机,我的 意思是只要不在同一网段马上ping不通主机,下面是改了以后的 route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.0.251   0.0.0.0         UG    0      0        0 eth0
回复

使用道具 举报

 楼主| 发表于 2004-11-11 14:26:48 | 显示全部楼层
谢谢这位大哥帮忙了.
回复

使用道具 举报

发表于 2004-11-11 14:27:35 | 显示全部楼层
你这台机器准备做什么用?
你试试将一个网卡设成DHCP(即没有静态IP的)方式的。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-27 12:29 , Processed in 0.099928 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表