Routing

Expand all | Collapse all

How to disallow readvertise IBGP routes?

Jump to Best Answer
  • 1.  How to disallow readvertise IBGP routes?

    Posted 04-02-2017 04:40

    By default, JUNOS advertise learnt IBGP routes to other BGP neighbors.

     

    For example, the routes learnt from group IBGP are readvertised to group EBGP.

     

    bgp {
        group EBGP {
            type external;
            peer-as 2;
            neighbor 1.1.1.1 {
    	    local-address 1.1.1.2;
                export announce-prefix;
            }
        }
    
        group IBGP {
            type internal;
            peer-as 1;
    	export announce-prefix;
            neighbor 192.168.1.2 {
                local-address 192.168.1.1;
            }		
    	neighbor 192.168.1.3 {
                local-address 192.168.1.1;
            }
        }
    }
    

     

     

    How to disable it? I don't want to advertise learnt IBGP routes to other EBGP group.

     

    Thank you.



  • 2.  RE: How to disallow readvertise IBGP routes?
    Best Answer

    Posted 04-02-2017 05:26
    policy-statement NO-EXPORT 
    term 1 {
                from {
                    protocol bgp;
                    route-type internal;
                }
    
            then reject;
    }
    

    and then add this policy before your normal one ( or merge)

     

    bgp {
        group EBGP {
            type external;
            peer-as 2;
            neighbor 1.1.1.1 {
    	    local-address 1.1.1.2;
                export [ NO-EXPORT  announce-prefix ];
            }
        }

     

    regards

     

    alexander