cancel
Showing results for 
Search instead for 
Did you mean: 

trace route

Abhilash Krishnan
Frequent Advisor

trace route

I have six lan card in my server.
but when i run traceroute to a particular ip address its using servers cluster IP to trace route ,ie

root:/>traceroute 172.16.12.133
traceroute: Warning: Multiple interfaces found; using 172.16.2.109 @ lan4:1
traceroute to 172.16.12.133 (172.16.12.133), 30 hops max, 40 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *

This is the netstat output

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan4:1 1500 172.16.2.64 172.16.2.109 325513929 0 9620975 0 0
lan3 1500 172.16.6.128 172.16.6.134 3012728825 0 2746456780 0 0
lan2 1500 172.16.253.0 172.16.253.178 9346634 0 15345230 0 0
lan1* 1500 none none 0 0 0 0 0
lan0 1500 192.168.1.0 192.168.1.4 13993190 0 7271597 0 0
lo0 4136 127.0.0.0 127.0.0.1 95379898 0 95381126 0 0
lan5 1500 172.16.6.32 172.16.6.40 3080462927 0 2811021832 0 0
lan4 1500 172.16.2.64 172.16.2.83 79601230 0 325601347 0 0



but i want physical ip to get trace route not the logical ip is there any priroty setting for the same because in netstat out put the logical ip is coming first.









7 REPLIES
Suraj K Sankari
Honored Contributor

Re: trace route

Hi,

Please post netstat -rn

Is there any gatway in your system ?


Suraj
Abhilash Krishnan
Frequent Advisor

Re: trace route

Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
172.16.6.40 172.16.6.40 UH 0 lan5 4136
172.16.2.83 172.16.2.83 UH 0 lan4 4136
172.16.253.178 172.16.253.178 UH 0 lan2 4136
172.16.2.109 172.16.2.109 UH 0 lan4:1 4136
172.16.6.134 172.16.6.134 UH 0 lan3 4136
192.168.1.4 192.168.1.4 UH 0 lan0 4136
192.168.1.91 172.16.2.65 UGH 0 lan4 0
172.17.202.45 172.16.253.1 UGH 0 lan2 0
172.16.6.128 172.16.6.134 U 2 lan3 1500
172.16.6.32 172.16.6.40 U 2 lan5 1500
172.16.2.64 172.16.2.83 U 3 lan4 1500
172.16.2.64 172.16.2.109 U 3 lan4:1 1500
192.168.1.0 192.168.1.4 U 2 lan0 1500
172.16.253.0 172.16.253.178 U 2 lan2 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 172.16.2.65 UG 0 lan4 0


above is the out put of netstat -rn default route is 172.16.2.65
Johnson Punniyalingam
Honored Contributor

Re: trace route

>traceroute: Warning: Multiple interfaces found;<<

You need to add route to 172.16.12.133 in your server becoz you have "Multiple interfaces "

Thx,
Johnson
Problems are common to all, but attitude makes the difference
Abhilash Krishnan
Frequent Advisor

Re: trace route

how to add route
please give the command
Johnson Punniyalingam
Honored Contributor

Re: trace route

route add net 172.16.12.133 netmask 255.255.255.255 172.16.2.65 1

(pls check the netmask) this will add a static route. than try

traceroute 172.16.12.133

Thx,
Johnson
Problems are common to all, but attitude makes the difference
Suraj K Sankari
Honored Contributor
George Neill
Trusted Contributor

Re: trace route

Therea are two way to do what you want.

1.)traceroute -s 172.16.2.83 172.16.12.133

or

2.)traceroute -i lan4 172.16.12.133

In #1 above you give it the IP address you want to use as the source for the trace and in the #2 you are giving it the lan card you want to use.

Good luck and Mary Christmas