Lab 2 Question about redistributing OSPF into BGP and allowing on ly default route.

From: jim.phillipo@xxxxxxxxxxxx
Date: Tue Aug 20 2002 - 19:54:10 GMT-3


   
As far as I see it the purpose of the route map is to only allow the default
route to be re distributed into BGP.

I am a little confused as to how access ist 1 and 2 is having this effect.

Any input apreciated.

Also is it necassary to match internal external 1 external 2 to have this
work ?

!
router ospf 2
 log-adjacency-changes
 area 0 authentication message-digest
 network 12.2.1.1 0.0.0.0 area 0
 default-information originate always metric 20
!
router bgp 3
 no synchronization
 bgp log-neighbor-changes
 redistribute ospf 2 match internal external 1 external 2 route-map filter1
 neighbor 11.1.1.5 remote-as 2
 neighbor 11.1.1.5 route-map setlocal in
 neighbor 12.2.1.2 remote-as 3
 neighbor 12.2.1.2 password en cisco
!
ip kerberos source-interface any
ip classless
ip route 0.0.0.0 0.0.0.0 11.1.1.5
no ip http server
!
access-list 1 permit 0.0.0.0
access-list 2 permit any
!
route-map filter1 deny 10
 match ip address 1
!
route-map filter1 permit 20
 match ip address 2



This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:48:31 GMT-3