Redistribute OSPF routes from Area 1 only into BGP, and do not advertise routes learned by BGP:
- [edit]
- routing-options {
- autonomous-system 56;
- }
- protocols {
-
- bgp {
- export ospf-into-bgp;
-
- group {
- type external;
- peer-as 23;
-
- allow {
- 0.0.0.0/0;
- }
- }
- }
- }
- policy-options {
-
- policy-statement ospf-into-bgp {
-
- term ospf-only {
-
- from {
- protocol ospf;
- area 1;
- then accept;
- }
- }
- }
- }