From owner-freebsd-questions Sat Mar 24 15:10:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id 259F837B71B for ; Sat, 24 Mar 2001 15:10:31 -0800 (PST) (envelope-from wmoran@iowna.com) Received: from iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f2ON7kH13159; Sat, 24 Mar 2001 18:07:47 -0500 (EST) Message-ID: <3ABD2992.CFD0E7C@iowna.com> Date: Sat, 24 Mar 2001 18:11:14 -0500 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: joup@bigfoot.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: moving from DHCP to static IP References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG joup@bigfoot.com wrote: > I've figured out (by reading rc.network) that I need to replace > ifconfig_xl0="DHCP" > with > ifconfig_xl0="{ifconfig args}" > > in rc.conf, but as for what those args I'm not sure where to start. The > man page for ifconfig wasn't all that helpful. Use /stand/sysinstall to reconfigure the interface. It will set that line up for you properly. Barring that, the format is: ifconfig_xl0="inet x.x.x.x netmask y.y.y.y" I believe there are other options you could specify, but that's enough to get it working. > %] ifconfig -a > xl0: flags=8843 mtu 1500 > inet6 fe80::250:4ff:fed9:a981%xl0 prefixlen 64 scopeid 0x1 > inet 192.168.1.100 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:50:04:d9:a9:81 > media: autoselect (10baseT/UTP) status: active > supported media: autoselect 100baseTX 100baseTX > 10baseT/UTP 10baseT/UTP 100baseTX > sl0: flags=c010 mtu 552 > faith0: flags=8000 mtu 1500 > gif0: flags=8010 mtu 1280 > gif1: flags=8010 mtu 1280 > gif2: flags=8010 mtu 1280 > gif3: flags=8010 mtu 1280 > lo0: flags=8049 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > ppp0: flags=8010 mtu 1500 > > Now, for the panicky, overwhelmed-sounding questions: > How much of the info for xl0 needs to be specified in rc.conf? How do I > translate a 192.168.1.* address to IPv6? Do I need to? You only need to if you want to use IPv6. If you're using IPv4 still, there's no need. > Also, why do I have so many interfaces listed? Should I disable any? Are > there any security risks? sl0 is your slip interface ... are you using the serial ports for networking? If not, you can disable. faith and gif are IPv4 to IPv6 (or vis-versa) translation devices. If you're only using IPv4 you don't need them. lo0 is the loopback and is pretty much required. ppp is you dialup interface (Point to Point Protocol) If you're not using a modem, you don't need it. I recommend reading through the /usr/src/sys/i386/conf/GENERIC file for some information on interfaces, as well as man gif, man faith, man sl, and man ppp. I don't know of any specific security issues. Having anything turned on that you don't understand is always a security issue. Removing these devices and recompiling your kernel will make the kernel smaller, which is a performance issue. Read the handbook: http://www.freebsd.org/handbook/kernelconfig.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message