Date: Sat, 24 Mar 2001 18:11:14 -0500 From: Bill Moran <wmoran@iowna.com> To: joup@bigfoot.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: moving from DHCP to static IP Message-ID: <3ABD2992.CFD0E7C@iowna.com> References: <Pine.BSF.4.33.0103241429330.54123-100000@soda.csua.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex> 100baseTX > 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback> > sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 > faith0: flags=8000<MULTICAST> mtu 1500 > gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 > gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 > gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 > gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > ppp0: flags=8010<POINTOPOINT,MULTICAST> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ABD2992.CFD0E7C>