Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2001 14:42:48 -0800 (PST)
From:      <joup@bigfoot.com>
To:        <freebsd-questions@freebsd.org>
Subject:   moving from DHCP to static IP
Message-ID:  <Pine.BSF.4.33.0103241429330.54123-100000@soda.csua.berkeley.edu>

next in thread | raw e-mail | index | archive | help
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<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?

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0103241429330.54123-100000>