Junos
Highlighted
Junos

How can I change (or select) the router IP that will appear in the traceroute

‎07-01-2010 06:45 PM

Hello,

  I am using J4350 with JunOS 10.1. When I doing traceroute from inside net, I see:

traceroute to www.l.google.com (74.125.71.103), 64 hops max, 40 byte packets
 1  one.of.my.router.ip.com (1.1.1.1)  3.319 ms  5.000 ms  2.463 ms
..................

 

  The router has a few more IPs assigned to the interface and the IP appeared (1.1.1.1) is smallest IP assigned. However, I would like to use another IP (2.2.2.1). Which command I should use?

 

Thanks

Pang

2 REPLIES 2
Highlighted
Junos
Solution
Accepted by topic author pang
‎08-26-2015 01:27 AM

Re: How can I change (or select) the router IP that will appear in the traceroute

[ Edited ]
‎07-02-2010 02:18 AM

Hello,

The J4350 router replies to traceroutes with primary Ip address on its interface which by default is numerically lower IP address.

You can change that with "set interfaces ge-X/Y/Z.W family inet address 2.2.2.1/24 primary".

However, this has implications for routing protocols like RIP, OSPF and ISIS.

HTH

Regards

Alex

_____________________________________________________________________

Please ask Your Juniper account team about Juniper Professional Services offerings.
Juniper PS can design, test & build the network/part of the network as per Your requirements

+++++++++++++++++++++++++++++++++++++++++++++

Accept as Solution = cool !
Accept as Solution+Kudo = You are a Star !
Highlighted
Junos

Re: How can I change (or select) the router IP that will appear in the traceroute

‎07-02-2010 02:02 PM

You can change the source IP of the traceroute using traceroute source <source-ip> <destination-ip> , type 'traceroute ?' to see all the options.