Junos
Highlighted
Junos

Adding RE information to the hostname

a month ago

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

6 REPLIES 6
Highlighted
Junos

Re: Adding RE information to the hostname

a month ago

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."

 

Regards,
A.A.
Highlighted
Junos

Re: Adding RE information to the hostname

a month ago

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. Smiley Happy

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

 

Regards,
Sharat

Highlighted
Junos
Solution
Accepted by topic author vakas10
4 weeks ago

Re: Adding RE information to the hostname

a month ago

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

Highlighted
Junos

Re: Adding RE information to the hostname

a month ago

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.

Highlighted
Junos

Re: Adding RE information to the hostname

a month ago

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."

Regards,
A.A.
Highlighted
Junos

Re: Adding RE information to the hostname

a month ago

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-ho...

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

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

Feedback