博客统计信息

51cto推荐博客
用户名:meiyanaa
文章数:49
评论数:135
访问量:75986
无忧币:1235
博客积分:1868
博客等级:6
注册日期:2009-04-15

我最近发表的评论

BSCI—7:OSPF的.. 回复
这条命令可以敲,至于自动汇总, O..
CCNA--LAB-(7-1).. 回复
你是在什么设备上执行的?
CCNA--LAB-11:配.. 回复
不会吧,你用什么做的
CCNA--LAB-2:配.. 回复
DTE与DCE是在串口上用的, 我用的快..
BSCI—8-(1):OSP.. 回复
谢谢~

背景音乐

我的音乐

00:00 | 00:00

公告

近期力作:CCNP系列之BSCI(构建可扩展CISCO网络),文章内容与CCNP大纲同步.
注:CISCO系列课程均为本人原创,如需转载,请与本人联系,否则追究法律责任!
欢迎各位提出富贵建议,多多留言,给小弟博客攒些人气!
一.提出背景:IS-IS提出是为ISO的OSI协议提供服务,为OSI协议栈中CLNS提供路由服务的一款协议.


二.基本术语:1.CONS     面向连接的网络服务2.CLNS     面向无连接的网络服务3.CLNP     面向无连接的网络协议  (为CLNS提供服务)4.ES        终端系统5.IS        中间系统


三.IS-IS路由层次关系:1.LEVEL 0 :ES 与IS 之间通信2.LEVEL 1: 同区域的IS之间通信3.LEVEL 2: 不同区域之间的IS通信4.LEVEL 3:不同AS之间通信


四.IS-IS路由器类型:1.LEVEL 1 IS :..
类别:CCNP|阅读(469)|回复(1)|(0)阅读全文>>
2010-02-02 08:31:12
一、认证的作用
1.增加网络安全性(推荐使用MD5)
2.对OSPF重新配置时,不同口令可以配置在新口令和旧口令的路由器上,防止它们在一个共享的公共广播网络的情况下互相通信
 
 
 

二、认证的种类
OSPF路由方式有三种:0 Null (也就是不认证), 1 (明文认证), 2 (MD5加密校验和)
 
 
 

三、实验拓扑,各种信息如拓扑所示:


 
1.  明文认证:
 

R1:
Router>
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#interface f0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#router ospf 1     //启用OSPF路由协议
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 192.168.1.1 0.0.0.0 area 0
R1(config-router)#exit
R1(config)#interface f0/0
R1(config-if)#ip ospf authentication     //启用认证,不打这个命令的话,密码不起作用
R1(config-if)#ip ospf authentication-key cisco    //配置密码(两边需一样)
R1(config-if)#exit
R1(config)#router ospf 1
R1(config-router)#area 0 authentication    //区域0采用明文认证
R1(config-router)#end
R1#
 
 



R2:
Router>
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#interface f0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#router ospf 1
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 192.168.1.2 0.0.0.0 area 0
R2(config-router)#exit
R2(config)#interface f0/0
R2(config-if)#ip ospf authentication    //启用认证,不打这个命令的话,密码不起作用
R2(config-if)#ip ospf authentication-key cisco     //配置密码
R2(config-if)#exit
R2(config)#router ospf 1
R2(config-router)#area 0 authentication      //区域0采用明文认证
R2(config-router)#end
R2#
 
 

查看R1接口信息:
R1#show ip ospf interface f0/0
FastEthernet0/0 is up, line protocol is up
  Internet address is 192.168.1.1/24, Area 0
  Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 1.1.1.1, Interface address 192.168.1.1
  Backup Designated Router (ID) 2.2.2.2, Interface address 192.168.1.2
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:07
  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 2.2.2.2  (Backup Designated Router)
  Suppress hello for 0 neighbor(s)
  Simple password authentication enabled   //明文密码认证启用
R1#
 
 

查看R1邻居表:
R1#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   FULL/BDR        00:00:31    192.168.1.2     FastEthernet0/0
R1#
 
 
 


2.MD5认证
 
MD5算法用在类型2 的认证方式中,将OSPF数据包内容与一个口令计算一个散列值,与密钥ID一起发送,有了密钥ID可以让路由器指定多个口令,口令最大长度16字节,密钥ID在1-255之间,一对邻居路由器密钥ID与口令必须相同.

