Network configuration

Eric Crist ecrist at secure-computing.net
Thu Jul 8 12:33:15 PDT 2004


> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of
> Lowell Gilbert
> Sent: Thursday, July 08, 2004 2:17 PM
> To: root at mediamonks.net
> Cc: freebsd-questions at freebsd.org
> Subject: Re: Network configuration
>
>
> "Terrence Koeman" <root at mediamonks.net> writes:
>
> > Hi,
> >
> > I have been busy setting up a network the last 3 days, but I cannot
> > get it working.
> >
> > Basically I have no clue what has to be setup etc. and if I need
> > bridging or not.
> >
> > The situation is as follows:
> >
> >                     --------------
> >                     | SDSL Modem |
> >                     |  Bridged   |
> >                     --------------
> >                        |
> >                 --------------------------
> >                 |    xl0: 217.1.1.155    |
> >                 |                        |
> >                 |    Freebsd Box         |
> >                 |                        |
> >                 |           xl1          |
> >                 --------------------------
> >                              |
> >                          ----------
> >          |---------------| SWITCH |---------------|
> >          |               ----------               |
> >          |                    |                   |
> > ------------------- ------------------- -------------------
> > | C1: 217.1.1.156 | | C2: 217.1.1.157 | | C3: 217.1.1.158 |
> > ------------------- ------------------- -------------------

One thing I noticed is that there isn't an IP address assigned to xl1.
This needs to be done, afaik.  If you're out of IP addresses, NAT is
going to be your thing, on a third interface perhaps.  Here's what I'm
getting at:

As an example, set the IP address of xl1 to 217.1.1.154.  Then, set up
the routing table on the freebsd box so that all outgoing packets get
passed to xl0, and any packet destined for 156, 157, or 158 get passed
back to xl1.  Set the default gateway on your machines to .154.  This
should have you up and running.

If this doesn't make sense to you, send me an email and I'll try to
explain further.

HTH

Eric Crist




More information about the freebsd-questions mailing list