Junos OS

last person joined: 7 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  How can I change (or select) the router IP that will appear in the traceroute

    Posted 07-01-2010 18:45

    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.  RE: How can I change (or select) the router IP that will appear in the traceroute
    Best Answer

    Posted 07-02-2010 02:19

    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



  • 3.  RE: How can I change (or select) the router IP that will appear in the traceroute

    Posted 07-02-2010 14:03

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