OSPF环境中在ABR上过滤类型3的LSA(1)

网络 网络管理
LSA(链路状态广播)是链接状态协议使用的一个分组,它包括有关邻居和通道成本的信息。 LSAs被接收路由器用于维护它们的路由选择表,每一个OSPFLSA都有一个生存期,它指示LSA是否仍然还有效。一旦LSA到达了最大生存期(1小时),它就会被抛弃。

OSPF环境中在ABR上过滤类型3的LSA—拓扑图

 

OSPF环境中在ABR上过滤类型3的LSA

OSPF环境中在ABR上过滤类型3的LSA—需求

在2台路由器上启动OSPF,并使帧中继接口都参与区域0,在每台路由器上添加3个loopback接口,loop0、loop1、loop2,R1的3个loopback接口参与ospf区域1,R2的3个loopback接口参与ospf区域2。

OSPF环境中在ABR上过滤类型3的LSA—配置过程

  1. R1(config)#interface s 0  
  2. R1(config-if)#encasulation frame-relay  
  3. R1(config-if)#no frame-relay inverse  
  4. R1(config-if)#no arp frame-relay  
  5. R1(config-if)#ip address 10.1.1.1 255.255.255.0  
  6. R1(config-if)#frame-relay map ip 10.1.1.2 102 broadcast  
  7. R1(config-if)#no shutdown  
  8. R1(config)#interface loop0  
  9. R1(config-if)#ip address 192.168.1.1 255.255.255.0  
  10. R1(config-if)#ip ospf network point-to-point  
  11. R1(config-if)#interface loop1  
  12. R1(config-if)#ip address 192.168.2.1 255.255.255.0  
  13. R1(config-if)#ip ospf network point-to-point  
  14. R1(config-if)#interface loop2  
  15. R1(config-if)#ip address 192.168.3.1 255.255.255.0  
  16. R1(config-if)#ip ospf network point-to-point  
  17.  
  18. R2(config)#interface s 0  
  19. R2(config-if)#encasulation frame-relay  
  20. R2(config-if)#no frame-relay inverse  
  21. R2(config-if)#no arp frame-relay  
  22. R2(config-if)#ip address 10.1.1.2 255.255.255.0  
  23. R2(config-if)#frame-relay map ip 10.1.1.1 201 broadcast  
  24. R2(config-if)#no shutdown  
  25. R2(config)#interface loop0  
  26. R2(config-if)#ip address 192.168.4.2 255.255.255.0  
  27. R2(config-if)#ip ospf network point-to-point  
  28. R2(config)#interface loop1  
  29. R2(config-if)#ip address 192.168.5.2 255.255.255.0  
  30. R2(config-if)#ip ospf network point-to-point  
  31. R2(config)#interface loop2  
  32. R2(config-if)#ip address 192.168.6.2 255.255.255.0  
  33. R2(config-if)#ip ospf network point-to-point  
  34.  
  35. R1(config)#router ospf 1  
  36. R1(config-router)#network 10.1.1.1 0.0.0.0 area 0  
  37. R1(config-router)#neighbor 10.1.1.2  
  38. R1(config-router)#network 192.168.1.1 0.0.0.0 area 1  
  39. R1(config-router)#network 192.168.2.1 0.0.0.0 area 1  
  40. R1(config-router)#network 192.168.3.1 0.0.0.0 area 1  
  41.  
  42. R2(config)#router ospf 1  
  43. R2(config-router)#network 10.1.1.2 0.0.0.0 area 0  
  44. R2(config-router)#network 192.168.4.2 0.0.0.0 area 2  
  45. R2(config-router)#network 192.168.5.2 0.0.0.0 area 2  
  46. R2(config-router)#network 192.168.6.2 0.0.0.0 area 2  
  47.  
  48. R1(config)#ip prefix-list lsa3in permit 192.168.4.0/24  
  49. R1(config)#ip prefix-list lsa3out permit 192.168.1.0/24  
  50. R1(config)#router ospf 1  
  51. R1(config-router)#area 1 filter-list prefix lsa3in in  
  52. R1(config-router)#area 0 filter-list prefix lsa3in in  
  53. R1(config-router)#area 1 filter-list prefix lsa3out out 

OSPF环境中在ABR上过滤类型3的LSA (2)

OSPF环境中在ABR上过滤类型3的LSA (3)

【编辑推荐】

  1. 浅析组播知识之IGMP V2 包
  2. 水平分割之eigrp split horizon
  3. 实例解析EIGRP浮动汇总路由配置
  4. 路由器的POS接入技术及解决方案
  5. 浅析组播知识之二层设备转发组播
责任编辑:佚名 来源: cisco.ccxx.net
相关推荐

2011-04-13 14:27:53

OSPFLSA

2011-04-13 14:40:38

OSPFLSA

2014-11-07 10:05:38

OSPFLSA

2013-11-28 10:05:24

OSPFLSA链路状态通告

2013-10-08 11:14:24

OSPF协议OSPF

2010-07-20 10:55:39

CCNPOSPF

2020-03-22 21:32:37

动态路由OSPFLSA

2017-08-22 11:30:15

LinuxWireshark过滤数据包

2022-07-20 23:04:59

矩阵分解算法Spark

2009-11-11 14:41:22

2020-02-10 10:55:37

路由协议OSPFLSA

2023-03-29 18:41:27

综合布线

2022-01-14 14:19:38

ReactTS前端

2020-11-26 08:46:52

Spinnaker

2011-04-02 15:36:47

OSPF

2022-10-08 08:00:00

JavaScript数组开发

2011-04-11 16:36:45

OSPF路由

2011-04-08 17:34:06

LSAOSPF

2011-04-02 15:36:55

OSPF

2015-07-02 14:38:44

点赞
收藏

51CTO技术栈公众号