Routing

last person joined: yesterday 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Router does not receive bgp routes

    Posted 04-12-2015 10:56

    Hello! Cannot understand where is the mistake? Help, please, to find !

     

    The router juniper-router-1 does not receive bgp route from the peer juniper-router-3

     

    1234.png

     

    juniper-router-1:

     

    [edit]
    root# run show route receive-protocol bgp 117.12.11.1    
    
    inet.0: 7 destinations, 8 routes (7 active, 0 holddown, 0 hidden)

     

    root# show | no-more        
    ## Last changed: 2015-04-12 20:26:51 UTC
    version 12.1R1.9;
    interfaces {
        em0 {
            unit 0 {
                family inet {
                    address 117.12.11.2/24;
                }
            }
        }
        em1 {
            unit 0 {
                family inet {
                    address 10.255.255.4/24;
                }
            }
        }
        lo0 {
            unit 0 {
                family inet {
                    address 192.168.93.1/32;
                }
            }
        }
    }
    routing-options {
        static {
            route 192.168.93.3/32 discard;
        }
        router-id 192.168.93.1;
        autonomous-system 45900;
    }
    protocols {
        bgp {
            group eBGP {
                type external;
                local-address 192.168.93.1;
                neighbor 117.12.11.1 {
                    multihop {
                        ttl 2;
                    }
                    export EXPORT-BGP;
                    peer-as 141;
                }
            }
            group iBGP {
                type internal;
                multihop {
                    ttl 2;
                }
                local-address 192.168.93.1;
                neighbor 192.168.93.3 {
                    peer-as 45900;
                }
                neighbor 192.168.93.2 {
                    peer-as 45900;
                }
                neighbor 192.168.92.1 {
                    peer-as 45900;
                }
            }
        }
        ospf {
            area 0.0.0.0 {
                interface em0.0;
                interface em1.0;
                interface lo0.0;
            }
        }
    }
    policy-options {
        policy-statement EXPORT-BGP {
            term 1 {
                from protocol static;
                then accept;
            }
            term 3 {
                then reject;
            }
        }
    }

     

    juniper-router-3:

     

     

    [edit]
    root# run show route advertising-protocol bgp 192.168.93.1          
    
    inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 192.168.92.3/32         117.12.11.1                             155 45900 I

     

    root# show | no-more 
    ## Last changed: 2015-04-12 20:11:29 UTC
    version 12.1R1.9;
    interfaces {
        em0 {
            unit 0 {
                family inet {
                    address 117.12.11.1/24;
                }
            }
        }
        em1 {
            unit 0 {
                family inet {
                    address 128.11.11.1/24;
                }
            }
        }
    }
    routing-options {
        static {
            route 192.168.93.1/32 next-hop 117.12.11.2;
        }
        autonomous-system 141;
    }
    protocols {
        bgp {
            group eBGP {
                type external;
                multihop {
                    ttl 2;
                }
                neighbor 192.168.93.1 {
                    multihop {
                        ttl 2;
                    }
                    export NEXT-HOP;
                    peer-as 45900;
                }
                neighbor 128.11.11.2 {
                    peer-as 155;
                }
            }
        }
    }
    policy-options {
        policy-statement NEXT-HOP {
            term 1 {
                then {
                    next-hop 117.12.11.1;
                }
            }
        }
    }

     



  • 2.  RE: Router does not receive bgp routes
    Best Answer

     
    Posted 04-13-2015 06:10

    Hi,

     

    Can you tell me why making the BGP setup "complex" you are on one side peering on the interface address on the otherside on a loopback address, with some multihop bgp and some static routes. Why no make it simple en peer on the interfaces addresses and remove the multi-hop where possible.

     

    also I would start advertising prefixex without any policy statement. This makes debugging a little more easy



  • 3.  RE: Router does not receive bgp routes

    Posted 04-13-2015 23:04

    Your idea is clear! Will simplify where possible!