Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Dec 2002 16:54:25 +0000
From:      Scott Mitchell <scott.mitchell@mail.com>
To:        Grant Peel <grant@thenetnow.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Changing Colocation site. help: ifconfig
Message-ID:  <20021222165425.F347@fishballoon.dyndns.org>
In-Reply-To: <009201c2a9c3$23678960$6401a8c0@grant>; from grant@thenetnow.com on Sun, Dec 22, 2002 at 09:05:08AM -0500
References:  <009201c2a9c3$23678960$6401a8c0@grant>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 22, 2002 at 09:05:08AM -0500, Grant Peel wrote:
> 
> Here is the current setup:
> 
> fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 205.150.82.194 netmask 0xfffffff0 broadcast 205.150.82.207
>         ether 00:b0:d0:f9:ca:e2
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
> fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.0.2 netmask 0xfffffc00 broadcast 192.168.3.255
>         ether 00:02:b3:89:62:52
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet 127.0.0.1 netmask 0xff000000
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
> faith0: flags=8000<MULTICAST> mtu 1500
> 
> What I need to do is:
> 
> 1) Wipe the configurations for fxp0 and fxp1 completely.

You want the ifconfig_fxp0=... and ifconfig_fxp1=... lines in your
/etc/rc.conf file.  Currently you probably have something like:

	ifconfig_fxp0="inet 205.150.82.194 netmask 0xfffffff0 broadcast 205.150.82.207"

maybe with some additional options.  All you should need to do is change
those lines to match the new values.  Do this before you power everything
down in the old colo, then the machines should come up correctly configured
in the new location.

> 2) Add the new settings.
>     Here are the details from the new provider:
>         Network: 65.39.193.144
>             Gateway: 65.39.193.145
>             Subnet Mask: 255.255.255.240
>             Useable IP Range: 65.39.193.152 - 154
> 
>     fxp0 will be plugged into a switch which in turn will be plugged into
> the providers switch.
>     I am somewhat confised about the terms. I know the subnet and one of the
> available IPs need to be set, But I am wondering of the gateway is going to
> be my switch address? and what     I am supposed to do with the 'network'
> IP?

The gateway address goes in your defaultrouter=... line in /etc/rc.conf.
This refers to the host on the 65.39.193.144 network that knows how to
route to other networks.  Your switch may or may not have its own IP
address, but that's not relevant here.

You shouldn't need to use the network number anywhere
explicitly... ifconfig should be able to work it (and the broadcast
address) out from the netmask and host address you give it, i.e:

	65.39.193.152 AND 255.255.255.240 = 65.39.193.144

So on your first machine, you probably want:

	ifconfig_fxp0="inet 65.39.193.152 netmask 0xfffffff0"
	ifconfig_fxp1="inet 192.168.0.2 netmask 0xfffffc00"
	defaultrouter="65.39.139.145"

and so on for the other two.

> 3) CUrrently, I have two boxes that are connected to each other. (fxp1). I
> want to add a third box, and have the three of them LANd using 192.168.0.1,
> 2, 3. My question is, can I pluc the three of them into the same local
> switch as the internet connections (fxp0).

The switch probably won't care, but you might have ARP problems with that
kind of setup.  I really not sure though... maybe someone else can
clarify what the problems might be?

Hope that helps,

	Scott

-- 
===========================================================================
Scott Mitchell          | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England      | 0x54B171B9 |  don't get sucked into jet engines"
scott.mitchell@mail.com | 0xAA775B8B |      -- Anon

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021222165425.F347>