Markolf,
You need to write some policy to do this. Here is an example which
may work.
From the top level of config mode use the following commands:
------------------------------------------------------------------
set policy-options policy-statement redospf from protocol ospf
set policy-options policy-statement redospf then accept
set protocols bgp export redospf
------------------------------------------------------------------
The policy will look like this:
------------------------------------------------------------------
policy-statement redospf {
from protocol ospf;
then accept;
}
------------------------------------------------------------------
The above example is VERY simple. Within JUNOS you write policy in one place
and then apply it somewhere else. In the example above the first two
statements create the policy and the third applies it. Beware of applying
policy in the wrond place. The instructions above will have the policy apply
to all of your BGP groups. Policy within BGP can be applied at global level
(see above,) within a group or against a specific neighbor. The policy
which gets applied will be the one applied at the most detailed level.
You can have import and export policies they are applied with respect to the
routing table. Thus an export policy takes routes from the routing table applies
the policy modifications with actions and sends them out to a protocol (see above)
or a neighbor. Import policies are applied to prefix's before they get to the
routing table.
Cheers
Dave Humphrey
-----Original Message-----
From: eedmgu@eed.ericsson.se [mailto:eedmgu@eed.ericsson.se]
Sent: 11 June 2001 15:26
To: juniper-nsp@puck.nether.net
Subject: [j-nsp] BGP-OSPF route redistribution
Hi,
I'm new to Juniper routers, so please forgive me if this is a FAQ (I
couldn't find anything in the digest):
I'm trying to set up an M40 to redistribute routes from OSPF to BGP,
exchanging with a Cisco 7507. The M40 sees the routes from the Cisco just
fine, but the Cisco doesn't receive anything. Is there anything I need
to do to emulate the Cisco "redistribute ospf <...>" statement?
The relevant bits of the configs are below. Thanks in advance for any
help!
- Markolf
*** Cisco:
interface ATM1/0/0.8 point-to-point
ip address 192.168.201.225 255.255.255.252
pvc 100/38
vbr-nrt 103515 51757 10000
encapsulation aal5snap
!
router bgp 65500
bgp log-neighbor-changes
redistribute ospf 100
[neighbours...]
neighbor 192.168.201.226 remote-as 64000
no auto-summary
!
*** Juniper:
interfaces {
at-1/0/0 {
unit 0 {
encapsulation atm-snap;
vci 100.38;
family inet {
address 192.168.201.226/30;
}
}
}
fe-6/0/0 {
unit 0 {
family inet {
address 10.0.24.253/24;
}
}
}
}
protocols {
bgp {
log-updown;
group 52-72 {
type external;
peer-as 65500;
neighbor 192.168.201.225;
}
}
ospf {
area 0.0.0.0 {
interface fe-6/0/0.0;
interface at-1/0/0.0;
}
}
}
This archive was generated by hypermail 2b29 : Mon Aug 05 2002 - 10:42:42 EDT