Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page Unable to ping through the Tunnel....
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 03-20-2008   #1 (permalink)
ashish_nec
Just Joined!
 
Join Date: Mar 2008
Posts: 2
Unable to ping through the Tunnel....

Collision/Error in ipip Tunnel

Scenario


I have 2 Linux machines A and B acting as routers

Machine A has 2 Network cards cardA.1 at 10.0.40.1(eth1) and cardA.2 at 10.0.1.94(eth0)
Machine B has 2 Network cards cardB.1 at 10.0.44.1(eth1) and cardB.2 at 10.0.1.66(eth0)
S.t. card B.2 & A.2 are connected to 10.0.0.0/29 network,
cardA.1 is connected to 10.0.40.0/24 network, and
cardB.1 is connected to 10.0.44.0/8 network.

A machine C 10.0.40.2 has moved from network 10.0.40.0 to 10.0.44.0 Network
Now I need to ping to Machine C by using tunl0 from 10.0.40.1 machine.


Now I have created a tunnel as

ip tunnel add tunl0 mode ipip local 10.0.40.1 remote 10.0.44.1
ifconfig tunl0 10.0.40.1 pointopoint 10.0.44.1

Routing table at Machine A is -

destination Gateway Genmask Flags Metric Ref Use Iface
10.0.40.2 0.0.0.0 255.255.255.255 UH 0 0 0 tunl0
10.0.44.1 10.0.1.66 255.255.255.255 UGH 0 0 0 eth0
10.0.44.0 10.0.1.66 255.255.255.248 UG 0 0 0 eth0
10.0.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.0.0.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
0.0.0.0 10.0.0.2 0.0.0.0 UG 0 0 0 eth0

Routing table at Machine B is -

Destination Gateway Genmask Flags Metric Ref Use Iface
255.255.255.255 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
10.0.40.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
10.0.40.1 10.0.1.94 255.255.255.255 UGH 0 0 0 eth0
10.0.44.0 0.0.0.0 255.255.255.248 U 0 0 0 eth1
10.0.0.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 tunl0
0.0.0.0 10.0.0.2 0.0.0.0 UG 0 0 0 eth0


I am able to ping to 10.0.40.2 by 10.0.44.1 and vice versa with the help of following routes at Machine C:
Routing table at Machine C is -



Now when I ping to Machine C by using tunl0 from 10.0.40.1 machine. My packets are dropped due to collisions in ipip tunnel driver code. I'm giving the code snippet below:

(2.6.20 Ref:- file: ipip.c, line no:560-570)
tdev = rt->u.dst.dev;

if (tdev == dev) {
ip_rt_put(rt); /*THIS IS THE LOCATION OF PACKET DISCARDED*/
tunnel->stat.collisions++;
goto tx_error;
}
After encapsulation when dst is searched for tunnel ip header(src:10.0.40.1, dst:10.0.44.1), it returns tunl0 rather than eth0 and hence a collision occurs.

Please Look after The query and let me know after looking through the presented scenario and let me know anything new ?
Please check Routing entries....too
and let me know how I will be able to do atleast ping to Machine C 10.0.40.2 in above scenario.

Thanx
Ashish
ashish_nec is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 04:30 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0