All of lore.kernel.org
 help / color / mirror / Atom feed
* ip address routing setup
@ 2002-06-04 23:32 Jack Baker
  2002-06-04 23:37 ` Antony Stone
  0 siblings, 1 reply; 3+ messages in thread
From: Jack Baker @ 2002-06-04 23:32 UTC (permalink / raw)
  To: netfilter

Hi there, I currently have a set of global ip addresses from my isp (/29
block) lets say 192.168.0.5/29 for example.

My gateway set currently on my set of ip addresses is 192.168.0.5

I recently got another block (/29) ip addresses say on 192.168.1.64/29.

One of my original ip addresses the isp has set for routing the new
block. Lets say 192.168.0.7. Network ip would be 192.168.1.64, and
broadcast ip at 192.168.1.71.

Now since they have different subnets, anyone know how I get one to
route to another. Do I need a get a hardware router or is there a way to
do it on redhat 7.2/7.3? 

I'm not sure what they've done up to get this to work.

Thanks,
Jack.
jbaker@neustyle.com




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ip address routing setup
  2002-06-04 23:32 ip address routing setup Jack Baker
@ 2002-06-04 23:37 ` Antony Stone
  0 siblings, 0 replies; 3+ messages in thread
From: Antony Stone @ 2002-06-04 23:37 UTC (permalink / raw)
  To: netfilter

On Wednesday 05 June 2002 12:32 am, Jack Baker wrote:

> Hi there, I currently have a set of global ip addresses from my isp (/29
> block) lets say 192.168.0.5/29 for example.
>
> My gateway set currently on my set of ip addresses is 192.168.0.5
>
> I recently got another block (/29) ip addresses say on 192.168.1.64/29.
>
> One of my original ip addresses the isp has set for routing the new
> block. Lets say 192.168.0.7. Network ip would be 192.168.1.64, and
> broadcast ip at 192.168.1.71.

I don't quite understand what you mean by this - can you explain in more 
detail please ?

> Now since they have different subnets, anyone know how I get one to
> route to another. Do I need a get a hardware router or is there a way to
> do it on redhat 7.2/7.3?

If you have a Linux box with two network cards, then you already have a 
hardware router :-)


Antony.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ip address routing setup
       [not found] <002401c20c22$2a06b820$1e00a8c0@neox>
@ 2002-06-04 23:58 ` Antony Stone
  0 siblings, 0 replies; 3+ messages in thread
From: Antony Stone @ 2002-06-04 23:58 UTC (permalink / raw)
  To: netfilter

On Wednesday 05 June 2002 12:47 am, Jack Baker wrote:

> Hi there..
>
> I just got a new set of ip addresses that are global. The isp has
> provided us with an initial set of ip addresses of these we had to
> select one to route the new set of ip addresses. Each set are from
> different subnets (thus the routing is required) From what I can tell,
> we act as the router for the new set of ip addresses, using the selected
> ip addresses which connects to their router. I'm just not sure what to
> do on the linux box to get the ip's routing from one router to
> another...
>
> I hope I'm making more sense.

Okay, I think what you're saying is you have had a bunch of IP addresses for 
some time, and your ISP has now given you a new (completely unrelated) set of 
addresses, and they're routing those to you through one of your existing 
addresses.

In which case, all you need to do is put a router (Linux box will do just 
fine :-) on that single old address, and tell it what to do with the new 
bunch of addresses.

For example (going back to your original set of fake addresses...)

You need to set up a machine listening on 192.168.0.7 which has a routing 
table which includes 192.168.1.64/29 (presumably you want these addresses to 
be on internal servers or something - why did you ask for them ?), and then 
you set up those machines with the new range of addresses on the internal 
side of that router machine (hopefully with some nice iptables rules to keep 
control of what gets routed....)

You say you already have a gateway machine on 192.168.0.5 - the simplest 
solution might be to put another network card in that machine, to connect the 
new publicly-addressed systems to, and then add the address 192.168.0.7 to 
the current external interface of the gateway so it responds to arps 
correctly.   Either:

ifconfig eth0:1 192.168.0.7 netmask 255.255.255.248 broadcast 192.168.0.8

or if you have the new iproute2 suite:

ip addr add 192.168.0.7/29 dev eth0

Does this answer your question ?

Antony.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-04 23:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-04 23:32 ip address routing setup Jack Baker
2002-06-04 23:37 ` Antony Stone
     [not found] <002401c20c22$2a06b820$1e00a8c0@neox>
2002-06-04 23:58 ` Antony Stone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.