From: Bill Wade (wwade@xxxxxxxxx)
Date: Thu Sep 16 1999 - 22:11:50 GMT-3
I got a couple of suggestions offline and still stuck. I hope my reply summar
izes where I'm at.
I'm using the bgp cmd -
redistribute ospf 2 match external 1
and the E1 route is going out E0 to AS 254 fine. But I DON'T want to send it
out S0.1. Using distribute list out with an access-list denying the E1 route
is NOT working as it apppears at R1 and R3 as a BGP route (AD of 20) overridin
g the OSPF E1 (AD of 110). R2 is the hub of a Frame relay with R1 and R3 as t
he spokes. R1, R2 and R3 are in OSPF area 0.
I also tried distribute list in on R1 and R3 but the route still comes in. Lo
oks simple but it isn't working.
Must have a routing loop here somewhere....
Bill
At 03:47 PM 9/16/99 , Bill Wade wrote:
>
>R1, R2 and R3 are running BGP and OSPF. An OSPF E1 (155.100.5.0) route is
>present in their routing table. On R2 I'm redist this E1 into BGP. I only
>want this route to go out E0 to AS254. I'm using a dist list to filter it fro
m
>going out S0.1 but I can't seem to get it to work as it propagates to R3 and R
1
>as a BGP route. I've attached the config for R2 and the sh ip route for R2 an
d
>R3.
>
>Looking for ideas...
>
>Thanks,
>Bill
>
>
> AS 254
> R6
> /
> /
> / E0
> R2 (AS 1032)
> s0.1 / \
> / \
> / \
> (AS1033)R3 R1 (AS1099)
> |
> |
>
OSPF E1 is out here
>r2#sh ip rout
>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, * - candidate defaul
t
> U - per-user static route, o - ODR
>
>Gateway of last resort is not set
>
> 153.100.0.0/32 is subnetted, 1 subnets
>O 153.100.3.3 [110/65] via 150.100.33.3, 00:55:25, Serial0.1
> 152.100.0.0/24 is subnetted, 1 subnets
>C 152.100.2.0 is directly connected, Loopback0
> 155.100.0.0/24 is subnetted, 1 subnets
>O E1 155.100.5.0 [110/148] via 150.100.33.1, 00:55:25, Serial0.1
> 154.100.0.0/24 is subnetted, 1 subnets
>O IA 154.100.4.0 [110/129] via 150.100.33.1, 00:55:25, Serial0.1
> 156.100.0.0/32 is subnetted, 1 subnets
>O 156.100.6.6 [110/66] via 150.100.33.1, 00:55:25, Serial0.1
>B 197.68.2.0/24 [20/0] via 150.100.26.26, 00:01:16
>B 197.68.21.0/24 [20/0] via 150.100.26.26, 00:01:16
> 151.100.0.0/24 is subnetted, 1 subnets
>O 151.100.1.0 [110/65] via 150.100.33.1, 00:55:26, Serial0.1
>B 197.68.22.0/24 [20/0] via 150.100.26.26, 00:01:17
> 150.100.0.0/16 is variably subnetted, 6 subnets, 2 masks
>O 150.100.33.3/32 [110/64] via 150.100.33.3, 00:55:26, Serial0.1
>O 150.100.33.1/32 [110/64] via 150.100.33.1, 00:55:26, Serial0.1
>C 150.100.33.0/24 is directly connected, Serial0.1
>C 150.100.26.0/24 is directly connected, Ethernet0
>O IA 150.100.4.0/24 [110/128] via 150.100.33.1, 00:55:26, Serial0.1
>O IA 150.100.5.0/24 [110/138] via 150.100.33.1, 00:55:26, Serial0.1
> 120.0.0.0/32 is subnetted, 2 subnets
>O 120.100.10.20 [110/64] via 150.100.33.1, 00:55:26, Serial0.1
>O 120.100.10.10 [110/65] via 150.100.33.1, 00:55:26, Serial0.1
>O E2 206.25.0.0/16 [110/20] via 150.100.33.3, 00:55:26, Serial0.1
>B 197.68.0.0/16 [200/0] via 0.0.0.0, 00:01:18, Null0
>
>
>-----------------
>R3 before redistributing the E1 into BGP on R2 --
>
>r3#sh ip rout
>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, * - candidate defaul
t
> U - per-user static route, o - ODR
>
>Gateway of last resort is not set
>
> 153.100.0.0/24 is subnetted, 1 subnets
>C 153.100.3.0 is directly connected, Loopback0
> 152.100.0.0/24 is subnetted, 1 subnets
>O 152.100.2.0 [110/65] via 150.100.33.2, 01:31:43, Serial0
> 155.100.0.0/24 is subnetted, 1 subnets
>O E1 155.100.5.0 [110/212] via 150.100.33.2, 00:00:30, Serial0
> 154.100.0.0/24 is subnetted, 1 subnets
>O IA 154.100.4.0 [110/193] via 150.100.33.2, 01:31:43, Serial0
> 156.100.0.0/32 is subnetted, 1 subnets
>O 156.100.6.6 [110/130] via 150.100.33.2, 01:31:43, Serial0
>R 206.25.26.0/24 [120/1] via 206.25.25.25, 00:00:05, Serial1
>C 206.25.25.0/24 is directly connected, Serial1
> 151.100.0.0/24 is subnetted, 1 subnets
>O 151.100.1.0 [110/129] via 150.100.33.2, 01:31:44, Serial0
>B 197.68.22.0/24 [20/0] via 150.100.33.2, 00:00:06
> 150.100.0.0/16 is variably subnetted, 6 subnets, 2 masks
>O 150.100.33.2/32 [110/64] via 150.100.33.2, 01:33:30, Serial0
>O 150.100.33.1/32 [110/128] via 150.100.33.2, 01:31:44, Serial0
>C 150.100.33.0/24 is directly connected, Serial0
>O 150.100.26.0/24 [110/74] via 150.100.33.2, 01:31:44, Serial0
>O IA 150.100.4.0/24 [110/192] via 150.100.33.2, 01:31:44, Serial0
>O IA 150.100.5.0/24 [110/202] via 150.100.33.2, 01:31:44, Serial0
>R 206.25.28.0/24 [120/1] via 206.25.25.25, 00:00:06, Serial1
> 120.0.0.0/32 is subnetted, 2 subnets
>O 120.100.10.20 [110/128] via 150.100.33.2, 01:31:44, Serial0
>O 120.100.10.10 [110/129] via 150.100.33.2, 01:31:44, Serial0
>B 197.68.0.0/16 [20/0] via 150.100.33.2, 00:00:07
>r3#
>
>-----------------------
>R3 after redistributing the EI.
>
>r3#sh ip rout
>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, * - candidate defaul
t
> U - per-user static route, o - ODR
>
>Gateway of last resort is not set
>
> 153.100.0.0/24 is subnetted, 1 subnets
>C 153.100.3.0 is directly connected, Loopback0
> 152.100.0.0/24 is subnetted, 1 subnets
>O 152.100.2.0 [110/65] via 150.100.33.2, 01:35:24, Serial0
> 155.100.0.0/24 is subnetted, 1 subnets
>B 155.100.5.0 [20/148] via 150.100.33.2, 00:00:01
> 154.100.0.0/24 is subnetted, 1 subnets
>O IA 154.100.4.0 [110/193] via 150.100.33.2, 01:35:24, Serial0
> 156.100.0.0/32 is subnetted, 1 subnets
>O 156.100.6.6 [110/130] via 150.100.33.2, 01:35:24, Serial0
>R 206.25.26.0/24 [120/1] via 206.25.25.25, 00:00:04, Serial1
>C 206.25.25.0/24 is directly connected, Serial1
> 151.100.0.0/24 is subnetted, 1 subnets
>O 151.100.1.0 [110/129] via 150.100.33.2, 01:35:25, Serial0
>B 197.68.22.0/24 [20/0] via 150.100.33.2, 00:00:03
> 150.100.0.0/16 is variably subnetted, 6 subnets, 2 masks
>O 150.100.33.2/32 [110/64] via 150.100.33.2, 01:37:12, Serial0
>O 150.100.33.1/32 [110/128] via 150.100.33.2, 01:35:25, Serial0
>C 150.100.33.0/24 is directly connected, Serial0
>O 150.100.26.0/24 [110/74] via 150.100.33.2, 01:35:25, Serial0
>O IA 150.100.4.0/24 [110/192] via 150.100.33.2, 01:35:26, Serial0
>O IA 150.100.5.0/24 [110/202] via 150.100.33.2, 01:35:26, Serial0
>R 206.25.28.0/24 [120/1] via 206.25.25.25, 00:00:05, Serial1
> 120.0.0.0/32 is subnetted, 2 subnets
>O 120.100.10.20 [110/128] via 150.100.33.2, 01:35:26, Serial0
>O 120.100.10.10 [110/129] via 150.100.33.2, 01:35:26, Serial0
>B 197.68.0.0/16 [20/0] via 150.100.33.2, 00:00:03
>r3#
>
>
>
>r2#sh run
>Building configuration...
>
>Current configuration:
>!
>version 11.3
>service timestamps debug datetime
>service timestamps log datetime
>no service password-encryption
>!
>hostname r2
>!
>enable password lab
>!
>no ip domain-lookup
>!
>!
>interface Loopback0
> ip address 152.100.2.2 255.255.255.0
> ip ospf network point-to-point
>!
>interface Ethernet0
> ip address 150.100.26.2 255.255.255.0
>!
>interface Serial0
> no ip address
> encapsulation frame-relay IETF
> no ip mroute-cache
> no fair-queue
> frame-relay lmi-type ansi
>!
>interface Serial0.1 multipoint
> ip address 150.100.33.2 255.255.255.0
> ip ospf network point-to-multipoint
> frame-relay map ip 150.100.33.1 100 broadcast
> frame-relay map ip 150.100.33.3 300 broadcast
>!
>interface Serial1
> no ip address
> shutdown
>!
>router ospf 2
> network 150.100.26.0 0.0.0.255 area 0
> network 150.100.33.0 0.0.0.255 area 0
> network 152.100.2.0 0.0.0.255 area 0
>!
>router bgp 1032
> no synchronization
> aggregate-address 197.68.0.0 255.255.0.0 suppress-map allow
> redistribute ospf 2 match external 1
> neighbor 150.100.26.26 remote-as 254
> neighbor 150.100.26.26 next-hop-self
> neighbor 150.100.33.1 remote-as 1099
> neighbor 150.100.33.1 next-hop-self
> neighbor 150.100.33.3 remote-as 1033
> neighbor 150.100.33.3 next-hop-self
> distribute-list 77 out Serial0.1
> no auto-summary
>!
>ip classless
>!
>access-list 6 deny 197.68.22.0 0.0.0.255
>access-list 6 permit any
>access-list 77 deny 155.100.5.0
>access-list 77 deny 155.100.0.0
>access-list 77 permit any
>route-map allow permit 10
> match ip address 6
>!
>line con 0
> exec-timeout 0 0
> password lab
> login
>line 1 16
>line aux 0
>line vty 0 4
> password lab
> login
>!
>end
>
>r2#
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 08:21:50 GMT-3