summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifconfig.8
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-11-11 21:30:58 +0000
committerdelphij <delphij@FreeBSD.org>2009-11-11 21:30:58 +0000
commit13a19ef806aacb68fca8a06969fe760e790cf191 (patch)
treeeea1594231338258764b9d2c6a5b8c04a07d0269 /sbin/ifconfig/ifconfig.8
parent7f8b0bd4a81476d4906f4ec7983d3328593bebde (diff)
downloadFreeBSD-src-13a19ef806aacb68fca8a06969fe760e790cf191.zip
FreeBSD-src-13a19ef806aacb68fca8a06969fe760e790cf191.tar.gz
Add interface description capability as inspired by OpenBSD.
MFC after: 3 months
Diffstat (limited to 'sbin/ifconfig/ifconfig.8')
-rw-r--r--sbin/ifconfig/ifconfig.812
1 files changed, 11 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index 220bd9f..211b1ef 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -28,7 +28,7 @@
.\" From: @(#)ifconfig.8 8.3 (Berkeley) 1/5/94
.\" $FreeBSD$
.\"
-.Dd September 23, 2009
+.Dd November 11, 2009
.Dt IFCONFIG 8
.Os
.Sh NAME
@@ -258,6 +258,12 @@ Disable permanently promiscuous mode.
Another name for the
.Fl alias
parameter.
+.It Cm description Ar value
+Specify a description of the interface.
+This can be used to label interfaces in situations where they may
+otherwise be difficult to distinguish.
+.It Cm -description
+Clear the interface description.
.It Cm down
Mark an interface
.Dq down .
@@ -2512,6 +2518,10 @@ Configure the interface
to use 100baseTX, full duplex Ethernet media options:
.Dl # ifconfig xl0 media 100baseTX mediaopt full-duplex
.Pp
+Label the em0 interface as an uplink:
+.Pp
+.Dl # ifconfig em0 description \&"Uplink to Gigabit Switch 2\&"
+.Pp
Create the software network interface
.Li gif1 :
.Dl # ifconfig gif1 create
OpenPOWER on IntegriCloud