Junos OS

last person joined: 15 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  Multiple loopback interfaces

    Posted 07-19-2014 01:02

    Hello !

     

    How can I correctly set multiple loopback interfaces in Junos routing-instance.(imitation of the subnet)

    I have tried differently , but always error output appear.

     

    [edit interfaces lo0]
    'unit 2'
    if_instance: Multiple loopback interfaces not permitted in GI routing instance
    error: configuration check-out failed

     



  • 2.  RE: Multiple loopback interfaces

    Posted 07-19-2014 04:12

    Hello there,

    Please see below:

     

    set interfaces lo0.2 family inet address 198.18.1.1/24
    set interfaces lo0.2 family inet address 198.18.2.1/24
    set routing-instances GI interfaces lo0.2

    If You need 2 addresses from same subnet, use shorter mask just once:

     

    set interfaces lo0.2 family inet address 203.0.113.1/32
    set interfaces lo0.2 family inet address 203.0.113.2/24
    set routing-instances GI interfaces lo0.2

     

     

     

    HTH

    Thanks
    Alex



  • 3.  RE: Multiple loopback interfaces

    Posted 07-19-2014 04:41

    Hello,  aarseniev!

     

    Actually, I do that too! How do you propose.

    But it is impossible to ping with second address ( with this configuration)

     


    Juniper-1
    [edit interfaces lo0 unit 1]
    root# show
    family inet {
    address 175.25.75.249/29;
    address 175.25.75.250/29;
    }

     

     

     

    Juniper-2
    [edit routing-options]
    root# show
    static {
    route 175.25.75.248/29 next-hop 192.168.100.253;
     }

     

    root# run ping 175.25.75.249
    PING 175.25.75.249 (175.25.75.249): 56 data bytes
    64 bytes from 175.25.75.249: icmp_seq=0 ttl=64 time=56.568 ms

     

    [edit routing-options]
    root# run ping 175.25.75.250
    PING 175.25.75.250 (175.25.75.250): 56 data bytes
    ^C
    --- 175.25.75.250 ping statistics ---
    3 packets transmitted, 0 packets received, 100% packet loss



  • 4.  RE: Multiple loopback interfaces
    Best Answer

    Posted 07-19-2014 10:10

    Hello there,

     


    @vlazarev wrote:

    Hello,  aarseniev!

     

    Actually, I do that too! How do you propose.

    But it is impossible to ping with second address ( with this configuration)

     


    Juniper-1
    [edit interfaces lo0 unit 1]
    root# show
    family inet {
    address 175.25.75.249/29;
    address 175.25.75.250/29;
    }

     

     

     

    Juniper-2
    [edit routing-options]
    root# show
    static {
    route 175.25.75.248/29 next-hop 192.168.100.253;
     }

     

     


    Please try the following and report back:

    [edit interfaces lo0 unit 1]
    root# show 
    family inet {
    address 175.25.75.249/32;
    address 175.25.75.250/29;
    }

     

    HTH

    Thanks
    Alex

     



  • 5.  RE: Multiple loopback interfaces

    Posted 07-20-2014 09:54

    Thank you for idea to use prefix /32.

    every host from subnet 175.25.75.248/29 should be assigned addresses with prefix /32