Juniper Router – How to Set Advertised Route

bgpjuniper-junosjuniper-mxrouter

I would like to understand where advertised route are set in JunOS.
For example, in OpenBGPd it's easy, you simply set "network 1.2.3.0/24".
What is the equivalent in JunOS ? I didn't find anything very clear.

thank you in advance for answering

Best Answer

JunOS does not use a network command like you would use with a cisco router.

You will need to make use of policies and create one.

For BGP you could use

policy-statement my-bgp-network {
term 1 {
    from {
        route-filter 100.100.100.0/24 exact;
    }
    then accept;
}
}

To configure BGP then you could use something like

protocols {
bgp {
group Love-Peer-A {
type external;
neighbor 1.1.1.1 {
export my-bgp-network;
peer-as 111;
} 

Hope to helps you on your quest.

SleepyMan

Related Topic