ifconfig
ifconfig lo0 localhost up ifconfiginterface
ip-address
netmaskmask
The first form configures the loopback interface. The second form assigns the specified IPv4 address and subnet mask to interface. FreeBSD and Solaris allow you to replace the address and netmask parameters (including the keywords) with a CIDR address.