Junos OS

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Adding RE information to the hostname

    Posted 07-03-2020 08:31

    Hi guys,

    I have a MX10003 router with dual REs. I want to add the RE information in the hostname so that I can find which RE is active just from the name. Kindly tell me if the following config is enough?

    XYZ@ASFC03# show | compare
    [edit groups]
    +  re0 {
    +      system {
    +          host-name ASFC03_re0;
    +      }
    +  }
    +  re1 {
    +      system {
    +          host-name ASFC03_re1;
    +      }
    +  }
    [edit]
    + apply-groups [ re0 re1 ];
    [edit system]
    -  host-name ASFC03;

    Thanks


    #RE
    #JUNOS
    #host-name
    #mx10003


  • 2.  RE: Adding RE information to the hostname

     
    Posted 07-03-2020 08:42

    Hi,

     

    you can see this by default on the CLI prompt below between {} which indicate that this is the master and re0

    {master:0}
    labroot@mx>

     

    If this solves your problem, please mark this post as "Accepted Solution."

     



  • 3.  RE: Adding RE information to the hostname

    Posted 07-03-2020 08:43

    Hi vakas10, 

     

    Yes, you are absolutely right wrt configuration.

    set groups re0 system host-name ASFC03_re0
    set groups re1 system host-name ASFC03_re1

     

    Hope this helps. 

    Please mark "Accept as solution" if this answers your query.  Kudos are appreciated too! 

     

    Regards,
    Sharat


    #configuration
    #RE
    #cli
    #JUNOS
    #host-name


  • 4.  RE: Adding RE information to the hostname

    Posted 07-05-2020 11:12

    Hi, thanks. I have one supplementary question. As you can see from the "show | compare" in my original post, the device already has a hostname so is there any network impact expected while making the recommended change I ask this because the device is in production and I don't want to cause any kind of outage etc.



  • 5.  RE: Adding RE information to the hostname

     
    Posted 07-05-2020 14:05

    Hi Vakas10,

     

    Changing hostname should not cause any network outage. However if you use hostname to access the device like "telnet ASFC03" instead of "telnet <ip address>" you may need to update some internal naming servers records for this but that would not affect the network traffic.

     

    If this solves your problem, please mark this post as "Accepted Solution."



  • 6.  RE: Adding RE information to the hostname

     
    Posted 07-05-2020 18:16

    Hello Vakas,

     

    There would NOT be any service impact while you are making recommended changes.

     

    Some of the Related Links you can refer:

    https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/junos-software-router-hostname-configuring.html

    https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/host-name-edit-system.html

    https://www.juniper.net/documentation/en_US/junos/topics/topic-map/hostnames.html

     

    I hope this helps.

     

    Kudos are always appreciated! Smiley Happy

     

    Best Regards,

    Lingabasappa H



  • 7.  RE: Adding RE information to the hostname
    Best Answer

     
    Posted 07-03-2020 20:56

    Hello Vikas,

     

    Yes. the below information is enough for you to determine which RE is master:

     

    Below snippet from one of the lab device:

    {master}[edit]
    labroot@jtac-mx480-r2032-re0# show groups |display set|match host
    set groups re0 system host-name jtac-mx480-r2032-re0
    set groups re1 system host-name jtac-mx480-r2032-re1

     

    re0 {
    system {
    host-name jtac-mx480-r2032-re0;
    }
    interfaces {
    fxp0 {
    unit 0 {
    family inet {
    address XX.XX.XX.XX/X;
    }
    }
    }
    }
    }


    re1 {
    system {
    host-name jtac-mx480-r2032-re1;
    }
    interfaces {
    fxp0 {
    unit 0 {
    family inet {
    address XX.XX.XX.XX/X;
    }
    }
    }
    }
    }

     

    I hope this helps. Please mark this post "Accept as solution" if this answers your query.

     

    Kudos are always appreciated! Smiley Happy

     

    Best Regards,

    Lingabasappa H