Re: Mildly OT> IP Masquerading on my server


Subject: Re: Mildly OT> IP Masquerading on my server
From: Richard Massa (int19@hydra.acs.uci.edu)
Date: Mon Nov 27 2000 - 12:07:17 MST


I think ip aliasing is included in YD by default, so if you'd like to give
your G4 a private address as well as a public you can simply do this:

ifconfig eth0:0 192.168.x.y netmask 255.255.255.0 broadcast 192.168.x.255

(where eth0 is your interface)

this is probably the easiest and most efficient way to have your machine
be on both networks.

If you get an error when trying to ifconfig eth0:0, then you need to
compile ip aliasing into your kernel.

richard.

On Mon, 27 Nov 2000, Andrew Dacey wrote:

>
>
> Gawain Reifsnyder wrote:
> >
> > I'm trying to figure out the most efficient ways to setup our
> > network, which now includes the G4 Mac running Yellow Dog Linux. This
> > is a little complicated so I'll try and be clear...
> >
> > We have a small network of about 8 machines, connected to the
> > internet via a cable modem. Most of the "normal" Macs are on a
> > 192.168.0.x internal network that accesses the internet through a
> > gateway Mac running IPNetRouter. The gateway machine also has an
> > externally visible IP address on the 207.152.10.x network. So does
> > the new G4 server. However, the G4 server doesn't have a 192.168.0.x
> > address, so accessing it through ftp is much slower and more
> > cumbersome than over the LAN, even though it's on the same physical
> > network.
> >
> > Do I need to configure IP masquerading on the G4 too? What's the best
> > way to efficiently connect to this machine? So far, I haven't been
> > able to get Netatalk to work, and have been using ftp and telnet when
> > not working directly on the server.
>
> If I understand things correctly, all the machines are hooked up into
> the same hub or switch? It sounds to me like you're using a switched
> network with VLANs on a single switch. The gateway cable modem and G4
> are on one VLAN and the other VLAN has the internal network. The gateway
> machine would have it's port on the switch configured to be on both VLANs.
>
> If memory serves, you can configure an interface to have more than one
> IP address in Linux. I can't remember how you do it though. What you
> would do would be to add a 192.168.0.x address to the G4 server's. If
> you are using a switched situation as I outlined above, then you'd also
> need to configure the switch so that the G4's port is part of both VLANs.
>
> I'm not sure how you'd do the setup with a single hub. As far as I know,
> you can't have multiple network segments on a single hub. If you are
> using multiple hubs, then all traffic would have to go through the
> gateway (which would have multiple network cards). You could then
> install a 2nd network card in the G4 and have it connected to both networks.
>
> --
> Andrew "Frugal" Dacey,
> frugal@tildefrugal.net
> http://www.tildefrugal.net/
>



This archive was generated by hypermail 2a24 : Mon Nov 27 2000 - 12:08:23 MST