Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/ifconfig/ifconfig.8
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
.Op Ar parameters | .Op Ar parameters | ||||
.Nm | .Nm | ||||
.Ar interface | .Ar interface | ||||
.Cm destroy | .Cm destroy | ||||
.Nm | .Nm | ||||
.Fl a | .Fl a | ||||
.Op Fl L | .Op Fl L | ||||
.Op Fl d | .Op Fl d | ||||
.Op Fl [gG] Ar groupname | |||||
.Op Fl m | .Op Fl m | ||||
.Op Fl u | .Op Fl u | ||||
.Op Fl v | .Op Fl v | ||||
.Op Ar address_family | .Op Ar address_family | ||||
.Nm | .Nm | ||||
.Fl l | .Fl l | ||||
.Op Fl d | .Op Fl d | ||||
.Op Fl u | .Op Fl u | ||||
▲ Show 20 Lines • Show All 2,838 Lines • ▼ Show 20 Lines | |||||
Optionally, the | Optionally, the | ||||
.Fl a | .Fl a | ||||
flag may be used instead of an interface name. | flag may be used instead of an interface name. | ||||
This flag instructs | This flag instructs | ||||
.Nm | .Nm | ||||
to display information about all interfaces in the system. | to display information about all interfaces in the system. | ||||
The | The | ||||
.Fl d | .Fl d | ||||
flag limits this to interfaces that are down, and | flag limits this to interfaces that are down, | ||||
.Fl u | .Fl u | ||||
limits this to interfaces that are up. | limits this to interfaces that are up, | ||||
limits this to interfaces that are up, | |||||
.Fl g | |||||
limits this to members of the specified group of interfaces, and | |||||
.Fl G | |||||
excludes members of the specified group from the list. | |||||
Both | |||||
.Fl g | |||||
and | |||||
.Fl G | |||||
flags may be specified to apply both conditions. | |||||
Only one option | |||||
.Fl g | |||||
should be specified as later override previous ones | |||||
(same for | |||||
.Fl G ) . | |||||
.Sy groupname | |||||
may contain shell patterns in which case it should be quoted. | |||||
When no arguments are given, | When no arguments are given, | ||||
.Fl a | .Fl a | ||||
is implied. | is implied. | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fl l | .Fl l | ||||
flag may be used to list all available interfaces on the system, with | flag may be used to list all available interfaces on the system, with | ||||
no other additional information. | no other additional information. | ||||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | |||||
.Dl # ifconfig gif1 destroy | .Dl # ifconfig gif1 destroy | ||||
.Pp | .Pp | ||||
Display available wireless networks using | Display available wireless networks using | ||||
.Li wlan0 : | .Li wlan0 : | ||||
.Dl # ifconfig wlan0 list scan | .Dl # ifconfig wlan0 list scan | ||||
.Pp | .Pp | ||||
Display inet and inet6 address subnet masks in CIDR notation | Display inet and inet6 address subnet masks in CIDR notation | ||||
.Dl # ifconfig -f inet:cidr,inet6:cidr | .Dl # ifconfig -f inet:cidr,inet6:cidr | ||||
.Pp | |||||
Display interfaces that are up with the exception of loopback | |||||
.Dl # ifconfig -a -u -G lo | |||||
.Sh DIAGNOSTICS | .Sh DIAGNOSTICS | ||||
Messages indicating the specified interface does not exist, the | Messages indicating the specified interface does not exist, the | ||||
requested address is unknown, or the user is not privileged and | requested address is unknown, or the user is not privileged and | ||||
tried to alter an interface's configuration. | tried to alter an interface's configuration. | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr netstat 1 , | .Xr netstat 1 , | ||||
.Xr carp 4 , | .Xr carp 4 , | ||||
.Xr gif 4 , | .Xr gif 4 , | ||||
Show All 31 Lines |