Name

ifconfig

Synopsis

ifconfig lo0 localhost up
ifconfig interface ip-address netmask mask

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.