Greetings from NYC...
I am testing out a scenario that involves BGP peering but instead of getting a full routing table, i'm going for a default route (not a very high end router). This is actually my first time trying this so please pardon any intro questions.
My test lab is going to be from EXT Router >BGP< CORE Router >OSPF< INTERNAL Router .
At this point i'm able to peer with between EXT and CORE via BGP and have a static route on B that points to the neighbor A's interface. Assuming that this is the way it's configured in the real world i'm able to ping out to the internet. At the same time, from CORE i'm able to ping backwards into INTERNAL's loopback via OSPF.
My goal is to make my INTERNAL ospf network get out to the internet via my BGP network but seems easier said that done because I can't get pass my CORE.
This is what my CORE looks like after a few test scenarios...
interface Loopback0 ip address 10.0.0.2 255.255.255.255 ! interface Loopback1 ip address 2.2.2.2 255.255.255.255
router ospf 200 log-adjacency-changes redistribute bgp 200 subnets network 10.0.0.2 0.0.0.0 area 1 network 10.20.10.2 0.0.0.0 area 1 ! router bgp 200 no synchronization bgp log-neighbor-changes network 2.2.2.2 mask 255.255.255.255 redistribute static neighbor 10.10.10.1 remote-as 100 neighbor 10.10.10.1 route-map as100only in neighbor 10.10.10.1 route-map localorigBGProutestoPeer out no auto-summary ! no ip http server no ip http secure-server ip classless ip route 0.0.0.0 0.0.0.0 10.10.10.1 ! ip as-path access-list 10 permit ^$ ip as-path access-list 20 permit ^100$ ! ! route-map localorigBGProutestoPeer permit 10 match as-path 10 ! route-map as100only permit 10 match as-path 20 !
a few questions...
Do I need to create a bgp default route using the "default-information originate" or just use the default route I have on the router "ip route 0.0.0.0 0.0.0.0 10.10.10.1" ? (like I was trying just now)
What is the proper way to redistribute the correct answer into OSPF so my lan can get out to the internet?
I appreciate any information that would assist me.