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.  Loopback interface and rib-groups

    Posted 03-24-2012 19:47

    Hello!

     

    I have lo0.0 interface in default routing table :

    minotaur@br1-gdr.ki# show interfaces lo0
    unit 0 {
        family inet {
            address 109.68.40.32/32;
        }
    }

    minotaur@br1-gdr.ki# run show route 109.68.40.32/32 table inet.0

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

    109.68.40.32/32    *[Direct/0] 00:38:51
                        > via lo0.0

    I export interface route to other routing instance:

    [edit]
    minotaur@br1-gdr.ki# show routing-options interface-routes
    rib-group inet rg-Main2Salt;
    
    [edit]
    minotaur@br1-gdr.ki# show routing-options rib-groups rg-Main2Salt
    import-rib [ inet.0 Salt.inet.0 ];
    
    [edit]
    minotaur@br1-gdr.ki# run show route 109.68.40.32/32 table Salt
    
    Salt.inet.0: 399123 destinations, 407025 routes (399121 active, 0 holddown, 2 hidden)
    + = Active Route, - = Last Active, * = Both
    
    109.68.40.32/32    *[Direct/0] 00:33:52
                        > via lo0.0

     

    But when I'm trying to ping 109.68.40.32 via interface in Salt instance I get replies not from 109.68.40.32:

    /home/minotaur>ping 109.68.40.32
    PING 109.68.40.32 (109.68.40.32): 56 data bytes
    64 bytes from 109.68.40.225: icmp_seq=0 ttl=61 time=0.933 ms
    64 bytes from 109.68.40.225: icmp_seq=1 ttl=61 time=0.904 ms
    ^C
    --- 109.68.40.32 ping statistics ---
    2 packets transmitted, 2 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.904/0.919/0.933/0.014 ms

     

    109.68.40.225 is an adress of interface in Salt instance:

    minotaur@br1-gdr.ki# show interfaces xe-1/3/0
    unit 0 {
        description Core;
        family inet {
            no-redirects;
            address 109.68.40.225/29;
        }
    }

     

    What's wrong? Thanks in advance!




  • 2.  RE: Loopback interface and rib-groups

    Posted 03-25-2012 00:04

    Hi,

     

    It seems no problem in configuration as when you check show route table Salt and find both subnets (/29 & /32) in the table plus the default-GW on the server it self is 109.68.40.225 

     

    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!



  • 3.  RE: Loopback interface and rib-groups

    Posted 03-25-2012 04:45

    I don't see any problem in configuration too. But ICMP replies come back from wrong IP address. And there is something strange with tracerouting, for example traceroute with mtr is infinite:

     1. 192.168.0.1                                                       0.0%     3    0.4   0.4   0.4   0.4   0.0
     2. gi0-1-250.cr1-gdr.ki.itcons.net.ua                                0.0%     3    0.7   0.6   0.6   0.7   0.0
     3. ge-1-3-11-0.br1-gdr.ki.itcons.net.ua                              0.0%     3    0.7   5.3   0.7  14.5   8.0
     4. 109.68.40.225                                                     0.0%     3    0.8   1.4   0.8   2.6   1.0
     5. 109.68.40.225                                                     0.0%     3    0.8   0.8   0.8   0.8   0.0
     6. 109.68.40.225                                                     0.0%     3    0.8   0.8   0.8   0.8   0.0
     7. 109.68.40.225                                                     0.0%     3    5.6  13.7   0.8  34.6  18.3
     8. 109.68.40.225                                                     0.0%     3    0.8   6.2   0.8  17.0   9.4
     9. 109.68.40.225                                                     0.0%     3    0.8   0.8   0.8   0.9   0.1
    10. 109.68.40.225                                                     0.0%     3    0.8   0.8   0.8   1.0   0.1
    11. 109.68.40.225                                                     0.0%     3    0.8   6.5   0.8  17.9   9.9
    12. 109.68.40.225                                                     0.0%     3    0.8   0.9   0.8   0.9   0.1
    13. 109.68.40.225                                                     0.0%     3    0.8   0.9   0.8   1.2   0.2
    14. 109.68.40.225                                                     0.0%     3    0.8   0.8   0.8   0.8   0.0
    15. 109.68.40.225                                                     0.0%     2    0.8   0.8   0.8   0.9   0.1
    16. 109.68.40.225                                                     0.0%     2    0.7  13.1   0.7  25.5  17.5
    17. 109.68.40.225                                                     0.0%     2    0.8   0.8   0.8   0.8   0.0
    18. 109.68.40.225                                                     0.0%     2    0.8   0.9   0.8   0.9   0.0
    19. 109.68.40.225                                                     0.0%     2    0.8   0.7   0.7   0.8   0.1
    20. 109.68.40.225                                                     0.0%     2    0.9   0.8   0.7   0.9   0.1
    21. 109.68.40.225                                                     0.0%     2    0.8   0.8   0.8   0.8   0.0
    22. 109.68.40.225                                                     0.0%     2    0.7   0.9   0.7   1.0   0.2
    23. 109.68.40.225                                                     0.0%     2    0.7   0.8   0.7   0.8   0.0
    24. 109.68.40.225                                                     0.0%     2    0.8   0.9   0.8   0.9   0.1
    25. 109.68.40.225                                                     0.0%     2    0.8   5.2   0.8   9.7   6.3
    26. 109.68.40.225                                                     0.0%     2   27.3  14.1   0.8  27.3  18.7
    27. 109.68.40.225                                                     0.0%     2    0.8   0.8   0.8   0.8   0.0
    28. 109.68.40.225                                                     0.0%     2    0.8   0.8   0.8   0.8   0.0
    29. 109.68.40.225                                                     0.0%     2    0.8   0.8   0.8   0.8   0.0
    30. 109.68.40.225                                                     0.0%     2    0.8   0.8   0.8   0.8   0.0

    traceroute with Unix 'traceroute' is finite but finishes also at wrong address:

    # traceroute -I 109.68.40.32
    traceroute to 109.68.40.32 (109.68.40.32), 64 hops max, 60 byte packets
     1  192.168.0.1 (192.168.0.1)  0.403 ms  0.418 ms  0.349 ms
     2  gi0-1-250.cr1-gdr.ki.itcons.net.ua (109.68.46.145)  0.600 ms  0.570 ms  0.615 ms
     3  ge-1-3-11-0.br1-gdr.ki.itcons.net.ua (109.68.40.173)  0.607 ms  0.574 ms  0.613 ms
     4  109.68.40.225 (109.68.40.225)  0.859 ms  0.714 ms  0.737 ms

     



  • 4.  RE: Loopback interface and rib-groups
    Best Answer

    Posted 03-25-2012 04:49

    I got a solution:

     

    Date: Sun, 25 Mar 2012 07:34:06 +0100                                                                                                                                   
    From: Alex Arseniev
    Subject: Re: [j-nsp] Loopback interface and rib-groups                                                                                                                  
    To: Juniper List                                                                                         

    You don't have to do that with lo0 interface routes in JUNOS.
    Configure lo0.<nonzero-unit-number> with same IP, put it in Salt RI and it
    will work.
    HTH
    Rgds
    Alex