o To query the status of an interface we0, enter:
$ ifconfig we0
o To configure the local loopback interface, enter:
$ ifconfig lo0 inet 127.0.0.1 up
Only a privileged user can modify the configuration of a
network interface.
o To configure a ie0 interface, enter:
$ ifconfig ie0 212.232.32.1/22
The broadcast address is 212.232.35.255 as the 22-bit mask
specifies four Class C networks.
o To configure an address that is not protected by failSAFE IP,
enter:
$ ifconfig -fs ie0 210.208.19.3/16
o To configure an alias address with a home interface, so that
failSAFE IP will attempt to return the address to its home
after the home recovers from a failure, enter:
$ ifconfig we0 home alias 156.47.92.8/24
o To configure IPv6 on a ie0 interface, enter:
$ ifconfig ie0 ipv6 up
o To configure an IPv6 link-local alias address on interface
ie0, enter:
$ ifconfig ie0 inet6 alias fe80::202:a5ff:fe60:abcd
o To add alias 132.50.40.35 with a netmask of 255.255.255.0 in
CIDR format to interface we0, enter:
$ ifconfig we0 alias 132.50.40.35/24
o To add network addresses 40 through 50, inclusive, to subnets
18.240.32, 18.240.33, 18.240.34, 18.240.35, and 18.240.36
with a netmask of 255.255.255.0 in CIDR format to the we0
interface, enter:
$ ifconfig we0 aliaslist 132.240.32-36.40-50/24
o To add network addresses 40 through 50, inclusive, to
subnets 18.240.32, 18.240.64, and 18.240.96 with a netmask
of 255.255.255.0 in CIDR format to the we0 interface, enter:
$ ifconfig we0 aliaslist 132.240.32,64,96.40-50/24
To stop Ethernet interface we0, delete all addresses
associated with the interface, and close all TCP connections,
enter:
$ ifconfig we0 down delete abort
145.92.16.1: aborting 7 tcp connection(s)
o To delete the alias address 145.92.16.2 on interface we0 and
close all TCP connections, enter:
$ ifconfig we0 -alias 145.92.16.2 abort
145.92.16.2: aborting 2 tcp connection(s)
o To create an IPv6 address for prefix AB:CD:CE:AB, enter:
$ ifconfig we0 inet6 ip6prefix AB:CD:CE:AB::/64
o To force an interface into a failed state, enter:
$ ifconfig ie0 fail
Note that this causes all routes that use IE0 to be deleted.
o To force an interface to recover from a failed state, enter:
$ ifconfig ie0 -fail
Note that only interface routes are recovered. Other static
routes must be restored manually.
o To display the names of the interfaces on the system only,
enter:
$ ifconfig -l
IE0 IE1 IE2 IE3 LO0 TN0 TN1 WE0
o To display the hardware and IP address of interface we0,
enter:
$ ifconfig -v we0
we0: options=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
HWaddr 8:0:2b:9e:14:a2
inet 192.140.34.16 netmask ffffff00 broadcast 192.140.34.255 ipmtu 1500