LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-30-2012, 03:05 AM   #1
joytux
LQ Newbie
 
Registered: Oct 2012
Distribution: Debian
Posts: 2

Rep: Reputation: Disabled
Routing problem (only) between HW and CT.


The very first hello to LinuxQuestions comunity
I read this forum since many years and solved lots of problems thanks to You guys, but now I have unusual problem so I have to ask you for help. I'm trying to fix this up since two weeks and got nothing. I stuck and loosing hair on my head because of it I think my case should be quiet simple to fix for sth who know ip route well. So I'll be thankful for help. My HW has 3 NICs with assigned ip:
WAN 123.123.123.123 for www, databases,ftp and other services.
WAN 111.222.333.444 for internet sharing
LAN 10.0.0.1

Above configurations works fine. On HW I installed OpenVZ and configured network, CT has external ip 111.222.333.445 (same network as nic for internet sharing). From CT i can ping:
google.com
111.222.333.444
10.0.0.0/24
self 111.222.333.445

But I can't ping 123.123.123.123 - this isn't as bad case because I can define in hosts file to resolve specific domain to 10.0.0.1 (not 123.123.123.123). The worst thing is from HW I can't ping:
self 10.0.0.1
CT 111.222.333.445

I can ping CT from any other machine over the internet. Assuming everythings works fine but I have no connection between HW and CT. I tried to modify my routing table but with no result (I believe there is one rule which I need to enter) so now I count on IT specs from LQ

Thank You and best regards.

Last edited by joytux; 10-30-2012 at 03:07 AM.
 
Old 10-30-2012, 02:16 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,907

Rep: Reputation: 165Reputation: 165
Do you add 123.123.123.123 network's route into CT machine routing table?
 
Old 10-30-2012, 04:47 PM   #3
joytux
LQ Newbie
 
Registered: Oct 2012
Distribution: Debian
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
Do you add 123.123.123.123 network's route into CT machine routing table?
CT's routing table is:
192.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 venet0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 venet0
0.0.0.0 192.0.2.1 0.0.0.0 UG 0 0 0 venet0

This is default setting for each CT and it's suppose to be working. But there is one more thing. When I run from HW traceroute 111.222.333.445 it goes out over internet through 123.123.123.123 and hits back CT using 111.222.333.442 (gateway). But when I run from CT traceroute 123.123.123.123 it try to hit HW directly. So i think when I want to ping CT from HW (and HW from CT) it request host using one interface but host send response to second one....

(I hope I'm clear enough ...and thank you for trying to solve my problem)
 
Old 10-31-2012, 02:17 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,907

Rep: Reputation: 165Reputation: 165
Both side should have consistant route.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing problem? or ppp connection problem? onim1978 Linux - Networking 1 09-09-2010 09:06 AM
Dynamic routing isn't done; static routing works for about 2 seconds for wireless gregorian Linux - Networking 7 02-19-2010 06:43 AM
need help with routing problem interndan Linux - Networking 3 11-24-2007 03:55 PM
routing problem gerrit_daniels Linux - Networking 2 09-28-2006 02:08 PM
routing problem durak Linux - Networking 1 11-14-2005 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration