FreeBSD IP address change
In FreeBSD ip address is written in /etc/rc.conf.
If you changed it and want to restart network interfaces with latest changes, just run
/etc/rc.d/netif restart
But this wouldn’t affect routing. So if you changed default gateway too, you need to run
/etc/rc.d/routing stop /etc/rc.d/routing start
To view routing table run
netstat -rn
And, finally, to add gateway by hand exec
route add default 192.168.1.254
Many thanks to VIVEK GITE for his post on nixCraft.