Re: Routing public IP's through a gateway

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alex Samad wrote:
On Sun, Oct 14, 2007 at 11:07:10PM +1000, Tim Groeneveld wrote:
Greeting all,

I have a bit of a complicated question.

I have two ethernet devices, eth1 and eth2.

eth1 is where my internet comes from. It is in the form of 202.172.122.208/29. It has another IP range, 202.172.122.72/29. What I want to be able to do is route 202.172.122.72/29 to eth2, so that other machines can use those IPs, any ideas on how to do this, I cannot work out how to do this.
You haven't made it too clear what exactly you are trying to do, from what i gather this should work on your linux box
*cannot agree more*. Topology and better expression of scenario requiring this helps always. This may be a convoluted solution to a simple problem. I must add we are operating in relative vaccum here.


ip route add 202.172.122.72/29 dev eth2

Does your isp route 202.172.122.72/29 to you ?

eth2 has a DHCP server, which only gives out IPs 202.172.122.74 to 202.172.122.76.
seems to be outside subnet cited. *.72/29 is .72-.75* Only 2 addresses can be served on DHCP from a subnet of 4.

eth1 is basically just hooked into my internet router, while eth2 is hooked into a switch, and will be used for other computers.

If anyone could help me with this setup, I would more then appreciate it.

Thank you very much,

     - Tim Groeneveld

You seem to want to use public IP addresses against mapping public to private addresses. If so, why not just connect the router to the switch and connect all computers to the switch? Will also be better to get a combined /28 subnet. No private addresses? No need for firewall?

I would use the Linux machine to map the public addresses to private addresses for specific services to a DMZ.

Mohan
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux