中国网管论坛's Archiver

IT傻博士 发表于 2006-9-8 01:24

(转自ITAA)个人问题汇总(workatlab)4

[table=98%][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 21-7月-2006 21:54 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
当在IGRP协议中使用事,偏移变量使用delay替代了hops。

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 22-7月-2006 11:21 | IP已记录 [/td][td=1,1,20%][/td][/tr][tr][td=2,1][/td][/tr][/table]
在cisco路由器上,用侦中继封装配置一个接口,inverse arp缺省是打开的.如果你对指定的dlci配置静态映射,inverse arp对这个dlci是自动关闭的.如果在这一端的路由器根本不支持inverse arp,也不支持你希望在侦中继上使用的特定协议的inverse arp,就必须用静态映射.]

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 23-7月-2006 09:09 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
NAT的TCP负载分发!!

[/td][/tr][tr][td][url=http://www.one-tom.com/bbs/forum_posts.asp?TID=1786&PN=1&TPN=4#top][color=#800080][/color][/url][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 23-7月-2006 09:10 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
丢弃路由VS翻动路由!
静态路由每隔一分钟重置一下路由!!
[/td][/tr][tr][td][url=http://www.one-tom.com/bbs/forum_posts.asp?TID=1786&PN=1&TPN=4#top][color=#800080][/color][/url][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 23-7月-2006 10:05 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
网络配置表中每个网络设备都需要的信息列表:
设备名称、型号、IOS名称和版本;
数据链路层地址和实现的特性;
网络层地址和实现的特性;
设备物理方面的重要信息。

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 23-7月-2006 10:28 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
创建终端系统网络配置文档的指南:
明确范围;
明确目标;
保持一致性;
使文档易于访问;
维护文档。

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 23-7月-2006 11:31 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
隔离数据链路层或物理层故障的指南:
检查运行状态和数据错误率;
确认接口配置正确;
检查电缆配置;
检查错误的电缆或连接;
检查错误的电缆。

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 23-7月-2006 17:39 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
接入端口在指定端口选举中不扮演任何角色。中继端口是用来连接到其他交换机的。接入端口是用来连接到主机或路由器的。这里所描述 的过程涉及的STP参数都是在中继链路上交互的。
[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 26-7月-2006 12:21 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b]ip directed-broadcast [/b]
[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 26-7月-2006 22:58 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b][size=3]timers basic 5 10 30 20[/size][/b]
RIP和IGRP 相同!!
[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]
[/td][td][table=98%][tr][td=1,1,80%]发表: 28-7月-2006 15:14 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table][size=2][b]实验:浮动静态路由[/b][/size]
[size=2][b]在看np的高级路由的时候书中有一个浮动静态路由的实验,我用远程的台子做了一下这个实验。[/b][/size]
[size=2][b]拓扑图[/b][/size]
[size=2][b]                               (r2)
                               /     \
                             /        \
                             /          \
                      (r1)--------(r3)[/b][/size]
[size=2][b]r1 s1/0:1.1.1.1/24 s2/0:10.1.1.1/24[/b][/size]
[size=2][b]r2 s1/0:2.2.2.2/24 s2/0:1.1.1.2/24[/b][/size]
[size=2][b]r3 s1/0:10.1.1.3/24 s2/0:2.2.2.3/24[/b][/size]
[size=2][b]配置如下:[/b][/size]
[size=2][b]r1[/b][/size]
[size=2][b]hostname 1
!
interface Serial1/0
ip address 1.1.1.1 255.255.255.0
clockrate 64000
!
interface Serial2/0
ip address 10.1.1.1 255.255.255.0
!
ip route 2.0.0.0 255.0.0.0 10.1.1.3[/b][/size]
[size=2][b]r2[/b][/size]
[size=2][b]hostname 2
!
interface Serial1/0
ip address 2.2.2.2 255.255.255.0
clockrate 64000
!
interface Serial2/0
ip address 1.1.1.2 255.255.255.0
!
ip route 10.0.0.0 255.0.0.0 1.1.1.1
[color=#660000]ip route 10.0.0.0 255.0.0.0 2.2.2.3 10       /手动添加的一条浮动路由,管理距离为10/[/color][/b][/color]
[size=2][b]r3[/b][/size]
[size=2][b]hostname 3
!
interface Serial1/0
ip address 10.1.1.3 255.255.255.0
clockrate 64000
!
interface Serial2/0
ip address 2.2.2.3 255.255.255.0
!
ip classless
ip route 1.0.0.0 255.0.0.0 10.1.1.1[/b][/size]
[size=2][b]我从r2上ping10.1.1.3,为了更好的看效果我添加了访问控制列表。[/b][/size]
[size=2][b]r2的路由表:
2#show ip route [/b][/size]
[size=2][b]     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Serial2/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial1/0
S    10.0.0.0/8[color=#330000] [/color][color=#660000][1/0] [/color]via 1.1.1.1
2(config)#access-list 101 permit ip host 1.1.1.2 host 10.1.1.3
2(config)#access-list 101 permit ip any
2#debug ip pac 101
debug输出为:
*Jul 28 06:51:20.367: IP: s=1.1.1.2 (local), d=10.1.1.3 (Serial2/0), len 100, sending
*Jul 28 06:51:20.407: IP: s=10.1.1.3 (Serial2/0), d=1.1.1.2 (Serial2/0), len 100, rcvd 3
*Jul 28 06:51:20.407: ICMP: echo reply rcvd, src 10.1.1.3, dst 1.1.1.2
*Jul 28 06:51:20.435: IP: s=1.1.1.2 (local), d=10.1.1.3 (Serial2/0), len 100, sending
*Jul 28 06:51:20.475: IP: s=10.1.1.3 (Serial2/0), d=1.1.1.2 (Serial2/0), len 100, rcvd 3
*Jul 28 06:51:20.475: ICMP: echo reply rcvd, src 10.1.1.3, dst 1.1.1.2
*Jul 28 06:51:20.487: IP: s=1.1.1.2 (local), d=10.1.1.3 (Serial2/0), len 100, sending
*Jul 28 06:51:20.527: IP: s=10.1.1.3 (Serial2/0), d=1.1.1.2 (Serial2/0), len 100, rcvd 3
*Jul 28 06:51:20.527: ICMP: echo reply rcvd, src 10.1.1.3, dst 1.1.1.2
*Jul 28 06:51:20.547: IP: s=1.1.1.2 (local), d=10.1.1.3 (Serial2/0), len 100, sending
*Jul 28 06:51:20.595: IP: s=10.1.1.3 (Serial2/0), d=1.1.1.2 (Serial2/0), len 100, rcvd 3
*Jul 28 06:51:20.595: ICMP: echo reply rcvd, src 10.1.1.3, dst 1.1.1.2
*Jul 28 06:51:20.615: IP: s=1.1.1.2 (local), d=10.1.1.3 (Serial2/0), len 100, sending
*Jul 28 06:51:20.675: IP: s=10.1.1.3 (Serial2/0), d=1.1.1.2 (Serial2/0), len 100, rcvd 3
*Jul 28 06:51:20.675: ICMP: echo reply rcvd, src 10.1.1.3, dst 1.1.1.2
注意到是从s2/0出去的.[/b][/color]
[size=2][b]现在我们在r1上把s1/0shutdown掉[/b][/size]
[size=2][b]r2的路由表:
2#show ip route
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial1/0
S    10.0.0.0/8 [color=#ff0000][10/0] [/color]via 2.2.2.3[/b][/color]
[size=2][b]r2上的访问控制列表为:
2(config)#access-list 102 permit ip host 1.1.1.2 host 10.1.1.3
2(config)#access-list 102 permit ip any
2#debug ip pac 102
debug输出为:
*Jul 28 06:58:22.775: IP: s=2.2.2.2 (local), d=10.1.1.3 (Serial1/0), len 100, sending
*Jul 28 06:58:22.815: IP: s=10.1.1.3 (Serial1/0), d=2.2.2.2 (Serial1/0), len 100, rcvd 3
*Jul 28 06:58:22.815: ICMP: echo reply rcvd, src 10.1.1.3, dst 2.2.2.2
*Jul 28 06:58:22.847: IP: s=2.2.2.2 (local), d=10.1.1.3 (Serial1/0), len 100, sending
*Jul 28 06:58:22.887: IP: s=10.1.1.3 (Serial1/0), d=2.2.2.2 (Serial1/0), len 100, rcvd 3
*Jul 28 06:58:22.887: ICMP: echo reply rcvd, src 10.1.1.3, dst 2.2.2.2
*Jul 28 06:58:22.907: IP: s=2.2.2.2 (local), d=10.1.1.3 (Serial1/0), len 100, sending
*Jul 28 06:58:22.947: IP: s=10.1.1.3 (Serial1/0), d=2.2.2.2 (Serial1/0), len 100, rcvd 3
*Jul 28 06:58:22.947: ICMP: echo reply rcvd, src 10.1.1.3, dst 2.2.2.2
*Jul 28 06:58:22.955: IP: s=2.2.2.2 (local), d=10.1.1.3 (Serial1/0), len 100, sending
*Jul 28 06:58:23.007: IP: s=10.1.1.3 (Serial1/0), d=2.2.2.2 (Serial1/0), len 100, rcvd 3
*Jul 28 06:58:23.007: ICMP: echo reply rcvd, src 10.1.1.3, dst 2.2.2.2
*Jul 28 06:58:23.015: IP: s=2.2.2.2 (local), d=10.1.1.3 (Serial1/0), len 100, sending
*Jul 28 06:58:23.067: IP: s=10.1.1.3 (Serial1/0), d=2.2.2.2 (Serial1/0), len 100, rcvd 3
*Jul 28 06:58:23.067: ICMP: echo reply rcvd, src 10.1.1.3, dst 2.2.2.2[/b][/size]
[size=2][b]可以看出ping是从s1/0出去的,说明了浮动路由起了作用.[/b][/size]

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 28-7月-2006 16:10 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table][size=2][/size]

[size=2][b]实验IGRP和EIGRP 重分布[/b][/size]
[size=2][b]---(Lo0)R2(S2/0)---(S1/0)R1(S2/0)----(S1/0)R3(Lo0)---[/b][/size]
[size=2][b]实验目的:验证IGRP和EIGRP 重分布[/b][/size]
[size=2][b]r1
hostname 1
!
interface Serial1/0
ip address 10.1.1.1 255.255.255.0
clockrate 64000
!
interface Serial2/0
ip address 172.16.1.1 255.255.255.0
!
router eigrp 1
network 10.1.1.0 0.0.0.255
no auto-summary
no eigrp log-neighbor-changes
!
router igrp 1
network 172.16.0.0[/b][/size]
[size=2][b]r2
hostname 2
!
interface Loopback0
ip address 172.16.2.1 255.255.255.0
!
interface Serial2/0
ip address 10.1.1.2 255.255.255.0
!
router eigrp 1
network 10.1.1.0 0.0.0.255
network 172.16.2.0 0.0.0.255
no auto-summary
no eigrp log-neighbor-changes[/b][/size]
[size=2][b]r3
hostname 3
!
interface Loopback0
ip address 172.16.3.1 255.255.255.0
!
interface Serial1/0
ip address 172.16.1.3 255.255.255.0
clockrate 64000
!
router igrp 1
network 172.16.0.0[/b][/size]
[size=2][color=#cc0000][b]在r2上的外部路由表示为"D EX",而在r3上外部路由表示为"I".[/b][/color][/size]
[size=2]
[/size][b] [/b]
[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 29-7月-2006 19:39 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b]实验:cdp[/b]
[b]----------(r1)(s1/0)-------(s2/0)(r2)(s1/0)---------(s2/0)(r 3)-----------[/b]
[b]r1[/b]

[b]hostname 1
!
interface Serial1/0
no ip address   /没有clo r/[/b]
[b]r2[/b]
[b]hostname 2
!
interface Serial1/0
no ip address
!
interface Serial2/0
no ip address[/b]
[b]hostname 3
!
interface Serial2/0
no ip address[/b]
[b]监视[/b]
[b]1#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                   S - Switch, H - Host, I - IGMP, r - Repeater[/b]
[b]Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
2           ; ;      Ser 1/0         &am p;nb sp;  151          R        Solaris UnSer 2/0[/b]
[b]2#show cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                   S - Switch, H - Host, I - IGMP, r - Repeater[/b]
[b]Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
1           ; ;      Ser 2/0         &am p;nb sp;  136          R        Solaris UnSer 1/0
3           ; ;      Ser 1/0         &am p;nb sp;  142          R        Solaris UnSer 2/0[/b]
[b]3#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                   S - Switch, H - Host, I - IGMP, r - Repeater[/b]
[b]Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
2           ; ;      Ser 2/0         &am p;nb sp;  143          R        Solaris UnSer 1/0[/b]
[b]可以看出一些邻居的信息,下面我在r2的s1/0上敲入no cdp en
2(config-if)#no cdp en [/b]
[b]2#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                   S - Switch, H - Host, I - IGMP, r - Repeater[/b]
[b]Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
1           ; ;      Ser 2/0         &am p;nb sp;  158          R        Solaris UnSer 1/0[/b]
[b]3#show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                   S - Switch, H - Host, I - IGMP, r - Repeater[/b]
[b]Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID[/b]
[b]显示了邻居表是空的。。[/b]
[b]我在全局模式下敲入no cdp run 整个网络中的路由器的cdp邻居表都是空的。[/b]
[b]总结:可见cdp是个二层协议,没有配置ip的情况也可以正常的工作。[/b]

[b] [/b]
[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 29-7月-2006 21:09 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b]实验:RIP工作原理监视[/b]
[b]实验目的:监视RIP的工作原理[/b]
[b]由于想知道rip的工作原理,所以决定利用手册一1.7的实验做个扩展来监视一下RIP的工作原理..[/b]
[b]拓扑[/b]
[b]----------(r2)(s2/0)-------(s1/0)(r1)(s2/0)---------(s1/0)(r 3)-----------\[/b]
[b]整个工作过程如下:[/b]
[b]1)我在路由器的每个接口上都配了IP,从中间的路由器上都能ping通它的对端;[/b]
[b]2)在每个路由器上都开了debug ip rip ,用于监视rip的输出;[/b]
[b]3)在每个路由器上敲入router rip,然后观察每个路由器的debug输出,大概等了5分钟没有debug输出,我们
可以得出结论,虽然是起用了rip,但是还没有把它应用到接口是不能起作用;[/b]
[b]4)我在r1上输入net 148.1.0.0 ,debug输出如下;[/b]
[b]*Jul 29 12:25:01.759: RIP: sending request on Serial1/0 to 255.255.255.255
*Jul 29 12:25:03.787: RIP: sending v1 flash update to 255.255.255.255 via Serial1/0 (148.1.1.2)
*Jul 29 12:25:03.787: RIP: build flash update entries - suppressing null update
*Jul 29 12:25:41.819: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (148.1.1.2)
*Jul 29 12:25:41.819: RIP: build update entries - suppressing null update[/b]
[b]从中可以发现一些现象,我来分析一下,它只从启用的接口上发出请求和一条空的更新,并观察到每更新一次时间大约是28s.同时注 意到r2上也没有什么动作.(原因r2上还没有在对应的接口上启用rip) [/b]
[b]5)我在r1上输入net 192.1.1.0 ,debug输出如下;[/b]
[b]*Jul 29 12:31:32.307: RIP: sending request on Serial2/0 to 255.255.255.255
*Jul 29 12:31:46.179: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (148.1.1.2)
*Jul 29 12:31:46.179: RIP: build update entries
*Jul 29 12:31:46.179:   network 192.1.1.0 metric 1
*Jul 29 12:31:46.179: RIP: sending v1 update to 255.255.255.255 via Serial2/0 (192.1.1.1)
*Jul 29 12:31:46.179: RIP: build update entries
*Jul 29 12:31:46.179:   network 148.1.0.0 metric 1[/b]
[b]可以看到它只是发送了一次request,以后就是每个28s发送一下路由更新,路由有水平分割的作用,只向一个方向发送.其它 路由也没有动作.[/b]
[b]6)我在r2上输入net 148.1.0.0 ,观察其输出;[/b]
[b]r2[/b]
[b]*Jul 29 12:37:34.387: RIP: sending request on Serial2/0 to 255.255.255.255
*Jul 29 12:37:34.479: RIP: received v1 update from 148.1.1.2 on Serial2/0
*Jul 29 12:37:34.479:      192.1.1.0 in 1 hops
*Jul 29 12:37:36.427: RIP: sending v1 flash update to 255.255.255.255 via Serial2/0 (148.1.1.1)
*Jul 29 12:37:36.427: RIP: build flash update entries - suppressing null update
*Jul 29 12:37:43.739: RIP: received v1 update from 148.1.1.2 on Serial2/0
*Jul 29 12:37:43.739:      192.1.1.0 in 1 hops[/b]
[b]注意到两个received,并且它们的更新间隔8s,说明什么?在看r1上发生了什么?[/b]
[b]*Jul 29 12:37:34.499: RIP: received v1 request from 148.1.1.1 on Serial1/0
*Jul 29 12:37:43.747: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (148.1.1.2)
*Jul 29 12:37:43.747: RIP: build update entries
*Jul 29 12:37:43.747:   network 192.1.1.0 metric[/b]
[color=#cc0000][b]我晕!这两个机器有时间差 *Jul 29 12:37:43.739:  *Jul 29 12:37:43.747:接收到一个request后,r1立即回一个request过去。[/b][/color]
[b]r3上的显示为[/b]
[b]*Jul 29 12:31:32.007: RIP: ignored v1 packet from 192.1.1.1 (not enabled on Serial1/0)[/b]
[color=#cc0000][b]分析得出它忽略rip pac[/b][/color]
[b]7)在r3上起用net 192.1.1.0 ,debug输出为:[/b]
[b]*Jul 29 12:46:04.155: RIP: sending request on Serial1/0 to 255.255.255.255
*Jul 29 12:46:04.247: RIP: received v1 update from 192.1.1.1 on Serial1/0
*Jul 29 12:46:04.247:      148.1.0.0 in 1 hops[/b]
[b]r1[/b]
[b]*Jul 29 12:46:04.539: RIP: received v1 request from 192.1.1.2 on Serial2/0
*Jul 29 12:46:04.539: RIP: sending v1 update to 192.1.1.2 via Serial2/0 (192.1.1.1)
*Jul 29 12:46:04.539: RIP: build update entries
*Jul 29 12:46:04.539:   network 148.1.0.0 metric 1[/b]
[color=#cc0000][b]在r3上发出一个request它马上得到r1的响应,在看r1,真TMD的快,接收的同时就发一个update给r3.[/b][/color]


[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 29-7月-2006 21:40 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b]1(config-if)#ip rip send version 1 [/b]
[b]1(config-if)#ip rip send version 2  [/b]
[b]1(config-if)#ip rip send version 2  [/b]
[b]1(config-if)#ip rip receive version 1[/b]
[b]1(config-if)#ip rip receive version 2[/b]
[b]1(config-if)#ip rip receive version 1 2 [/b]
[b]注意它们debug输出的不同。[/b]
[b]组播和广播的区别。[/b]
[b]还有neighbor的单播。。。[/b]



[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 29-7月-2006 23:25 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table][b][size=2][/size][/b]
[b][size=2]1#show ip protocols
[color=#ff0000]Routing Protocol is "rip"[/color]
[color=#ff0000]  Sending updates[/color][color=#000033] [/color]every 30 seconds, next due in 11 seconds
  [color=#ff0000]Invalid after 180 seconds, hold down 180, flushed after 240[/color]
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Redistributing: rip
  Default version control: send version 2, receive version 2
    Interface        &am p;nb sp;    Send  Recv  Triggered RIP  Key-chain
    Serial1/0        &am p;nb sp;    2     2           ; ;           ; ;           ; ;      
    Serial2/0        &am p;nb sp;    2     2           ; ;           ; ;           ; ;      
  Automatic network summarization is [color=#ff0000]not in effect[/color]
  Maximum path: 4
  Routing for Networks:
    148.1.0.0
    192.1.1.0
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: ([color=#ff0000]default is 120)[/color][/color][/b]
[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 30-7月-2006 16:26 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b]今天测试了rip的几个debug输出:[/b]
[b]2#debug ip rip [/b]
[b]2#debug ip rip database [/b]
[b]2#debug ip rip events [/b]
[b]2#debug ip rip trigger[/b]

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 30-7月-2006 20:38 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b]生活中有很多小的细节揭示了事物存在的机理,下面是我在看debug时候看到的一些东西;[/b]
[b]*Jul 30 12:18:01.871: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (152.1.1.2)
*Jul 30 12:18:01.871: RIP: build update entries
*Jul 30 12:18:01.871:   network 1.0.0.0 metric 1
*Jul 30 12:18:01.871: RIP: sending v1 update to 255.255.255.255 via Loopback1 (1.1.1.1)
*Jul 30 12:18:01.871: RIP: build update entries
*Jul 30 12:18:01.871:   network 2.0.0.0 metric 3
*Jul 30 12:18:01.871:   network 148.1.0.0 metric 2
*Jul 30 12:18:01.871:   network 152.1.0.0 metric 1[/b]
[b]注意到从接口上学的到路由条目就没有从接口上传出去,解释一下,我从s1/0上学到了3条[/b]
[b]分别是 2.0.0.0  148.1.0.0  152.1.0.0 就没有从s1/0在传出去,相同的原因1.0.0.0也[/b]
[b]是一样的道理,我在s1/0上启用了水平分割后呢?我看看效果吧![/b]
[b]3(config-if)#no ip split-horizon[/b]
[b]*Jul 30 12:23:34.211: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (152.1.1.2)
*Jul 30 12:23:34.211: RIP: build update entries
*Jul 30 12:23:34.211:   network 1.0.0.0 metric 1
*Jul 30 12:23:34.211:   network 2.0.0.0 metric 3
*Jul 30 12:23:34.211:   network 148.1.0.0 metric 2
*Jul 30 12:23:34.211:   subnet 152.1.1.0 metric 1[/b]
[b]知道了水平分割的具体运转情况了吧![/b]

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 30-7月-2006 23:06 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b]1#show ip os interface
Serial2/0 is up, line protocol is up
  Internet Address 192.1.1.1/24, [color=#ff0000]Area 0[/color]
  [color=#ff0000]Process ID 1,[/color] [color=#ff0000]Router ID 192.1.1.1[/color], [color=#ff0000]Network Type POINT_TO_POINT[/color], [color=#ff0000]Cost: 64
[/color]  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, [color=#ff0000]Hello 10, Dead 40, Wait 40, Retransmit 5
[/color]    Hello due in 00:00:04
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    [color=#ff0000]Adjacent with neighbor 192.1.1.2[/color]
  Suppress hello for 0 neighbor(s)
Serial1/0 is up, line protocol is up
  Internet Address 148.1.1.1/24, Area 0
  Process ID 1, Router ID 192.1.1.1, Network Type POINT_TO_POINT, Cost: 64
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:04
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1
    Adjacent with neighbor 148.1.1.2
  Suppress hello for 0 neighbor(s)[/b]

[/td][/tr][tr][td][color=#800080][/color][/td][td] [/td][/tr][/tr][tr][td=2,1][size=2px] [/size][/td][tr][td]workatlab
ITAA会员
[img]http://www.one-tom.com/bbs/forum_images/3_star_rating.gif[/img]
[img=64,64]forum_images/blank.gif[/img]

[/td][td][table=98%][tr][td=1,1,80%]发表: 31-7月-2006 12:26 | IP已记录 [/td][td=1,1,20%] [/td][/tr][tr][td=2,1][/td][/tr][/table]
[b]2#show ip os v
Virtual Link OSPF_VL0 to router 3.3.3.3 is up
  Run as demand circuit
  DoNotAge LSA allowed.
  Transit area 1, via interface Serial1/0, Cost of using 64
  Transmit Delay is 1 sec, State POINT_TO_POINT,
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:06
    Adjacency State FULL (Hello suppressed)
    Index 2/3, retransmission queue length 0, number of retransmission 1
    First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
    Last retransmission scan length is 1, maximum is 1
    Last retransmission scan time is 0 msec, maximum is 0 msec[/b]
[/td][/tr][/table]

天地人 发表于 2006-9-23 01:39

来把好帖顶上去

清歌一笑 发表于 2006-9-23 10:48

........强啊

hacker1539 发表于 2006-9-27 20:25

看起来眼睛花了,不懂说的是什么?

IT傻博士 发表于 2006-9-29 02:58

[quote]原帖由 [i]hacker1539[/i] 于 2006-9-27 20:25 发表
看起来眼睛花了,不懂说的是什么? [/quote]

要细细的看,这是我们ITAA内部论坛的学员讨论的技术问题.

页: [1]

Powered by Discuz! Archiver 6.1.0  © 1999-2008 bbs.bitsCN.com