文章详情

短信预约-IT技能 免费直播动态提醒

请输入下面的图形验证码

提交验证

短信预约提醒成功

OSPF ABR Type 3 LSA

2023-01-31 07:44

关注
Feature Overview
The OSPF ABR Type 3 LSA Filtering feature extends the ability of an ABR that is running the OSPF protocol to filter type 3 link-state advertisements (LSAs) that are sent between different OSPF areas.This feature allows only packets with specified prefixes to be sent from one area to another area and restricts all packets with other prefixes. This type of area filtering can be applied out of a specific OSPF area, into a specific OSPF area, or into and out of the same OSPF areas at the same time. This feature is supported by the addition of the area filter-list command in router configuration mode.
Benefits
The OSPF ABR Type 3 LSA Filtering feature gives the administrator improved control of route distribution between OSPF areas.
 
拓扑说明:
R3的S2/1与R5的S2/1通过FR连接
R4的S2/0与R5的S2/0通过FR连接
R3,R4和R6的F0/0通过以太网交换机连接
R3 S2/1: 1.1.35.3/24 F0/0: 1.1.46.3/24
R4 S2/0: 1.1.45.4/24 F0/0: 1.1.46.4/24
R5 S2/0: 1.1.45.5/24 S2/1: 1.1.35.5/24
R6 F0/0: 1.1.46.6/24
 
实验目的
在R3上过滤LSA3,看过滤前后的区别
 
初始配置
R3
conf t
int f0/0
ip add 1.1.46.3 255.255.255.0
no shut
int s2/1
ip add 1.1.35.3 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.35.5 315 b
no shut
router ospf 1
nei 1.1.35.5
net 1.1.35.3 0.0.0.0 a 0
net 1.1.46.3 0.0.0.0 a 1
end
 
R4
conf t
int f0/0
ip add 1.1.46.4 255.255.255.0
no shut
int s2/0
ip add 1.1.45.4 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.45.5 405 b
band 64
no shut
router ospf 1
nei 1.1.45.5
net 1.1.45.4 0.0.0.0 a 0
net 1.1.46.4 0.0.0.0 a 1
end

R5
conf t
int s2/0
ip add 1.1.45.5 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.45.4 504 b
no shut
int s2/1
ip add 1.1.35.5 255.255.255.0
encap f
no arp f
no frame inv
frame map ip 1.1.35.3 513 b
no shut
router ospf 1
net 1.1.35.5 0.0.0.0 a 0
net 1.1.45.5 0.0.0.0 a 0
end

R6 
conf t
int f0/0
ip add 1.1.46.6 255.255.255.0
no shut
router ospf 1
net 1.1.46.6 0.0.0.0 a 1
end
 
校验:
R3#sh ip ospf data
                           ……
                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
1.1.35.0        1.1.46.3        127         0x80000004 0x00049D
1.1.35.0        1.1.46.4        129         0x80000004 0x003947

1.1.45.0        1.1.46.3        123         0x80000001 0x001E3C
1.1.45.0        1.1.46.4        221         0x80000005 0x00466F
注意到R3发送的LSA3中有1.1.35.0/24网段。
 
R6(config-router)#do sh ip route
Codes: C - connected, S - static, 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
       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, 3 subnets
O IA    1.1.35.0 [110/65] via 1.1.46.3, 00:01:44, FastEthernet0/0
O IA    1.1.45.0 [110/129] via 1.1.46.3, 00:01:40, FastEthernet0/0
C       1.1.46.0 is directly connected, FastEthernet0/0
 
R6(config-router)#do sh ip ospf data
           ……
                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
1.1.35.0        1.1.46.3        4           0x80000001 0x000A9A
1.1.35.0        1.1.46.4        1491        0x80000005 0x003748
1.1.45.0        1.1.46.3        1542        0x80000002 0x001C3D
1.1.45.0        1.1.46.4        1491        0x80000006 0x004470
R6也可以通过R3访问到1.1.35.0/24网段
 
 
在R3上过滤通往AREA1的LSA-3
R3
conf t
ip prefix-list TO_A1 deny 1.1.35.0/24
ip prefix-list TO_A1 permit 0.0.0.0/8 le 32
router ospf 1
area 1  filter-list prefix TO_A1 in
end
 
R3(config-router)#do sh ip ospf data
         ……
                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
1.1.35.0        1.1.46.4        515         0x80000004 0x003947
1.1.45.0        1.1.46.3        509         0x80000001 0x001E3C
1.1.45.0        1.1.46.4        607         0x80000005 0x00466F
R3已经过滤1.1.35.0/24网段
 
R6(config-router)#do sh ip route
Codes: C - connected, S - static, 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
       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, 3 subnets
O IA    1.1.35.0 [110/1627] via 1.1.46.4, 00:00:02, FastEthernet0/0
O IA    1.1.45.0 [110/129] via 1.1.46.3, 00:00:02, FastEthernet0/0
C       1.1.46.0 is directly connected, FastEthernet0/0
 
R6(config-router)#do sh ip ospf data
                         ……
                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
1.1.35.0        1.1.46.4        1427        0x80000005 0x003748
1.1.45.0        1.1.46.3        1479        0x80000002 0x001C3D
1.1.45.0        1.1.46.4        1427        0x80000006 0x004470
R6从R4上收到1.1.35.0/24网段
阅读原文内容投诉

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

软考中级精品资料免费领

  • 历年真题答案解析
  • 备考技巧名师总结
  • 高频考点精准押题
  • 2024年上半年信息系统项目管理师第二批次真题及答案解析(完整版)

    难度     813人已做
    查看
  • 【考后总结】2024年5月26日信息系统项目管理师第2批次考情分析

    难度     354人已做
    查看
  • 【考后总结】2024年5月25日信息系统项目管理师第1批次考情分析

    难度     318人已做
    查看
  • 2024年上半年软考高项第一、二批次真题考点汇总(完整版)

    难度     435人已做
    查看
  • 2024年上半年系统架构设计师考试综合知识真题

    难度     224人已做
    查看

相关文章

发现更多好内容

猜你喜欢

AI推送时光机
位置:首页-资讯-后端开发
咦!没有更多了?去看看其它编程学习网 内容吧
首页课程
资料下载
问答资讯