Routing

last person joined: 3 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.  Why "BGP clear bgp neighbor x.x.x.x soft-inbound " not affect ???

    Posted 03-01-2012 18:27

    Hi,

         my topology is  RTE-----------RTF they running BGP

     

    RTE advertising  the route "200.200.200.1" to the RTF

     

    RTF advertising  the route "100.100.100.1" to the RTE

     


    test@RTE# run show route                                   

    inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    0.0.0.0/0          *[Static/5] 2w3d 14:13:12
                        > to 172.31.0.254 via fxp0.0
    4.4.4.4/32         *[Direct/0] 2w3d 14:13:13
                        > via lo0.0
    15.15.15.0/30      *[Direct/0] 00:11:17
                        > via so-0/0/1.0
    15.15.15.2/32      *[Local/0] 00:11:23
                          Local via so-0/0/1.0
    100.100.100.1/32   *[BGP/170] 00:03:19, localpref 100
                          AS path: 12345 I
                        > to 15.15.15.1 via so-0/0/1.0
    172.31.0.0/24      *[Direct/0] 2w3d 14:13:13
                        > via fxp0.0
    172.31.0.5/32      *[Local/0] 2w3d 14:13:13
                          Local via fxp0.0
    200.200.200.1/32   *[Static/5] 00:06:45
                          Reject
    224.0.0.5/32       *[OSPF/10] 2w3d 14:13:14, metric 1
                          MultiRecv

     


    test@RTF# run show route   

    inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    2.2.2.2/32         *[Direct/0] 2w3d 10:42:53
                        > via lo0.0
    15.15.15.0/30      *[Direct/0] 00:11:07
                        > via so-0/0/1.0
    15.15.15.1/32      *[Local/0] 00:11:09
                          Local via so-0/0/1.0
    100.100.100.1/32   *[Static/5] 00:06:27
                          Reject
    172.31.0.0/24      *[Direct/0] 2w3d 10:42:53
                        > via fxp0.0
    172.31.0.6/32      *[Local/0] 2w3d 10:42:53
                          Local via fxp0.0
    192.168.1.0/24     *[Direct/0] 2w3d 10:41:17
                        > via ae0.0
    192.168.1.1/32     *[Local/0] 2w3d 10:42:07
                          Local via ae0.0
    200.200.200.1/32   *[BGP/170] 00:00:24, localpref 100
                          AS path: 1234 I
                        > to 15.15.15.2 via so-0/0/1.0

     

     

    when l try this run command "clear bgp neighbor soft-inbound",the route with the local AS number is not present and active in RTE

     

      test@RTE# run clear bgp neighbor 15.15.15.1 soft-inbound   

     

     

    RTE
    test@RTE# run show route                                   

    inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    0.0.0.0/0          *[Static/5] 2w3d 14:13:12
                        > to 172.31.0.254 via fxp0.0
    4.4.4.4/32         *[Direct/0] 2w3d 14:13:13
                        > via lo0.0
    15.15.15.0/30      *[Direct/0] 00:11:17
                        > via so-0/0/1.0
    15.15.15.2/32      *[Local/0] 00:11:23
                          Local via so-0/0/1.0
    100.100.100.1/32   *[BGP/170] 00:03:19, localpref 100      

                          AS path: 12345 I
                        > to 15.15.15.1 via so-0/0/1.0
    172.31.0.0/24      *[Direct/0] 2w3d 14:13:13
                        > via fxp0.0
    172.31.0.5/32      *[Local/0] 2w3d 14:13:13
                          Local via fxp0.0
    200.200.200.1/32   *[Static/5] 00:06:45
                          Reject
    224.0.0.5/32       *[OSPF/10] 2w3d 14:13:14, metric 1
                          MultiRecv

     



  • 2.  RE: Why "BGP clear bgp neighbor x.x.x.x soft-inbound " not affect ???

    Posted 03-02-2012 03:32

    Hi,

     

    clear bgp neighbor soft-inbound is used to reapply any import policies and send refresh updates to neighbors without clearing the state.

     

    http://www.juniper.net/techpubs/en_US/junos10.2/topics/reference/command-summary/clear-bgp-neighbor.html

     

    for example if router receive bgp update from another ebgp neighbor contain his AS it will discard the update and keep discarding even you configure (set routing-options autonomous-system loops x) to allow this update. so by issue this command (clear bgp neighbor soft-inbound) to enforce your peer to resend his update again to apply your import policy and allow this update

     

    Regards,

     

    Mohamed Elhariry

     

    JNCIE-M/T # 1059, CCNP & CCIP

     

    ----------------------------------------------------------------------------------------------------------------------------------------

    If this post was helpful, please mark this post as an "Accepted Solution".Kudos are always appreciated!