免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: dehuang2005
打印 上一主题 下一主题

[网络管理] 两个网段路由的问题! [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-01-05 11:49 |只看该作者
ResourceRecords:
Name=MUGONG          NameType=0x20 (Server)
ResType=0x20
ResClass=
WARNING: Short packet. Try increasing the snap length

(ttl 128, id 6968, len 96)
11:46:39.228528 0.00:0e:1f:51:7d:54.455 > 0.ff:ff:ff:ff:ff:ff.455: ipx-netbios 50
11:46:39.449932 192.168.1.244.137 > 192.168.1.255.137: [udp sum ok]
>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
TrnID=0x81CB
OpCode=0
NmFlags=0x11
Rcode=0
QueryCount=1
AnswerCount=0
AuthorityCount=0
AddressRecCount=0
QuestionRecords:
Name=GAO-4492B949EC8 NameType=0x00 (Workstation)
QuestionType=0x20
QuestionClass=0x1

(ttl 128, id 41517, len 7
11:46:39.964561 arp who-has 192.168.0.1 tell 192.168.0.14
11:46:40.199955 192.168.1.244.137 > 192.168.1.255.137: [udp sum ok]
>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
TrnID=0x81CB
OpCode=0
NmFlags=0x11
Rcode=0
QueryCount=1
AnswerCount=0
AuthorityCount=0
AddressRecCount=0
QuestionRecords:
Name=GAO-4492B949EC8 NameType=0x00 (Workstation)
QuestionType=0x20
QuestionClass=0x1

(ttl 128, id 41520, len 7
11:46:40.445497 192.168.1.14.1980 > 222.36.44.8.80: F [tcp sum ok] 2860164286:2860164286(0) ack 1852502975 win 9648 <nop,nop,timestamp 435544 119053142> (DF) (ttl 64, id 5282, len 52)
11:46:40.622868 0.00:0e:1f:51:7d:54.455 > 0.ff:ff:ff:ff:ff:ff.455: ipx-netbios 50
11:46:40.622959 0.00:0e:1f:51:7d:54.455 > 0.ff:ff:ff:ff:ff:ff.455: ipx-netbios 50
11:46:40.623324 192.168.1.74.137 > 192.168.1.255.137:
>>> NBT UDP PACKET(137): RELEASE; REQUEST; BROADCAST
TrnID=0x806C
OpCode=6
NmFlags=0x1
Rcode=0
QueryCount=1
AnswerCount=0
AuthorityCount=0
AddressRecCount=1
QuestionRecords:
Name=WORKGROUP       NameType=0x1E (Browser Server)
QuestionType=0x20
QuestionClass=0x1

ResourceRecords:
Name=WORKGROUP       NameType=0x1E (Browser Server)
ResType=0x20
ResClass=
WARNING: Short packet. Try increasing the snap length

(ttl 128, id 6969, len 96)
11:46:40.623432 192.168.1.74.137 > 192.168.1.255.137:
>>> NBT UDP PACKET(137): RELEASE; REQUEST; BROADCAST
TrnID=0x806E
OpCode=6
NmFlags=0x1
Rcode=0
QueryCount=1
AnswerCount=0
AuthorityCount=0
AddressRecCount=1
QuestionRecords:
Name=WORKGROUP       NameType=0x00 (Workstation)
QuestionType=0x20
QuestionClass=0x1

ResourceRecords:
Name=WORKGROUP       NameType=0x00 (Workstation)
ResType=0x20
ResClass=
WARNING: Short packet. Try increasing the snap length

(ttl 128, id 6970, len 96)
11:46:40.950603 192.168.1.244.137 > 192.168.1.255.137: [udp sum ok]
>>> NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
TrnID=0x81CC
OpCode=0
NmFlags=0x11
Rcode=0
QueryCount=1
AnswerCount=0
AuthorityCount=0
AddressRecCount=0
QuestionRecords:
Name=GA-DCC6E7B5206D NameType=0x00 (Workstation)
QuestionType=0x20
QuestionClass=0x1

(ttl 128, id 41521, len 7
11:46:40.955157 arp who-has 192.168.0.1 tell 192.168.0.14
11:46:41.105197 192.168.1.14.1980 > 222.36.44.8.80: F [tcp sum ok] 0:0(0) ack 1
win 9648 <nop,nop,timestamp 435610 119053142> (DF) (ttl 64, id 5283, len 52)
11:46:41.134587 219.133.131.231.18926 > 192.168.1.244.59024: [udp sum ok] udp 3
(ttl 127, id 35830, len 31)
11:46:41.134653 arp who-has 192.168.1.244 tell 192.168.1.14
11:46:41.185189 192.168.1.14.1981 > 222.36.44.11.80: F [tcp sum ok] 2865339679:2865339679(0) ack 2988811223 win 6432 <nop,nop,timestamp 435618 119078451> (DF) (ttl 64, id 5331, len 52)
20 packets received by filter
0 packets dropped by kernel

论坛徽章:
0
12 [报告]
发表于 2006-01-05 12:10 |只看该作者
eth0:0    Link encap:Ethernet  HWaddr 00:10:B5:C5:213
          inet addr:192.168.0.14  Bcast:192.168.1.255  Mask:255.255.255.0

网卡设置有问题吧?

论坛徽章:
0
13 [报告]
发表于 2006-01-05 12:14 |只看该作者
还是 ippen 心细 ^_^

改成这样


ifcfg-eth0:0

  1. DEVICE=eth0:0
  2. BOOTPROTO=static
  3. IPADDR=192.168.0.14
  4. NETMASK=255.255.255.0
  5. ONBOOT=yes
复制代码



ifcfg-eth0

  1. DEVICE=eth0
  2. BOOTPROTO=static
  3. IPADDR=192.168.1.14
  4. NETMASK=255.255.255.0
  5. ONBOOT=yes
复制代码

其他多余的都不要设,然后 service network restart

论坛徽章:
0
14 [报告]
发表于 2006-01-05 12:22 |只看该作者
如果成攻了,一定告诉你们!
好感动啊!
好人一生平安!

论坛徽章:
0
15 [报告]
发表于 2006-01-05 14:06 |只看该作者
不行,大哥,我真的也不想!我现在怀疑一个网卡能不能担负起两个网段的路由!
DEVICE=eth0:0                       
BOOTPROTO=static
IPADDR=192.168.1.14
NETMASK=255.255.255.0
ONBOOT=yes


DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.14
NETMASK=255.255.255.0
ONBOOT=yes
版主我完全照你的方法做的。还是ping 不通192.168.0.1!
在其它的1.1网段上pc 也无法ping通0.1网段上的pc!

论坛徽章:
0
16 [报告]
发表于 2006-01-05 14:21 |只看该作者
这个方法肯定可行,我用过的
请检查
两个网段接在同一个交换机上吗?
如果只配192.168.0.14,能ping通192.168.0.0段的pc吗?如果不行,先检查网线
尝试重启linux

[ 本帖最后由 ippen 于 2006-1-5 14:22 编辑 ]

论坛徽章:
0
17 [报告]
发表于 2006-01-05 14:27 |只看该作者
在一个交换机在!
交换上面有路由器!
另外如果只配192.168.0.14ping 192.168.0.1这个网段是没有问题的!

论坛徽章:
0
18 [报告]
发表于 2006-01-05 14:31 |只看该作者
tcpdump -nn -vv icmp
再抓包看看

论坛徽章:
0
19 [报告]
发表于 2006-01-05 14:34 |只看该作者
只配置192.168.0.14,然后用 命令 ip addr add 192.168.1.14/24 dev eth0增加一个ip
然后再试

论坛徽章:
0
20 [报告]
发表于 2006-01-05 14:34 |只看该作者
[root@gaoang root]# tcpdump -nn -vv icmp
tcpdump: listening on eth0
14:33:37.861667 192.168.1.14 > 219.133.40.130: icmp: host 192.168.1.244 unreachable for 219.133.40.130.8000 > 192.168.1.244.4001: udp 104 (DF) (ttl 55, id 0, len 132) [tos 0xc0]  (ttl 64, id 65511, len 160)
14:33:37.861697 192.168.1.14 > 219.133.40.130: icmp: host 192.168.1.244 unreachable for 219.133.40.130.8000 > 192.168.1.244.4001: udp 104 (DF) (ttl 55, id 0, len 132) [tos 0xc0]  (ttl 64, id 65512, len 160)
14:33:42.491647 192.168.1.14 > 219.133.40.130: icmp: host 192.168.1.244 unreachable for 219.133.40.130.8000 > 192.168.1.244.4001: udp 104 (DF) (ttl 55, id 0, len 132) [tos 0xc0]  (ttl 64, id 65513, len 160)
14:33:42.491678 192.168.1.14 > 219.133.40.130: icmp: host 192.168.1.244 unreachable for 219.133.40.130.8000 > 192.168.1.244.4001: udp 104 (DF) (ttl 55, id 0, len 132) [tos 0xc0]  (ttl 64, id 65514, len 160)
14:34:02.261638 192.168.1.14 > 219.133.40.130: icmp: host 192.168.1.244 unreachable for 219.133.40.130.8000 > 192.168.1.244.4001: udp 112 (DF) (ttl 55, id 0, len 140) [tos 0xc0]  (ttl 64, id 65515, len 168)
14:34:02.261671 192.168.1.14 > 61.236.110.8: icmp: host 192.168.1.244 unreachable for 61.236.110.8.30597 > 192.168.1.244.2751: P 2885181366:2885181445(79) ack 1403214925 win 65279 (DF) (ttl 109, id 33352, len 119) [tos 0xc0]  (ttl 64, id 9445, len 147)
14:34:02.261693 192.168.1.14 > 61.236.110.8: icmp: host 192.168.1.244 unreachable for 61.236.110.8.30597 > 192.168.1.244.2751: P 0:79(79) ack 1 win 65279 (DF) (ttl 109, id 33403, len 119) [tos 0xc0]  (ttl 64, id 9446, len 147)
14:34:05.261648 192.168.1.14 > 219.133.40.130: icmp: host 192.168.1.244 unreachable for 219.133.40.130.8000 > 192.168.1.244.4001: udp 112 (DF) (ttl 55, id 0, len 140) [tos 0xc0]  (ttl 64, id 65516, len 168)
14:34:05.261677 192.168.1.14 > 61.236.110.8: icmp: host 192.168.1.244 unreachable for 61.236.110.8.30597 > 192.168.1.244.2751: P 0:158(158) ack 1 win 65279 (DF) (ttl 109, id 33537, len 198) [tos 0xc0]  (ttl 64, id 9447, len 226)

9 packets received by filter
0 packets dropped by kernel

[ 本帖最后由 platinum 于 2006-1-5 14:51 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP