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—配置过程
- 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
【编辑推荐】