Routing

last person joined: 22 hours 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.  BGP default-route not being installed in the routing table

    Posted 06-20-2014 07:00

    Hi,

     

    I'm studying for my JNCIE-SP exam and ran into the following issue.

     

    -PE is advertising a default-route to the CE using eBGP

    -CE receives the default-route but it is not installing the default-route in the routing table

     

    Here's the config for the PE

    root@R6# show routing-options 
    aggregate {
        route 0.0.0.0/0;
    }
    router-id 172.30.5.6;
    autonomous-system 65002;
    confederation 54591 members [ 65000 65001 65002 65003 ];
    
    [edit]
    root@R6# show protocols bgp group C2-1 
    type external;
    multihop;
    local-address 172.30.5.6;
    import C2-filter;
    export default-only;
    peer-as 64513;
    neighbor 172.31.31.1;
    
    [edit]
    root@R6# show policy-options policy-statement default-only 
    term 1 {
        from {
            protocol aggregate;
            route-filter 0.0.0.0/0 exact;
        }
        then accept;
    }
    term 2 {
        then reject;
    }

     Here's the CE receiving the BGP route but not installing it in it's routing-table

     

    root@EXTERNAL-VR> show route table C2-1.inet.0 protocol bgp all detail    
    
    C2-1.inet.0: 25 destinations, 25 routes (24 active, 0 holddown, 1 hidden)
    0.0.0.0/0 (1 entry, 0 announced)
             BGP   
                    Next hop type: Indirect
                    Address: 0x9890058
                    Next-hop reference count: 1
                    Source: 172.30.5.6
                    Next hop type: Router, Next hop index: 262142
                    Next hop: 192.168.0.21 via ge-0/0/4.306, selected
                    Next hop: 192.168.0.25 via ge-0/0/4.307
                    Protocol next hop: 172.30.5.6
                    Indirect next hop: 98cc2b8 -
                    State: <Hidden Ext>
                    Local AS: 64513 Peer AS: 54591
                    Age: 49:09      Metric2: 2 
                    Task: BGP_54591_64513.172.30.5.6+179
                    AS path: 54591 ({65000 65001}) {235 534 784 859 985 1039 1078 1413 1498 1527 1620 1900 2175 2455 2692 2732 2840 2853 2911 2942 2964 3090 3093 3205 3626 3725 3913 4322 4341 4364 4377 4450 4610 4637 4669 4724 5037 5144 5339 5510 5572 5632 5649 5676 5697 5705 5934 6086 6191 6452 6500 6621 6803 6854 6918 6965 7109 7318 7337 7408 7418 7478 7581 7608 7796 7810 7821 7864 7923 8149 8392 8532 8773 9105 9282 9290 9670 9726 9850 9868 10129 10512 10573 10724 10856 10943 11211 11245 11282 11347 11580 11678 11772 11804 11964 11967 11993 12096 12277 12432 12628 12792 12799 12833 12884 13258 13379 13600 13781 13839 13859 13893 13970 13997 14321 14421 14519 14574 14669 14769 14964 14977 15085 15134 15270 15311 15370 15391 15417 15698 15751 15757 15988 16104 16298 16320 16367 16415 16572 16644 16750 16804 16881 17027 17287 17311 17363 17401 17523 17596 17752 17952 18234 18306 18566 18632 18695 18823 18979 19022 19045 19128 19323 19412 19447 19579 19604 19626 19787 19797 20051 20058 20231 20336 20483 20484 20607 20756 21086 21140 21239 21300 21432 21793 21847 22156 22363 22395 22447 22477 22508 22685 22770 22825 22971 23011 23383 23618 23664 23731 23748 23941 23946 24130 24148 24177 24293 24527 24551 24614 24739 24761 24878 24894 25033 25197 25538 25561 25581 25782 26061 26192 26290 26393 26562 26593 26697 26743 26818 26901 26907 26964 27075 27127 27322 27513 27615 27622 27725 27842 27898 27917 28069 28074 28207 28240 28432 28515 28692 28835 29454 30006 30404 30608 30705} {30709 30767 30962 31063 31278 31460 31532 31570 31825 31871 31935 32138 32164 32212 32218 32262 32286 32308 32401 32523 32536 32644 32708 32856 33003 33112 33163 33190 33320 33485 33605 33786 33811 33879 33952 34264 34427 34454 34505 34562 34842 34877 34880 34908 35175 35488 35580 35761 35823 36024 36176 36263 36398 36409 36570 36619 36621 36652 36659 36832 36854 37067 37414 37561 37678 37730 37739 37744 37841 37986 38135 38168 38425 38523 38559 38631 39339 39463 39606 39639 39819 39993 40144 40234 40599 40612 40669 40776 40946 40964 40981 41164 41551 41681 41734 41865 41933 41968 42465 42527 42575 42989 43174 43266 43311 43560 43681 43916 43941 43953 44298 44354 44473 44544 44771 45020 45045 45580 45948 46305 46760 46848 47078 47123 47198 47257 47304 47538 47734 47832 47842 48413 48480 48485 48535 48575 48948 49064 49107 49129 49255 49276 49429 49763 49855 49911 49930 50097 50192 50234 50292 50753 50767 50769 50889 51038 51068 51297 51492 51521 51535 51777 51885 51919 52079 52154 52411 52437 52461 52765 52954 52989 53145 53199 53365 53536 53825 53908 53943 54246 54283 54314 54666 55461 55548 55556 55754 55803 55821 55936 56068 56251 56422 56469 56478 56522 56554 56813 56894 57041 57085 57359 57545 57552 57762 57763 57816 57966 57968 58079 58105 58517 59474 60051 60068 60078 60177 60236 60381 60637 60776 60886 61080 61181 61320 61361 61442 61597 61605 61649 61671 61778 61786 62064 62186 62341 62482 62507 62725 63154 63155 63164 63370 63627 63675 63776 63827 64005 64323 64337 64345} ? (InvalidConfedSegment) Aggregator: 54591 172.30.5.6
                    Router ID: 172.30.5.6

     Any help would be much appreciated!



  • 2.  RE: BGP default-route not being installed in the routing table

    Posted 06-20-2014 07:05
    State: <HIDDEN ...="">

    Run the command with the extensive option to see why it is hidden.

    I don't know if it's related, but you have this in the output: (InvalidConfedSegment)



    JUNOS CUP 2014 The Game is On!
    [cid:DA645D64-0FAE-4995-8AF6-65E2174B8C11]

    Are you a customer, a partner or simply a Junos amateur?
    Get your prize before the 8th July! http://forums.juniper.net<></HIDDEN>


  • 3.  RE: BGP default-route not being installed in the routing table

    Posted 06-20-2014 07:09

    Here's the extensive output

     

    root@EXTERNAL-VR> show route table C2-1.inet.0 protocol bgp all extensive 
    
    C2-1.inet.0: 25 destinations, 25 routes (24 active, 0 holddown, 1 hidden)
    0.0.0.0/0 (1 entry, 0 announced)
             BGP   
                    Next hop type: Indirect
                    Address: 0x9890058
                    Next-hop reference count: 1
                    Source: 172.30.5.6
                    Next hop type: Router, Next hop index: 262142
                    Next hop: 192.168.0.21 via ge-0/0/4.306, selected
                    Next hop: 192.168.0.25 via ge-0/0/4.307
                    Protocol next hop: 172.30.5.6
                    Indirect next hop: 98cc2b8 -
                    State: <Hidden Ext>
                    Local AS: 64513 Peer AS: 54591
                    Age: 1:09:11    Metric2: 2 
                    Task: BGP_54591_64513.172.30.5.6+179
                    AS path: 54591 ({65000 65001}) {235 534 784 859 985 1039 1078 1413 1498 1527 1620 1900 2175 2455 2692 2732 2840 2853 2911 2942 2964 3090 3093 3205 3626 3725 3913 4322 4341 4364 4377 4450 4610 4637 4669 4724 5037 5144 5339 5510 5572 5632 5649 5676 5697 5705 5934 6086 6191 6452 6500 6621 6803 6854 6918 6965 7109 7318 7337 7408 7418 7478 7581 7608 7796 7810 7821 7864 7923 8149 8392 8532 8773 9105 9282 9290 9670 9726 9850 9868 10129 10512 10573 10724 10856 10943 11211 11245 11282 11347 11580 11678 11772 11804 11964 11967 11993 12096 12277 12432 12628 12792 12799 12833 12884 13258 13379 13600 13781 13839 13859 13893 13970 13997 14321 14421 14519 14574 14669 14769 14964 14977 15085 15134 15270 15311 15370 15391 15417 15698 15751 15757 15988 16104 16298 16320 16367 16415 16572 16644 16750 16804 16881 17027 17287 17311 17363 17401 17523 17596 17752 17952 18234 18306 18566 18632 18695 18823 18979 19022 19045 19128 19323 19412 19447 19579 19604 19626 19787 19797 20051 20058 20231 20336 20483 20484 20607 20756 21086 21140 21239 21300 21432 21793 21847 22156 22363 22395 22447 22477 22508 22685 22770 22825 22971 23011 23383 23618 23664 23731 23748 23941 23946 24130 24148 24177 24293 24527 24551 24614 24739 24761 24878 24894 25033 25197 25538 25561 25581 25782 26061 26192 26290 26393 26562 26593 26697 26743 26818 26901 26907 26964 27075 27127 27322 27513 27615 27622 27725 27842 27898 27917 28069 28074 28207 28240 28432 28515 28692 28835 29454 30006 30404 30608 30705} {30709 30767 30962 31063 31278 31460 31532 31570 31825 31871 31935 32138 32164 32212 32218 32262 32286 32308 32401 32523 32536 32644 32708 32856 33003 33112 33163 33190 33320 33485 33605 33786 33811 33879 33952 34264 34427 34454 34505 34562 34842 34877 34880 34908 35175 35488 35580 35761 35823 36024 36176 36263 36398 36409 36570 36619 36621 36652 36659 36832 36854 37067 37414 37561 37678 37730 37739 37744 37841 37986 38135 38168 38425 38523 38559 38631 39339 39463 39606 39639 39819 39993 40144 40234 40599 40612 40669 40776 40946 40964 40981 41164 41551 41681 41734 41865 41933 41968 42465 42527 42575 42989 43174 43266 43311 43560 43681 43916 43941 43953 44298 44354 44473 44544 44771 45020 45045 45580 45948 46305 46760 46848 47078 47123 47198 47257 47304 47538 47734 47832 47842 48413 48480 48485 48535 48575 48948 49064 49107 49129 49255 49276 49429 49763 49855 49911 49930 50097 50192 50234 50292 50753 50767 50769 50889 51038 51068 51297 51492 51521 51535 51777 51885 51919 52079 52154 52411 52437 52461 52765 52954 52989 53145 53199 53365 53536 53825 53908 53943 54246 54283 54314 54666 55461 55548 55556 55754 55803 55821 55936 56068 56251 56422 56469 56478 56522 56554 56813 56894 57041 57085 57359 57545 57552 57762 57763 57816 57966 57968 58079 58105 58517 59474 60051 60068 60078 60177 60236 60381 60637 60776 60886 61080 61181 61320 61361 61442 61597 61605 61649 61671 61778 61786 62064 62186 62341 62482 62507 62725 63154 63155 63164 63370 63627 63675 63776 63827 64005 64323 64337 64345} ? (InvalidConfedSegment) Aggregator: 54591 172.30.5.6
                    Router ID: 172.30.5.6
                    Indirect next hops: 1
                            Protocol next hop: 172.30.5.6 Metric: 2
                            Indirect next hop: 98cc2b8 -
                            Indirect path forwarding next hops: 2
                                    Next hop type: Router
                                    Next hop: 192.168.0.21 via ge-0/0/4.306
                                    Next hop: 192.168.0.25 via ge-0/0/4.307
                            172.30.5.6/32 Originating RIB: C2-1.inet.0
                              Metric: 2                       Node path count: 1
                              Forwarding nexthops: 2
                                    Nexthop: 192.168.0.21 via ge-0/0/4.306
                                    Nexthop: 192.168.0.25 via ge-0/0/4.307

     I also noticed this keyword (InvalidConfedSegment) but couldn't find ANY info on this in Juniper/Google sites.



  • 4.  RE: BGP default-route not being installed in the routing table
    Best Answer

    Posted 06-21-2014 00:05

    Hello,

    http://tools.ietf.org/html/rfc5065#page-6

     

    A BGP speaker MUST NOT transmit updates containing AS_CONFED_SET or
       AS_CONFED_SEQUENCE attributes to peers that are not members of the
       local confederation.
    
       It is an error for a BGP speaker to receive an UPDATE message with an
       AS_PATH attribute that contains AS_CONFED_SEQUENCE or AS_CONFED_SET
       segments from a neighbor that is not located in the same
       confederation.  If a BGP speaker receives such an UPDATE message, it
       SHALL treat the message as having a malformed AS_PATH according to
       the procedures of [BGP-4], Section 6.3 ("UPDATE Message Error
       Handling").

     Because You are aggregating EVERYTHING into 0/0, one or more contributing routes likely contain an AS_CONFED_SET ({65000 65001}).

    Please examine all your contrubuting routes and find one which has this segment.

    Thanks
    Alex



  • 5.  RE: BGP default-route not being installed in the routing table

    Posted 06-23-2014 06:43

    Thanks for the awesome response! I knew it had something to do with that but I honestly couldn't find any reference to that error either on the Juniper site or anywhere else in the Web. 



  • 6.  RE: BGP default-route not being installed in the routing table

    Posted 06-21-2014 23:29
    show route table C2-1.inet.0 hidden detail