LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2006, 10:27 PM   #1
newbie_adm
Member
 
Registered: Jun 2006
Posts: 40

Rep: Reputation: 15
routing problem


Hi there!!I have 2 pc here our office. Both computers are for development/training purposes. Both pc belongs to different network segments. DesktopA is connected with our private network with IP address 192.168.100.X.DesktopB is connected with our public IP address. I place another NIC on both Desktops, so they have now 2 NICs on each pc's. I have assigned both pc a new IP address 192.168.15.x and put a switch between them. The new NICs of both pc have IP addresses 192.168.15.x. My problem is that when I assigned new IP on the new NICs, they can reach each other. I may have proiblems with routing. I dont know if said nyself correctly.BUt my problem was routing.How can I fix these problem. Please help.

Reards,
newbie_adm
 
Old 08-25-2006, 12:59 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You are implying that there are other computers on the 192.168.100.X network. You created another network segment 192.168.15.X so that the two computers can comunicate with each other. You said that computers A & B are talking to each other. What other traffic do you want that isn't working? Do you want to use Computer B as a gateway to give Computer A internet access? Do you want computer B to masquerade the IP address of computer A or do you have more than one public IP address? Do you want traffic between the outside (public address) and the inside network (192.168.100.X)?

Also, please indicate which distro you are using. Some distro's will have a graphical network/interface configuration utility to make things easier. Some distro's use ifcfg-<interface> files to configure the interfaces, while for others you need to supply a startup script.

Last edited by jschiwal; 08-25-2006 at 01:00 AM.
 
Old 08-25-2006, 06:10 AM   #3
newbie_adm
Member
 
Registered: Jun 2006
Posts: 40

Original Poster
Rep: Reputation: 15
RE:routing problem

Both computer have internet connections.DesktopA is using a proxy to connect to the internet.DesktopB is using a public IP address(203.167.117.xxx).DesktopB is a linux based desktop with Suse 9.2.It has a Oracle 10g application. I have assigned pc B a IP address on the 2nd NIC(192.168.15.1).The default gateway of pc B is (203.167.117.201 Just an example).DesktopA belongs on our private network(192.168.100.2).The private netowrk a lot of pc. I have assigned Desktop B a new IP on the 2nd NIC also(192.168.15.2). DesktopA's OS is WIndows 2000 server. I wanted that my window based system can do a ssh on the linux based system. The problem was I cannot even ping the IP address of PC B. When I'm on PC B, I cannot also ping PC A. I tried to add a new routing to the linux based system and still does not work. Can you help me on this.I hope i don't confused you with. Thanks


Best Regards,
newbie_adm
 
Old 08-26-2006, 07:30 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Quote:
I have assigned both pc a new IP address 192.168.15.x and put a switch between them.
I'm assuming that the windows host you mentioned is a third machine, and is on the local network (192.168.100.xxx).
To reach host B, it has to go through host A. So host A has to have ip forwarding enabled. Also, the windows host will need to have a route defined so that it uses the private address of Host A as the gateway for any 192.168.15.xxx address. Otherwise it will send traffic to the default gateway which won't see the 192.168.15.xxx network. Another thing is that for ssh, you need to use agent forwarding such as ssh-agent or gpg-agent, or use the -A option for ssh. I don't know if your windows ssh program supports that.

An alternative is to have both A & B connected to the local network instead of a connection between the two.
Then host A will need just the one interface.
 
  


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 energiza Linux - Networking 7 06-22-2005 05:46 PM
Routing problem Infernal211283 Linux - Networking 3 02-28-2005 03:59 AM
Routing Problem StraitFaced Linux - Enterprise 8 10-26-2004 12:22 PM
Problem with routing. jankarlsen Linux - Networking 5 08-12-2004 11:37 PM
Routing problem tekn0phile Linux - Networking 4 10-17-2003 08:22 AM


All times are GMT -5. The time now is 06:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration