aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorVlad Dogaru <ddvlad@rosedu.org>2011-02-02 20:23:41 +0200
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-02-25 12:43:14 -0800
commitdb02608b6f408998ea8c823fb791cead3e574f50 (patch)
tree93a18b178097d4c645b5a393b42d4fed582e0f61 /man
parent26ad3aecfeeb93cd396a199a5e664e749bcabc8d (diff)
downloadandroid_external_iproute2-db02608b6f408998ea8c823fb791cead3e574f50.tar.gz
android_external_iproute2-db02608b6f408998ea8c823fb791cead3e574f50.tar.bz2
android_external_iproute2-db02608b6f408998ea8c823fb791cead3e574f50.zip
iproute2: support device group semantics
Add the group keyword to ip link set, which has the following meaning: If both a group and a device name are pressent, we change the device's group to the specified one. If only a group is present, then the operation specified by the rest of the command should apply on an entire group, not a single device. So, to set eth0 to the default group, one would use ip link set dev eth0 group default Conversely, to set all the devices in the default group down, use ip link set group default down Signed-off-by: Vlad Dogaru <ddvlad@rosedu.org>
Diffstat (limited to 'man')
-rw-r--r--man/man8/ip.819
1 files changed, 17 insertions, 2 deletions
diff --git a/man/man8/ip.8 b/man/man8/ip.8
index 730788a..8f82842 100644
--- a/man/man8/ip.8
+++ b/man/man8/ip.8
@@ -55,8 +55,10 @@ ip \- show / manipulate routing, devices, policy routing and tunnels
.RI "[ " ARGS " ]"
.ti -8
-.BI "ip link set " DEVICE
-.RB "{ " up " | " down " | " arp " { " on " | " off " } |"
+.BR "ip link set " {
+.IR DEVICE " | "
+.BI "group " GROUP
+.RB "} { " up " | " down " | " arp " { " on " | " off " } |"
.br
.BR promisc " { " on " | " off " } |"
.br
@@ -930,6 +932,13 @@ specifies network device to operate on. When configuring SR-IOV Virtual Fuction
device.
.TP
+.BI group " GROUP "
+.I GROUP
+has a dual role: If both group and dev are present, then move the device to the
+specified group. If only a group is specified, then the command operates on
+all devices in that group.
+
+.TP
.BR up " and " down
change the state of the device to
.B UP
@@ -996,6 +1005,12 @@ move the device to the network namespace associated with the process
give the device a symbolic name for easy reference.
.TP
+.BI group " GROUP"
+specify the group the device belongs to.
+The available groups are listed in file
+.BR "/etc/iproute2/group" .
+
+.TP
.BI vf " NUM"
specify a Virtual Function device to be configured. The associated PF device
must be specified using the