Routing

 View Only
last person joined: 2 days ago 

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.  Configuring 2 BGP with same AS Number and different neighbor IP and prefix

    Posted 09-13-2022 06:30
    Hi,

    I want to ask is it possible on Juniper SRX1500 or MX5-T to configure 2 BGP with Same AS Number and diffrent Neighbor IP Address and prefix ?

    For example, i have BGP A with AS Number 11111 and BGP B with AS Number 22222 with details below:

    BGP A AS Number: 11111
    BGP A Neighbor IP: 10.10.10.1
    Advertised IP on BGP A: 192.168.10.0/24

    BGP B AS Number: 11111
    BGP B Neighbor: 20.20.20.1
    Advertised IP on BGP B: 192.168.20.0/24

    If possible, can someone please help to give configuration example?

    Thanks in Advance

    ------------------------------
    ADITYA AKBAR
    ------------------------------


  • 2.  RE: Configuring 2 BGP with same AS Number and different neighbor IP and prefix

    Posted 09-13-2022 06:37
    Basic sample of a bgp peer with policies can be found here.

    https://www.juniper.net/documentation/en_US/junos/topics/example/policy-bgp-levels.html

    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
    http://puluka.com/home
    ------------------------------



  • 3.  RE: Configuring 2 BGP with same AS Number and different neighbor IP and prefix

    Posted 09-14-2022 05:05
    Hi, thanks for the reply
    i will looking for the article.

    ------------------------------
    ADITYA AKBAR
    ------------------------------



  • 4.  RE: Configuring 2 BGP with same AS Number and different neighbor IP and prefix

    Posted 09-14-2022 02:12
    Hi,

    In the statement, you mentioned BGP B with ASN 22222, but in the details, you mentioned BGP B ASN as 11111. In either case, it doesn't matter as the required ASN can be used in the config shown below.

    # show routing-options 
    autonomous-system 33333; <<<----- Define the ASN of the local router.
    ==================================================================================
    Policy Configuration
    ==================================================================================
    
    # show policy-options 
    policy-statement peer_a_export {
        term 1 {
            from {
                route-filter 192.168.10.0/24 exact;
            }
            then accept;
        }
    }
    policy-statement peer_b_export {
        term 1 {
            from {
                route-filter 192.168.20.0/24 exact;
            }
            then accept;
        }
    }
    
    ===================================================================================
    BGP Configuration
    ===================================================================================
    
    # show protocols bgp   
    group bgp {
        neighbor 10.10.10.1 {
            export peer_a_export;
            peer-as 11111;
        }
        neighbor 20.20.20.1 {
            export peer_b_export;
            peer-as 11111;
        }
    }
    
    ====================================================================================​


    ------------------------------
    Sheetanshu Shekhar
    ------------------------------



  • 5.  RE: Configuring 2 BGP with same AS Number and different neighbor IP and prefix

    Posted 09-14-2022 05:05
    Hi,

    Thanks for the reply.
    Yes sorry, i was typo on the post, it should be B AS Number is 11111.

    thank you, this is exactly what i want, 2 AS Number but with different neighbor and sending different segment. I will try and see if this works

    ------------------------------
    ADITYA AKBAR
    ------------------------------



  • 6.  RE: Configuring 2 BGP with same AS Number and different neighbor IP and prefix

    Posted 09-21-2022 20:02
    Note also that the default policy in BGP is to accept so you will need to add a term to reject all after the accept prefix or create a second reject all policy and add that as a second one in the chain to prevent other prefixes from being sent to the peer.

    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
    http://puluka.com/home
    ------------------------------