From owner-freebsd-questions Sun Dec 22 8:53: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86EA137B401 for ; Sun, 22 Dec 2002 08:53:02 -0800 (PST) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63C6D43ED8 for ; Sun, 22 Dec 2002 08:53:01 -0800 (PST) (envelope-from scott.mitchell@mail.com) Received: from fishballoon.dyndns.org ([80.4.125.54]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021222165257.PZVN20174.mta06-svc.ntlworld.com@fishballoon.dyndns.org>; Sun, 22 Dec 2002 16:52:57 +0000 Received: from tuatara.goatsucker.org (tuatara [192.168.1.6]) by fishballoon.dyndns.org (8.12.3/8.12.3) with ESMTP id gBMGs5bO066845; Sun, 22 Dec 2002 16:54:05 GMT (envelope-from scott@tuatara.goatsucker.org) Received: (from scott@localhost) by tuatara.goatsucker.org (8.12.6/8.12.6/Submit) id gBMGsPbg052221; Sun, 22 Dec 2002 16:54:25 GMT (envelope-from scott) Date: Sun, 22 Dec 2002 16:54:25 +0000 From: Scott Mitchell To: Grant Peel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Changing Colocation site. help: ifconfig Message-ID: <20021222165425.F347@fishballoon.dyndns.org> References: <009201c2a9c3$23678960$6401a8c0@grant> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <009201c2a9c3$23678960$6401a8c0@grant>; from grant@thenetnow.com on Sun, Dec 22, 2002 at 09:05:08AM -0500 X-Operating-System: FreeBSD 4.7-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Dec 22, 2002 at 09:05:08AM -0500, Grant Peel wrote: > > Here is the current setup: > > fxp0: flags=8843 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 ) > status: active > fxp1: flags=8843 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 ) > status: active > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > ppp0: flags=8010 mtu 1500 > sl0: flags=c010 mtu 552 > faith0: flags=8000 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