I am using J4350 with JunOS 10.1. When I doing traceroute from inside net, I see:
traceroute to www.l.google.com (184.108.40.206), 64 hops max, 40 byte packets 1 one.of.my.router.ip.com (220.127.116.11) 3.319 ms 5.000 ms 2.463 ms..................
The router has a few more IPs assigned to the interface and the IP appeared (18.104.22.168) is smallest IP assigned. However, I would like to use another IP (22.214.171.124). Which command I should use?
Go to Solution.
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 126.96.36.199/24 primary".
However, this has implications for routing protocols like RIP, OSPF and ISIS.
You can change the source IP of the traceroute using traceroute source <source-ip> <destination-ip> , type 'traceroute ?' to see all the options.