R1:
R1(config)#interface f0/0
R1(config-if)#no ip ospf authentication     //NO掉明文认证
R1(config-if)#ip ospf message-digest-key 1 md5 cisco
//使用Key-id为1,密码为cisco的MD5认证方式(Key-id与密码两边都需一样)
R1(config-if)#exit
R1(config)#router ospf 1
R1(config-router)#area 0 authentication message-digest   //区域0采用MD5认证
R1(config-router)#end
R1#


R2:
R2(config)#interface f0/0
R2(config-if)#no ip ospf authentication     //同上
R2(config-if)#ip ospf message-digest-key 1 md5 cisco     //同上
R2(config-if)#exit
R2(config)#router ospf 1
R2(config-router)#area 0 authentication message-digest 
R2(config-router)#end
R2#
 

查看R1接口信息:
R1#show ip ospf interface f0/0
FastEthernet0/0 is up, line protocol is up
  Internet address is 192.168.1.1/24, Area 0
  Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DR, Priority 1
  Designated Router (ID) 1.1.1.1, Interface address 192.168.1.1
  Backup Designated Router (ID) 1.1.1.1, Interface address 192.168.1.1
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    Hello due in 00:00:09
  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 2.2.2.2
  Suppress hello for 0 neighbor(s)
  Message digest authentication enabled    //启用MD5认证
    Youngest key id is 1
R1#
 

注意:在一个区域只能使用一种认证方式,在不同链路之间口令可以不同。[/img]..
类别:CCNP|阅读(219)|回复(0)|(0)阅读全文>>
2010-01-29 16:14:08
教育篇:

1.每天花半个小时和孩子交流。
2.和孩子在家也要使用文明用语,“早上好,请,谢谢,晚安”等等。
3.让孩子养成爱卫生的好习惯。
4.多听听孩子的声音!——用耐心、用爱心、用开心,心是长着眼睛的!
5.不要为了提醒孩子,而总是揭孩子的伤疤。
6.严肃指出孩子的错误!
7.不要总对孩子一本正经,要多和孩子一起欢笑:因为笑声能让孩子更加热爱生活;引导孩子积极、轻松愉快的看待事物。 
8.给孩子讲故事,要有耐心,故事有一定的教育意义。 
9.不要把当年未曾实现的理想强加在孩子身上,想让孩子..
一、NSSA区域:

1.只有NSSA区域中才会现LSA7,可以存在ASBR,阻止LSA4/5

2.ABR将LSA7转成LSA5,传播到其他区域,这时,ABR也成为了ASBR,因为它也引入了LSA5,其它路由器看到LSA5的通告路由器是ABR。
 
 
二、实验拓扑如下:R1到R2属区域0,R2到R3属区域1并配置为NSSA区域,R1与R3分别运行RIP与EIGRP模拟OSPF外部路由,接口与IP地址信息如下所示.


步骤一:配置3台路由器及路由协议,并如图发布网段.
 
R1:
Router>
Router>en
Router#conf t
Router(config)#hostname R1
R1(config-line)#exit
R1(config)#interface f0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#interface loopback 0
R1(config-if)#ip address 1.1.1.1 255.255.255.0
R1(config-if)#ip ospf network point-to-point    //防止学习32位的主机路由
R1(config-if)#int lo1
R1(config-if)#ip address 1.1.2.1 255.255.255.0
R1(config-if)#ip ospf network point-to-point    //防止学习32位的主机路由
R1(config-if)#exit
R1(config)#router ospf 1        //启用OSPF路由协议
R1(config-router)#router-id 1.1.1.1    //指定ROUTE-ID
R1(config-router)#network 192.168.1.1 0.0.0.0 area 0    //发布网段到区域0
R1(config-router)#exit
R1(config)#router rip     //启用RIP路由协议
R1(config-router)#version 2     //指定版本2
R1(config-router)#no auto-summary     //不要自动汇总
R1(config-router)#network 1.1.1.0    //发布网段
R1(config-router)#network 1.1.2.0    //同上
R1(config-router)#end
R1#
 

