Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In the following output, why does vpn1 route pings to 10.100.0.1 instead of 10.100.0.112? 10.100.0.1 is a network gateway with no NAT; 10.100.0.112 is a dual-homed host with NAT enabled.

root@vpn1:~# ip ro
10.8.0.21 dev tun0 proto kernel scope link src 10.8.0.22
8.8.8.8 via 10.100.0.112 dev eth0 src 10.100.0.5
10.8.0.0/24 via 10.8.0.21 dev tun0
192.168.124.0/24 dev eth1 proto kernel scope link src 192.168.124.1
10.100.0.0/24 dev eth0 proto kernel scope link src 10.100.0.5
192.168.123.0/24 via 10.8.0.21 dev tun0
default via 10.100.0.1 dev eth0 metric 100
root@vpn1:~# traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 10.100.0.1 (10.100.0.1) 0.287 ms 0.257 ms 0.317 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * *^C
root@vpn1:~# ping 10.100.0.112
PING 10.100.0.112 (10.100.0.112) 56(84) bytes of data.
64 bytes from 10.100.0.112: icmp_req=1 ttl=127 time=0.321 ms
^C

--- 10.100.0.112 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.321/0.321/0.321/0.000 ms
share|improve this question
    
can you do ip route flush cache as root and post whether this changes the route taken? –  Mike Pennington May 30 '11 at 22:12
1  
Boban P. Please do not cross-post on multiple sites. Either close this question, or the one on ServerFault –  Mike Pennington May 31 '11 at 0:29
    
I can see this being on-topic on both sites, but I'm going to close this one. @Boban If you want to keep this one flag the SF version and tell them to migrate it and we'll merge it –  Michael Mrozek May 31 '11 at 0:51
add comment

closed as not a real question by Michael Mrozek May 31 '11 at 0:52

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.