LinuxQuestions.org
Help answer threads with 0 replies.
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 04-02-2009, 07:45 AM   #1
rnbguy
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 0
routing advise needed


hi guys i have this setup:

Machine A ---> external routing device (10.x.x.2) --> external routing device 2 (10.x.x.3) --> Machine B


I want to get from machine A to B via external device1.

The problem is I dont have an ip on that external network, so i figure i can tell iptables to rediect packets from machineA to machineB to go via external device (10.x.x.2) is this possible?
 
Old 04-02-2009, 02:21 PM   #2
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Sounds like Machine A has two NICs one going to the internet and the second going to machine B.
Seems to me that NIC 1 should be set up to pull an IP address from the internet and:
NIC 2 should be set up as a DHCP server to provide a private address to Machine B..
Machine B needs to be setup to obtain an IP address automatically.

What is NIC 1 of Machine A connected to? Router/Cable modem?
 
Old 04-02-2009, 03:43 PM   #3
rnbguy
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
sorry for not explaining this correctly, machine a and b have no link other then through those two remote routers they use as a path. Both machines do not and cannot have a nic with an IP on the same subnet as those machines, hence why i can't simply use "route add" as the network wont be found, hence i want iptables to route all packets going from A to B via those two internal machines (in otherwords have a gateway on a different network)
 
Old 04-02-2009, 04:02 PM   #4
rnbguy
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
all good we figured out we dont need to do this sorry.
 
Old 04-02-2009, 05:04 PM   #5
rnbguy
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Original Poster
Rep: Reputation: 0
come to think of it, im just curious how you'd do it, how can i set gw to be an external ip?
 
  


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
Advise needed: NTFS defrag tool Sunny Rabbiera General 9 03-02-2009 02:35 PM
Advise needed on DHCP server Zmyrgel Slackware 4 09-07-2007 11:33 AM
[advise needed] acer laptop which linux is the best SHRIKEE Linux - Laptop and Netbook 6 12-18-2006 08:22 AM
Kernel upgrade error advise needed andy18 Linux - Newbie 14 08-27-2004 12:44 PM
Internet cafe set-up advise needed synfield Linux - Networking 3 03-25-2003 10:28 PM

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

All times are GMT -5. The time now is 08:31 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