R2:
start
Router>
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#interface f0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#interface f0/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#interface loopback 0
R2(config-if)#ip address 2.2.1.1 255.255.255.0
R2(config-if)#ip ospf network point-to-point
R2(config-if)#int lo1
R2(config-if)#ip address 2.2.2.1 255.255.255.0
R2(config-if)#ip ospf network point-to-point
R2(config-if)#exit
R2(config)#router ospf 1     //启用OSPF路由协议
R2(config-router)#router-id 2.2.2.2     //同上
R2(config-router)#network 192.168.1.2 0.0.0.0 area 0
R2(config-router)#network 192.168.2.2 0.0.0.0 area 1
R2(config-router)#network 2.2.1.1 0.0.0.0 area 0   
R2(config-router)#network 2.2.2.1 0.0.0.0 area 0
R2(config-router)#end    
R2#
 

R3:
Router>
Router>en
Router#conf t
Router(config)#hostname R3
R3(config)#interface f0/1
R3(config-if)#ip address 192.168.2.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#interface loopback 0
R3(config-if)#ip address 172.16.1.1 255.255.255.0
R3(config-if)#int lo1
R3(config-if)#ip address 172.16.2.1 255.255.255.0
R3(config-if)#exit
R3(config)#router ospf 1     //启用OSPF路由协议
R3(config-router)#router-id 3.3.3.3     //同上
R3(config-router)#network 192.168.2.1 0.0.0.0 area 1
R3(config-router)#exit
R3(config)#router eigrp 1
R3(config-router)#no auto-summary
R3(config-router)#network 172.16.1.0 0.0.0.255
R3(config-router)#network 172.16.2.0 0.0.0.255
R3(config-router)#end
R3#
 
 
 
步骤二:在R1与R3上进行路由的重发布,使得路由器能够互相学习外部路由.
 
R1(config)#router ospf 1
R1(config-router)#redistribute rip subnets    //将RIP重发布进OSPF
R1(config-router)#exit
R1(config)#router rip
R1(config-router)#redistribute ospf 1 metric 1     //将OSPF重发布进RIP度量为1
R1(config-router)#end
R1#
R3(config)#router ospf 1
R3(config-router)#redistribute eigrp 1 subnets     //将EIGRP重发布进OSPF
R3(config-router)#exit
R3(config)#router eigrp 1
R3(config-router)#redistribute ospf 1 metric 100000 5 255 1 1500
//将OSPF重发布进EIGRP,带宽=100000KM 廷迟=5 可靠性=255 负载=1 最大传输单元=1500
R3(config-router)#end
R3#
 
 

步骤三:将区域1配置为NSSA区域.
 
R2(config)#router ospf 1
R2(config-router)#area 1 nssa     //将区域1配置为NSSA
R2(config-router)#end
R2#
R3(config)#router ospf 1
R3(config-router)#area 1 nssa     //将区域1配置为NSSA
R3(config-router)#end
R3#
 
 

步骤四:在R1,R2与R3上分别验证
 
查看R1路由表:
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     1.0.0.0/24 is subnetted, 2 subnets
C       1.1.1.0 is directly connected, Loopback0
C       1.1.2.0 is directly connected, Loopback1
     2.0.0.0/24 is subnetted, 2 subnets
O       2.2.1.0 [110/2] via 192.168.1.2, 00:08:29, FastEthernet0/0
O       2.2.2.0 [110/2] via 192.168.1.2, 00:08:29, FastEthernet0/0
     172.16.0.0/24 is subnetted, 2 subnets
O E2    172.16.1.0 [110/20] via 192.168.1.2, 00:07:34, FastEthernet0/0
O E2    172.16.2.0 [110/20] via 192.168.1.2, 00:07:34, FastEthernet0/0
C    192.168.1.0/24 is directly connected, FastEthernet0/0
O IA 192.168.2.0/24 [110/2] via 192.168.1.2, 00:08:04, FastEthernet0/0
R1#    
//R1上可以学习到所有路由,因为它是正常区域,没有做任何配置,可以学习所以类型的LSA
 

查看R2路由表:
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     1.0.0.0/24 is subnetted, 2 subnets
O E2    1.1.1.0 [110/20] via 192.168.1.1, 00:04:19, FastEthernet0/0
O E2    1.1.2.0 [110/20] via 192.168.1.1, 00:04:19, FastEthernet0/0
     2.0.0.0/24 is subnetted, 2 subnets
C       2.2.1.0 is directly connected, Loopback0
C       2.2.2.0 is directly connected, Loopback1
     172.16.0.0/24 is subnetted, 2 subnets
O N2    172.16.1.0 [110/20] via 192.168.2.1, 00:04:19, FastEthernet0/1
O N2    172.16.2.0 [110/20] via 192.168.2.1, 00:04:19, FastEthernet0/1
C    192.168.1.0/24 is directly connected, FastEthernet0/0
C    192.168.2.0/24 is directly connected, FastEthernet0/1
R2#
//有人肯定会说NSSA区域不是不会学习5类LSA吗,怎么多了2条E2的路由?
因为R2是NSSA的ABR,它所要做的事情就是将7类型LSA转成5类LSA并传播到区域间每个路由器,还有NSSA区域可以学习本区域引入的外部路由,上面两条N2的路由为从R3上EIGRP所学的外部路由.

查看R3路由表:
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
     2.0.0.0/24 is subnetted, 2 subnets
O IA    2.2.1.0 [110/2] via 192.168.2.2, 00:13:21, FastEthernet0/1
O IA    2.2.2.0 [110/2] via 192.168.2.2, 00:13:21, FastEthernet0/1
     172.16.0.0/24 is subnetted, 2 subnets
C       172.16.1.0 is directly connected, Loopback0
C       172.16.2.0 is directly connected, Loopback1
O IA 192.168.1.0/24 [110/2] via 192.168.2.2, 00:13:21, FastEthernet0/1
C    192.168.2.0/24 is directly connected, FastEthernet0/1
R3#
//R3属于NSSA区域内,而非NSSA区域ABR,所以它就验证了NSSA区域不能学习其它区域引入的外部路由。
 
 
 
疑问:为什么在R2上面会发生7类LSA转5类LSA?
我们来看看R2的OSPF链路状态数据库:
R2#show ip ospf database
                Type-7 AS External Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum Tag
172.16.1.0      3.3.3.3         1501        0x80000001 0x00C09F 0
172.16.2.0      3.3.3.3         1501        0x80000001 0x00B5A9 0
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#       Checksum Tag
1.1.1.0         1.1.1.1         483         0x80000002 0x00A3F4 0
1.1.2.0         1.1.1.1         484         0x80000002 0x0098FE 0
172.16.1.0      2.2.2.2         1495        0x80000001 0x0073FA 0
172.16.2.0      2.2.2.2         1495        0x80000001 0x006805 0
R2#

注:前面说过,只有NSSA区域存放7类LSA,所以7类LSA传播到其它区域根本就不识别,仔细看R2上5类与7类LSA的摘要,都存放了172.16.1.0与172.16.2.0,所以这就7类变5类LSA的转折点.
 
 
总结:相信通过这两篇文章,大家对OSPF的特殊区域有个比较好的认识与掌握.[/img]..
类别:CCNP|阅读(360)|回复(2)|(0)阅读全文>>
一、介绍
 
 

标准区域:默认的区域类型,接收链路更新路由汇总外部路由
 
末节区域:将某区域设为Stub可缩小区域的LSDB,降低内存消耗。阻止LSA4/5进入Stub区域。
成为末节区域的标准:1.必须将Stub区域的所有路由器都配成Stub。 2.Stub区域不能用作虚链路的中转区域。 3.Stub中不能出现ASBR。 4.Area 0不能配成Stub。
 
完全末节区域(CISCO私有):更加缩小区域的LSDB,在Stub基础上,阻止LSA3。(阻止LSA3/4/5 ),也会由ABR发出一条LSA3默认路由给Stub的其他路由器。
&nbs..
类别:CCNP|阅读(642)|回复(1)|(0)阅读全文>>
一、OSPF路由汇总优点:
OSPF路由汇总可以减少路由表条目,减少类型3和类型5的LSA的洪泛,节约带宽资源和减轻路由器CPU负载,还能够对拓扑的变化本地化。
 
 

二、OSPF路由汇总的两种类型如下: (两种方式均会演示)
1.inter-area(IA) route summarization:发生在ABR上 
2.external route summarization:发生在ASBR上
 
 

三、实验1:OSPF区域间汇总,发生在ABR上,接口信息及IP地址规划,区域信息如拓扑所示。

步骤一:配置3台路由器,并且用OSPF。
 

R1:

R1>
R1>en
R1#conf t
R1(config)#interface f0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#interface loopback 0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#int lo1
R1(config-if)#ip address 10.1.2.1 255.255.255.0
R1(config-if)#int lo2
R1(config-if)#ip address 10.1.3.1 255.255.255.0
R1(config-if)#exit
R1(config)#router ospf 1     //启用OSPF路由协议
R1(config-router)#network 10.1.1.1 0.0.0.0 area 1    //发布网段
R1(config-router)#network 10.1.2.1 0.0.0.0 area 1
R1(config-router)#network 10.1.3.1 0.0.0.0 area 1
R1(config-router)#network 192.168.1.1 0.0.0.0 area 1
R1(config-router)#end
R1#
 
 


R2:

R2>en
R2#conf t
R2(config)#interface f0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-router)#exit
R2(config)#interface f0/1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#router ospf 1     //启用OSPF路由协议
R2(config-router)#network 192.168.1.2 0.0.0.0 area 1     //同上
R2(config-router)#network 192.168.2.2 0.0.0.0 area 0 
R2(config-router)#end
R2#
 
 


R3:

R3>
R3>en
R3#conf t
R3(config)#interface f0/1
R3(config-if)#ip add
R3(config-if)#ip address 192.168.2.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exit

R3(config)#router ospf 1     //同上
R3(config-router)#network 192.168.2.1 0.0.0.0 area 0
R3(config-router)#end
R3#
 
查看R3路由表:  //已经学习到R1三条明细路由
R3#sh ip route 
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/32 is subnetted, 3 subnets
O IA    10.1.1.1 [110/3] via 192.168.2.2, 00:01:18, FastEthernet0/1
O IA    10.1.2.1 [110/3] via 192.168.2.2, 00:01:18, FastEthernet0/1
O IA    10.1.3.1 [110/3] via 192.168.2.2, 00:01:18, FastEthernet0/1
O IA 192.168.1.0/24 [110/2] via 192.168.2.2, 00:01:18, FastEthernet0/1
C    192.168.2.0/24 is directly connected, FastEthernet0/1
R3#
 
 
 


步骤二:在R2(ABR)上执行汇总,再次查看R3上路由表
 

R2(config)#router ospf 1
R2(config-router)#area 1 range 10.1.0.0 255.255.252.0
//把3条明细路由汇总为掩码为/22的汇总路由.
R2(config-router)#end
R2#
 

查看R3路由表:
R3#sh ip route 
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/22 is subnetted, 1 subnets
O IA    10.1.0.0 [110/65] via 192.168.2.2, 00:00:16, FastEthernet0/1
//变为掩码为22的汇总路由
C    192.168.2.0/24 is directly connected, FastEthernet0/1
R3#
 
 

实验2:OSPF域间汇总,发生在(ASBR)上,拓扑如下,R1运行了OSPF与RIP两种路由协议,所以它为ASBR,IP地址与区域已规划好.


步骤一:在2台路由器上配置OSPF与RIP,并发布网段.
R1:

Router>
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#interface f0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config)#interface loopback 0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#int lo1
R1(config-if)#ip address 10.1.2.1 255.255.255.0
R1(config-if)#int lo2
R1(config-if)#ip address 10.1.3.1 255.255.255.0
R1(config-if)#exit
R1(config)#router ospf 1      //启用OSPF路由协议
R1(config-router)#network 192.168.1.1 0.0.0.0 area 0
R1(config-router)#exit
R1(config)#router rip     //启用RIP路由协议
R1(config-router)#version 2     //指定版本2
R1(config-router)#no auto-summary     //不要自动汇总
R1(config-router)#network 10.1.1.0     //发布网段
R1(config-router)#network 10.1.2.0
R1(config-router)#network 10.1.3.0
R1(config-router)#exit
R1(config)#end
R1#
 

R2:
Router>
Router>en
Router#conf t
Router(config)#hostname R2
R2(config)#interface f0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#router ospf 1     //同上
R2(config-router)#network 192.168.1.2 0.0.0.0 area 0
R2(config-router)#end
R2#
 
 
 
步骤二:在R1上把RIP与OSPF互相重发布,并查看R2路由表.

R1(config)#router rip
R1(config-router)#redistribute ospf 1 metric 1   //把OSPF发布进RIP,度量值为1
R1(config-router)#exit
R1(config)#router ospf 1
R1(config-router)#redistribute rip subnets      //把RIP路由发布进OSPF
R1(config-router)#end
R1#

