alternately you can run sysinstall as root and change it to static there
Main Topics
Browse All TopicsI already have a static IP address. I used DHCP when I first set up the FreeBSD. How do I change that now to static?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
see also http://www.freebsd.org/doc
if you want to set it statically and persistently (ie, just running ifconfig will lose the IP on reboot and switch back to dhcp) then you have to edit /etc/rc.boot and add lines for your network cards as in the handbook:
ifconfig_dc0="inet 192.168.1.3 netmask 255.255.255.0"
ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP"
(replace dc0 or dc1 with whatever your NIC's name is and set the right address after the 'inet' part)
Hi dpiniella,
Thanks for your help. I edited rc.conf as below and rebooted the server after plugging the cable into a static port. After rebooting I could not ping the IP from another machine. What should I try next given the info below?
# -- sysinstall generated deltas -- # Mon Nov 21 03:16:40 2005
# Created: Mon Nov 21 03:16:40 2005
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="ope-dev.domain.c
#ifconfig_fxp0="DHCP"
ifconfig_fxp0="inet 175.17.110.51 netmask 255.255.255.0"
defaultrouter="10.0.0.254"
linux_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
# -- sysinstall generated deltas -- # Mon Nov 28 13:19:47 2005
sendmail_enable="YES"
This is what I got from an ifconfig from the server's console after reboot
fxp0: flags=8843<UP,BROADCAST,RU
options=8<VLAN_MTU>
inet6 fe80::202:a5ff:fec2:b5d3%f
inet 175.17.110.51 netmask 0xffffff00 broadcast 175.17.110.255
ether 00:02:a5:c2:b5:d3
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTOPOINT,S
lo0: flags=8049<UP,LOOPBACK,RUN
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
Business Accounts
Answer for Membership
by: dpiniellaPosted on 2005-11-28 at 17:52:22ID: 15377073
ifconfig [nic] ip.ad.dre.ss netmask 255.255.255.0 broadcast blah.blah.blah.255 UP