2015年10月30日 星期五

[Linux 常見問題] How to find the gateway used for routing?

Source From HereQuestionThis is in unix environment. I have multiple routes in a host (visible with 'ip route show' command). If I am pinging an address, how can I find out which gateway was used to route the tracffic? I tried using traceroute command, but it does not show the immediate gateway.