How to change IP address or setup new ip address to existing NIC in FreeBSD
1) Use ifconfig command as follows:
ifconfig interface inet IP
Example(s):
ifconfig fxp0 inet 192.168.1.5
Note fxp0 is Ethernet interface name can be Obtained using ifconfig -a command.
2) To setup up ip permanently open file /etc/rc.conf ; add/modify network entries:
vi /etc/rc.conf
And setup values as follows:
hostname=”box1.freebsd.org.in”
ifconfig_fxp0=”inet 192.168.1.6 netmask 255.255.255.0″
Note ifconfig_fxp0 is Ethernet interface name can be Obtained using ifconfig -a command.
3) Again re-run /etc/netstart script.

























