Amish_Geek
01-29-2004, 03:03 AM
What is the step by step on how to configure a static IP in FreeBSD 4.9? From the docs on freebsd.org, its something to do with the /etc/rc.conf file, but I'm not understanding this... :mad:
![]() | View Full Version : Static IP in Freebsd 4.9 Amish_Geek 01-29-2004, 03:03 AM What is the step by step on how to configure a static IP in FreeBSD 4.9? From the docs on freebsd.org, its something to do with the /etc/rc.conf file, but I'm not understanding this... :mad: Cirrostratus 01-29-2004, 03:29 AM command line ifconfig <devicename> IPADDRESS NETMASK IE ifconfig fxp0 216.216.126.12 netmask 255.255.255.255 That will set it only until the system is rebooted. To make it perm you need to edit your /etc/rc.conf with a entry like this ## Start defaultrouter="216.216.126.1" ifconfig_fxp0="inet 216.216.126.12 netmask 255.255.255.255" Once you have edited that file with either 'ee' or 'vi' and saved it you can then either reboot for the settings to take effect or if your at the local console you can try sh /etc/netstart to refresh the settings. The best thing to do is set it manually with ifconfig and then edit your rc.conf and leave it be until you reboot for the next kernel/world update. delo thovo 01-30-2004, 12:54 PM Go and Configure/Interface. After you save the settings the info will be written to /etc/rc.conf do sh /etc/netstart to refresh the network or reboot. Tho |