Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm starting with GRE tunneling and I got two machines connected between them-self:

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.168.2  P-t-P:192.168.168.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:249 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15672 (15.3 KiB)  TX bytes:6804 (6.6 KiB)

[root@zombie02 network-scripts]# ping 192.168.168.2
PING 192.168.168.2 (192.168.168.2) 56(84) bytes of data.
64 bytes from 192.168.168.2: icmp_seq=1 ttl=64 time=0.015 ms
64 bytes from 192.168.168.2: icmp_seq=2 ttl=64 time=0.014 ms

--- 192.168.168.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.014/0.014/0.015/0.003 ms
[root@zombie02 network-scripts]# ping 192.168.168.1
PING 192.168.168.1 (192.168.168.1) 56(84) bytes of data.
64 bytes from 192.168.168.1: icmp_seq=1 ttl=64 time=34.9 ms
64 bytes from 192.168.168.1: icmp_seq=2 ttl=64 time=33.0 ms

--- 192.168.168.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 33.062/33.997/34.933/0.953 ms
[root@zombie02 network-scripts]#

So; both machines can ping each other; but I don't know how can I get the machine 2, to be able to reach the internet of the machine 1:

[root@zombie02 network-scripts]# ping -I 192.168.168.2 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.168.2 : 56(84) bytes of data.


--- 8.8.8.8 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4000ms

[root@zombie02 network-scripts]#


[root@zombie01 ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.168.2   *               255.255.255.255 UH    0      0        0 tun0
**.47.224.120   *               255.255.255.248 U     0      0        0 eth1
172.18.2.64     *               255.255.255.192 U     0      0        0 eth0
172.16.0.0      172.18.2.65     255.240.0.0     UG    0      0        0 eth0
default         **.47.224.121.s 0.0.0.0         UG    0      0        0 eth1
[root@zombie01 ~]#

[root@zombie02 network-scripts]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.168.1   *               255.255.255.255 UH    0      0        0 tun0
**.254.69.104  *               255.255.255.252 U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         192.254.69.105  0.0.0.0         UG    0      0        0 eth0
[root@zombie02 network-scripts]#

I already checked other questions; and I'm reading all the available tutorials, but looks like there is something that I'm not doing.

Thank you in advanced for any help.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.