From owner-freebsd-questions Sat Mar 24 14:42:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B8C037B755 for ; Sat, 24 Mar 2001 14:42:48 -0800 (PST) (envelope-from joup@bigfoot.com) Received: from localhost (mjm@localhost) by soda.csua.berkeley.edu (8.11.1/8.11.1) with ESMTP id f2OMgmq55434 for ; Sat, 24 Mar 2001 14:42:48 -0800 (PST) (envelope-from joup@bigfoot.com) X-Authentication-Warning: soda.csua.berkeley.edu: mjm owned process doing -bs Date: Sat, 24 Mar 2001 14:42:48 -0800 (PST) From: X-X-Sender: To: Subject: moving from DHCP to static IP Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, My FreeBSD box is behind a nat box which acts as a DHCP server. DHCP has been working great so far, but I'd like to allow ssh connections through the firewall to my machine, so I need to move to a static IP address. The thing is, I can't really find any help on doing this in the handbook or anywhere else. 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. Here's some info %] 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? Also, why do I have so many interfaces listed? Should I disable any? Are there any security risks? Thanks much Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message