查看R2路由表:   //此时已经学习重发布进OSPF的外部路由表条目
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 3 subnets
O E2    10.1.3.0 [110/20] via 192.168.1.1, 00:00:40, FastEthernet0/0
O E2    10.1.2.0 [110/20] via 192.168.1.1, 00:00:40, FastEthernet0/0
O E2    10.1.1.0 [110/20] via 192.168.1.1, 00:00:40, FastEthernet0/0
C    192.168.1.0/24 is directly connected, FastEthernet0/0
R2#
注:E2表示OSPF的外部路由类型2.
 

步骤三:在R1(ASBR)上做域间汇总,使得3条明细汇总为一条.并查看R2路由表.
R1(config)#router ospf 1
R1(config-router)#summary-address 10.1.0.0 255.255.252.0
//把之前3条明细路由汇总成掩码为22的汇总路由
R1(config-router)#end
R1#

查看R2路由表:
R2#show ip route      //此时已经变为掩码为22的汇总路由.
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/22 is subnetted, 1 subnets
O E2    10.1.0.0 [110/20] via 192.168.1.1, 00:00:44, FastEthernet0/0
C    192.168.1.0/24 is directly connected, FastEthernet0/0
R2#

实验完成.
[/img]..
类别:CCNP|阅读(642)|回复(3)|(0)阅读全文>>
一个男人关心的东西 决定了他的层次

一、拥有自信和风度
男人到了二十几岁后,就要开始学着用心去经营自己了,它体现在自己的思想与涵养上。自信是一个男人最重要的品质,自信的男人就你像一只在暴风雨中战斗的海鸥。海鸥所要说的只有一句话“让暴风雨来的再猛烈些吧”,只因为它无所畏惧。一个自信的男人,总是能够感染别人,无论这些人是朋友还是敌人。要使别人对你有信心,就必须要先对自己充满信心。自信的男人可以战胜一切困难。
一个有风度的男人就像一片大海,不拒点滴,又包容江河。有风度使男人得到更多的青睐,不争眼前..
一、OSPF的七种类型LSA详解
 
 1、路由器LSA (Router LSA):由区域内所有路由器产生,并且只能在本个区域内泛洪广播,这些最基本的LSA通告列出了路由器所有的链路和接口,并指明了它们的状态和沿每条链路方向出站的代价。

 2、网络lsa (Network LSA):由区域内的DR或BDR路由器产生,报文包括DR和BDR连接的路由器的链路信息,网络LSA也仅仅在产生这条网络LSA的区域内部进行泛洪。

 3、网络汇总LSA (Network Summary Lsa):由ABR产生,可以通知本区域内的路由器通往区域外的路由信息,在一个区域外部但是仍然在一个ospf自..
类别:CCNP|阅读(774)|回复(1)|(0)阅读全文>>
一.OSPF定义了五种类型:
 


1. 点到多:将非广播网络视为一系列点到点链路。路由器自动识别邻接路由器,但不选举dr和bdr,通常用于部分互联网络中
 
2. NBMA(非广播多路访问):网络中允许存在多台Router,物理上链路共享,通过二层虚(VC)建立逻辑上的连接
 
3. 点到点:一个网络里仅有2个接口,使用HDLC或PPP封装,不需寻址 (cisco私有)
 
4. 广播型:广播型多路访问,目前而言指的就是以太网链路,涉及IP 和Mac,用ARP实现二层和三层映射。  (cisco私有)
 
5...
类别:CCNP|阅读(1163)|回复(1)|(0)阅读全文>>
一:OSPF包的类型:
 

1、 HELLO包:用来建立和维持邻居关系;
2、 DATEBASE DESCRIPTION (DBD):用来检验路由器之间的数据库并进行同步的;
3、 Link state request (LSR):链路状态请求;
4、 Link state update(LSU):“特定”链路之间的请求记录;
5、 Link state acknowledgement (LSAck):确认包;
 
 
 



二:解释为何需要ACK包
 

OSPF包也是包含在IP数据分组中的,使用的协议号是89,而不是..
类别:CCNP|阅读(811)|回复(1)|(0)阅读全文>>
 <<   1   2   3   4   5   >>   页数 ( 1/5 )