搞了一个4电口的X86设备,遇到几个问题,请.指教.
os :fc4
没有起用路由和NAT 数据包转发等功.能电脑
在系统里起用了2个口,
eth.0,eth1 均已up域名
[
root@loca.lhost ~]# ifco.nfig 杀毒
eth0 Link encap:E.thernet HWaddr 00:91:27:76:00:A8. .
inet addr:.1.92.168.1.23 Bcast:192.168.1.255 Mask:255.255.255.0[成人用品]
inet.6 .addr: fe80::291:27ff:fe76:a8/64 Scope:Link服务器
UP BROADCAST RUNNING. .MULTICAST MTU:1500 Metric:1 婚庆
RX packets:.54 err.ors:0 dropped:0 overruns:0 frame:0 女人
TX packets:89 errors:0 dropped:0 overruns:0. carr.ier:0.
collisi.ons:0 txqueuelen:100.0 学习
RX bytes:8635 (8.4 K.iB) .TX bytes:7707 (7.5 KiB).
Interrupt:9
eth1 Link e.ncap:Ethe.rnet HWaddr 00:91:27:76:00:A9 [成人用品]
inet addr:192.168.2.24 Bcast:192.168.2.255 Mask:255.25.5..255.0 外汇
inet6 addr: fe80::291:27.ff:f.e76:a9/64 Scope:Link(广告)
UP BROAD.CAST MULTICA.ST MTU:1500 Metric:1.
RX p.acket.s:0 errors:0 dropped:0 overruns:0 frame:0( 游戏 )
TX p.ackets:0 errors:0 d.ropped:0 overruns:0 carrier:0 杀毒
coll.ision.s:0 txqueuelen:1000 ( 游戏 )
RX byte.s:0 (0..0 TX bytes:0 (0.0 健康
Interrupt:10
网.线插在eth0上,直接和本子对连 乙肝
[root@localhost ~]# .dmesg 外汇
eth0: freeing mc. frame.域名
eth0: freeing mc fr.ame..
[
root@localho.st ~]# route电脑
Kernel IP routin.g table教育
Destination Gat.eway Genmask Flag.s Metric Ref Use Iface 健康
1.92.168.2.0 * 255..255.255.0 U 0 0 0 eth1.
192.168.1.0 * 255.25.5.255.0 U 0. 0 0 eth0<性病>
169.2.54..0.0 * 255.255.0.0 U 0 0 0 eth1 汽车
default 192..168.1.1 0.0.0.0 UG 0 .0 0 eth0 杀毒
本子上单网卡配置了2个ip
192.168.1.22
192.168.2.2
现在开始pin.g 19.2.168.2.24不通,抓包发现--- 印刷
竟然能获得MAC地址,如图
1 从路由表中能看出 1.92.168.2..0只能通过eth1学习
当对2.24的A.RP请求发过去后,(广告)
eth0不.但回复,而且伪造了2..24这个IP和自己的MAC地址,.
icmp .request过来后,到.了IP层又被丢弃,导致不通.
我认为这个ARP请.求应该是丢掉,而不是回复,.
并且 我这边ICMP发过去了 又被它丢掉 起不是很没效率 为什么第.一次不丢.掉 丢掉就没这样的事了--- 印刷
难道是eth0 收到A.RP查询的时候,eth0先伪造.一个回复,等ICMP报文过来,核对下IP,再查.看有没有开启路由转发功能,发现没有 于是丢弃,实在是搞不懂
2 eth0: freei.ng mc frame学习
eth2.eth3两个千M电口和本子的电口对连..(显示正常 速率 双工 OK)电脑
eth.0 ,eth1这两个百M电.口和本子相连就出现这个问题.
是最.高速率不匹配,还是双工出了问题.
不过可以正常使用
http://upload.bbs.csuboy.com/Mon_1004/126_7092_9b620f33a380b5e.gif[/img] http://upload.bbs.csuboy.com/Mon_1004/126_7092_3d234bfacebeb63.jpg[/img]下载 (115.17 KB).
2.007-12-21 20:01.