Re: Linux router howto - not just NAT
From: Terence Parker (terence_at_parker.com.hk)
Date: 12/24/03
- Next message: James Kimble: "Wireless problems with Lucent Tech card"
- Previous message: Sekhar Hari: "Please Help"
- In reply to: Antoine EMERIT: "Re: Linux router howto - not just NAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Dec 2003 20:07:45 -0800
Thanks again for all the replies.
I have now managed to solve my problem, albeit with a completelty
different approach. Actually it's probably my fault - I assumed this
would be an 'iptables' issue and asked the wrong question right from
the beginning. I didn't realise myself that I was doing the equivalent
of looking for vegetables in a computer mall.
The answer to my woes : bridging.
Basically, I have two incoming Internet connections from two different
ISP's - one providing me a block of 3 IP addresses, the other a block
of 12. The incoming wires can be connected directly to a
computer/server (as it is now), with the real IP's assigned (actually,
two servers: one for each line). Workstations connect through NAT
through either of these servers. The problem is that there is no way
for me to assign real IP's to anything else since there is only one
incoming line.
Presumably, I could have connected both incoming lines into a switch -
and then designated that switch a 'real ip' switch. Then anything
plugged into that switch can use a real IP. That would have been much
easier - should I just have done that? Would there be any
disadvantages to having done that?
Instead, I have a computer with three NIC's and have plugged in both
of those incoming ISP connections, as well as another connection to
the above said switch. Using bridging tools, I have bridged the three
connections together and output it back out to the switch. Considering
that bridges are entirely transparent - presumably this is exactly the
same as I could have achieved above? Except now i'm un-necessarily
wasting more electricity!!
But anyways, at least now everyone should be clear on what it was that
I was going on about.
Thanks again,
Terence
> Cool, but what is your physical line type ? An ethernet connexion ? a
> lesaed line (G707, ...) ? ... Do you have an ADSL modem ? ...
>
> Depending on this, you should have a card on your computer with the
> corresponding physical interface.
>
> Next you ISP should "route" theses IPs to your Linux router, and so you
> should have your router ip address, that you will set to your linux box.
>
> Then you can fill your linux routing table with the other ips :
>
> - use the "route add ..." command to add route entries
> - set the ip of the "internal" servers with the ips.
--snip--
- Next message: James Kimble: "Wireless problems with Lucent Tech card"
- Previous message: Sekhar Hari: "Please Help"
- In reply to: Antoine EMERIT: "Re: Linux router howto - not just NAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|