Hi, really struggling to work out these terms and how they build a way for advertising a prefix out using Juniper devices
Cisco appears to be straighforward, use the 'network command' - there doesnt appear to be the equivalent in Juniper? Is that correct?
So how does Juniper advertise prefixes? Network prefixes, static route, routes from other protocols (redistributed routes)
Does anyone have any simple breakdown of how and syntax with an explanation of waht/how the terms prefix lists, policy statements, filters interact and build these advertisements? I'm going around in circles and I know there is a simple explanation somewhere?
Any help really appreciated -
have a look at
a very good day one book also about BGP
Great, thanks appreciate it
You need to set routing options for aggregating your subnet, set router-id, the create the export filter, then export the filter to peer.
set routing-options aggregate route 126.96.36.199/24
set routing-options router-id 188.8.131.52
set policy-options policy-statement to-peer term export_prefix from protocol aggregate
set policy-options policy-statement to-peer term export_prefix from route-filter 184.108.40.206/24 exact
set policy-options policy-statement to-peer term export_prefix then accept
set policy-options policy-statement to-peer then reject
set protocols bgp group peer
set protocols bgp group peer type external
set protocols bgp group peer peer-as 1234set protocols bgp group peer local-as 1234
set protocols bgp group peer neighbor 220.127.116.11 export to-peer
This will get you started.
You might need to set hold-time, import rules etc.
Hi, thanks, so all of this syntax is needed compared to Cisco:
R1(config)# router bgp 500
R1(config-router)# network 18.104.22.168 255.255.255.255 (< --- advertising my loopback into BGP)
Is that right? Juniper will need about 10 lines to do the same thing?
Network statements with Cisco redistributes specific routes into BGP. To do the same thing with Junos, you need to create a policy that you can use to redistribute specific routes into BGP. Here's a Junos equivalent to the Cisco config you posted:
set policy-options policy-statement EXPORT-BGP term LOOPBACK from route-filter 22.214.171.124/32 exact
set policy-options policy-statement EXPORT-BGP term LOOPBACK then accept
set protocols bgp group eBGP export EXPORT-BGP