Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] CAN NOT ping - firewall or any internal IP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2571
Location: Edmonton, AB

PostPosted: Tue Feb 14, 2012 5:58 am    Post subject: [SOLVED] CAN NOT ping - firewall or any internal IP Reply with quote

I have two internal network: 10.0.0.1 and 10.10.0.1

One box is connected to 10.10.0.1 and is running OK (I can ping firewall 10.10.0.1 and any internal IP) but when I tried to connect this box to network: 10.0.0.1
it gets an IP OK 10.0.0.112 but I can not ping firewall (which is 10.0.0.1) nor any other internal computers on the same network.

What to look for?
_________________
#Thelma


Last edited by Joseph_sys on Tue Feb 14, 2012 1:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2571
Location: Edmonton, AB

PostPosted: Tue Feb 14, 2012 6:42 am    Post subject: Reply with quote

I can ping myself 10.0.0.112 but not any other computer or IP in this network.
Code:
netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.0.1        0.0.0.0         UG        0 0          0 eth0
10.0.0.0        192.168.139.7   255.255.255.0   UG        0 0          0 tun0
10.0.0.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG        0 0          0 lo
192.168.139.0   0.0.0.0         255.255.255.0   U         0 0          0 tun0

Code:
ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1f:d0:a2:df:9d 
          inet addr:10.0.0.112  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:d0ff:fea2:df9d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:669 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:197302 (192.6 KiB)  TX bytes:104574 (102.1 KiB)
          Interrupt:41 Base address:0xe000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:39 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2874 (2.8 KiB)  TX bytes:2874 (2.8 KiB)

sit0      Link encap:IPv6-in-IPv4 
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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.139.1  P-t-P:192.168.139.1  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:10128 (9.8 KiB)

_________________
#Thelma
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Tue Feb 14, 2012 9:36 am    Post subject: Reply with quote

routing issue:

Code:
10.0.0.0        192.168.139.7   255.255.255.0   UG        0 0          0 tun0
10.0.0.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0

you have 2 routes to 10.0.0.0/24 network. normally I would assume, that the locally attached network takes precedence over the routed one. But I am not sure, how it behaves with a vpn tunnel.

what happens if you disable the vpn tunnel? are you able to ping another host in the subnet?

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2571
Location: Edmonton, AB

PostPosted: Tue Feb 14, 2012 1:45 pm    Post subject: Reply with quote

Veldrin wrote:
routing issue:

Code:
10.0.0.0        192.168.139.7   255.255.255.0   UG        0 0          0 tun0
10.0.0.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0

you have 2 routes to 10.0.0.0/24 network. normally I would assume, that the locally attached network takes precedence over the routed one. But I am not sure, how it behaves with a vpn tunnel.

what happens if you disable the vpn tunnel? are you able to ping another host in the subnet?

V.


Your are correct, disabling the VPN solves the problem.

I think the system was confused and didn't know which route to take.
_________________
#Thelma
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum