OSPF環(huán)境中在ABR上過濾類型3的LSA(1)
作者:佚名
LSA(鏈路狀態(tài)廣播)是鏈接狀態(tài)協(xié)議使用的一個分組,它包括有關(guān)鄰居和通道成本的信息。 LSAs被接收路由器用于維護它們的路由選擇表,每一個OSPFLSA都有一個生存期,它指示LSA是否仍然還有效。一旦LSA到達了最大生存期(1小時),它就會被拋棄。
OSPF環(huán)境中在ABR上過濾類型3的LSA—拓撲圖
OSPF環(huán)境中在ABR上過濾類型3的LSA—需求
在2臺路由器上啟動OSPF,并使幀中繼接口都參與區(qū)域0,在每臺路由器上添加3個loopback接口,loop0、loop1、loop2,R1的3個loopback接口參與ospf區(qū)域1,R2的3個loopback接口參與ospf區(qū)域2。
OSPF環(huán)境中在ABR上過濾類型3的LSA—配置過程
- R1(config)#interface s 0
- R1(config-if)#encasulation frame-relay
- R1(config-if)#no frame-relay inverse
- R1(config-if)#no arp frame-relay
- R1(config-if)#ip address 10.1.1.1 255.255.255.0
- R1(config-if)#frame-relay map ip 10.1.1.2 102 broadcast
- R1(config-if)#no shutdown
- R1(config)#interface loop0
- R1(config-if)#ip address 192.168.1.1 255.255.255.0
- R1(config-if)#ip ospf network point-to-point
- R1(config-if)#interface loop1
- R1(config-if)#ip address 192.168.2.1 255.255.255.0
- R1(config-if)#ip ospf network point-to-point
- R1(config-if)#interface loop2
- R1(config-if)#ip address 192.168.3.1 255.255.255.0
- R1(config-if)#ip ospf network point-to-point
- R2(config)#interface s 0
- R2(config-if)#encasulation frame-relay
- R2(config-if)#no frame-relay inverse
- R2(config-if)#no arp frame-relay
- R2(config-if)#ip address 10.1.1.2 255.255.255.0
- R2(config-if)#frame-relay map ip 10.1.1.1 201 broadcast
- R2(config-if)#no shutdown
- R2(config)#interface loop0
- R2(config-if)#ip address 192.168.4.2 255.255.255.0
- R2(config-if)#ip ospf network point-to-point
- R2(config)#interface loop1
- R2(config-if)#ip address 192.168.5.2 255.255.255.0
- R2(config-if)#ip ospf network point-to-point
- R2(config)#interface loop2
- R2(config-if)#ip address 192.168.6.2 255.255.255.0
- R2(config-if)#ip ospf network point-to-point
- R1(config)#router ospf 1
- R1(config-router)#network 10.1.1.1 0.0.0.0 area 0
- R1(config-router)#neighbor 10.1.1.2
- R1(config-router)#network 192.168.1.1 0.0.0.0 area 1
- R1(config-router)#network 192.168.2.1 0.0.0.0 area 1
- R1(config-router)#network 192.168.3.1 0.0.0.0 area 1
- R2(config)#router ospf 1
- R2(config-router)#network 10.1.1.2 0.0.0.0 area 0
- R2(config-router)#network 192.168.4.2 0.0.0.0 area 2
- R2(config-router)#network 192.168.5.2 0.0.0.0 area 2
- R2(config-router)#network 192.168.6.2 0.0.0.0 area 2
- R1(config)#ip prefix-list lsa3in permit 192.168.4.0/24
- R1(config)#ip prefix-list lsa3out permit 192.168.1.0/24
- R1(config)#router ospf 1
- R1(config-router)#area 1 filter-list prefix lsa3in in
- R1(config-router)#area 0 filter-list prefix lsa3in in
- R1(config-router)#area 1 filter-list prefix lsa3out out
OSPF環(huán)境中在ABR上過濾類型3的LSA (2)
OSPF環(huán)境中在ABR上過濾類型3的LSA (3)
【編輯推薦】
責(zé)任編輯:佚名
來源:
cisco.ccxx.net