Routing

Expand all | Collapse all

BGP configuration

Jump to Best Answer
  • 1.  BGP configuration

    Posted 05-04-2017 07:32

    Hi What is difference between the below two groups to configure bgp? The second group remove neighbor. Thank you

     

     

    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 description "eBGP peer"
    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 multihop ttl 2
    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 local-address 2600:1:4006::1
    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 import C1_V6
    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 family inet6 unicast
    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 export DC1_V6
    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 remove-private
    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 peer-as 478


    set routing-instances WWW protocols bgp group ASV6 description "eBGP peer"
    set routing-instances WWW protocols bgp group ASV6 multihop ttl 2
    set routing-instances WWW protocols bgp group ASV6 neighbor 2600:1:4006::6 local-address 2600:1:4006::1
    set routing-instances WWW protocols bgp group ASV6 import C1_V6
    set routing-instances WWW protocols bgp group ASV6 family inet6 unicast
    set routing-instances WWW protocols bgp group ASV6 export DC1_V6
    set routing-instances WWW protocols bgp group ASV6 remove-private
    set routing-instances WWW protocols bgp group ASV6 peer-as 478



  • 2.  RE: BGP configuration

    Posted 05-04-2017 11:11

    Sorry but you have to be a little clearer in what you want to know. There is only one group "bgp group ASV6"

    There is no neighbor remove statement. If you are asking about remove-private, these can help explain:

    https://www.juniper.net/documentation/en_US/junos/topics/concept/bgp-remove-private-as-understanding.html

    https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/remove-private-edit-protocols-bgp.html

    http://www.juniper.net/documentation/en_US/junos/topics/example/bgp-remove-private-as.html

     

     



  • 3.  RE: BGP configuration
    Best Answer

    Posted 05-04-2017 15:29

    The main difference is the first set of parameters will apply specifically to neighbor 2600:1:4006::6 within the group. The second set applies to the entire group i.e. additional neighbor statements can be added thus inheriting group-wide parameters. Note hierarchical stanza below:

     

    1st:

    WWW {
        protocols {
            bgp {
                group ASV6 {
                    neighbor 2600:1:4006::6 {
                        description "eBGP peer";
                        multihop {
                            ttl 2;
                        }
                        local-address 2600:1:4006::1;
                        import C1_V6; ## 'C1_V6' is not defined
                        family inet6 {
                            unicast;
                        }
                        export DC1_V6; ## 'DC1_V6' is not defined
                        remove-private;
                        peer-as 478;
                    }
                }
            }
        }
    }

    2nd:

    WWW {
        protocols {
            bgp {
                group ASV6 {
                    description "eBGP peer";
                    multihop {
                        ttl 2;
                    }
                    import C1_V6; ## 'C1_V6' is not defined
                    family inet6 {
                        unicast;
                    }
                    export DC1_V6; ## 'DC1_V6' is not defined
                    remove-private;
                    peer-as 478;
                    neighbor 2600:1:4006::6 {
                        local-address 2600:1:4006::1;
                    }
                }
            }
        }
    }
    


  • 4.  RE: BGP configuration

    Posted 05-07-2017 17:16

    Thank you so much. I understood it. 

    One group could have one or more than one neighbors. This way several neighbors can share the group's features. also one of the neighbors in this group could have its own feature if the feartures exist following the neighbor in group command