naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0207-ip-link.8-Add-slave-type-option-descriptions.patch

049c96
From 9535f2ada08243db6212d5a19664afafb640b151 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Wed, 20 Jul 2016 22:56:23 +0200
049c96
Subject: [PATCH] ip-link.8: Add slave type option descriptions
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1269528
049c96
Upstream Status: iproute2.git commit 3dd4b8936bd8c
049c96
049c96
commit 3dd4b8936bd8c07eaf0f9e410a1b0cebaef77e40
049c96
Author: Phil Sutter <phil@nwl.cc>
049c96
Date:   Sat Jul 9 11:22:49 2016 +0200
049c96
049c96
    ip-link.8: Add slave type option descriptions
049c96
049c96
    Signed-off-by: Phil Sutter <phil@nwl.cc>
049c96
---
049c96
 man/man8/ip-link.8.in | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++
049c96
 1 file changed, 129 insertions(+)
049c96
049c96
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
049c96
index 53d287a..25faebc 100644
049c96
--- a/man/man8/ip-link.8.in
049c96
+++ b/man/man8/ip-link.8.in
049c96
@@ -1046,6 +1046,135 @@ set IPv6 address generation mode
049c96
 .BR "link-netnsid "
049c96
 set peer netnsid for a cross-netns interface
049c96
 
049c96
+.TP
049c96
+.BI type " ETYPE TYPE_ARGS"
049c96
+Change type-specific settings. For a list of supported types and arguments refer
049c96
+to the description of
049c96
+.B "ip link add"
049c96
+above. In addition to that, it is possible to manipulate settings to slave
049c96
+devices:
049c96
+
049c96
+.TP
049c96
+Bridge Slave Support
049c96
+For a link with master
049c96
+.B bridge
049c96
+the following additional arguments are supported:
049c96
+
049c96
+.B "ip link set type bridge_slave"
049c96
+[
049c96
+.BI state " STATE"
049c96
+] [
049c96
+.BI priority " PRIO"
049c96
+] [
049c96
+.BI cost " COST"
049c96
+] [
049c96
+.BR guard " { " on " | " off " }"
049c96
+] [
049c96
+.BR hairpin " { " on " | " off " }"
049c96
+] [
049c96
+.BR fastleave " { " on " | " off " }"
049c96
+] [
049c96
+.BR root_block " { " on " | " off " }"
049c96
+] [
049c96
+.BR learning " { " on " | " off " }"
049c96
+] [
049c96
+.BR flood " { " on " | " off " }"
049c96
+] [
049c96
+.BR proxy_arp " { " on " | " off " }"
049c96
+] [
049c96
+.BR proxy_arp_wifi " { " on " | " off " }"
049c96
+] [
049c96
+.BI mcast_router " MULTICAST_ROUTER"
049c96
+] [
049c96
+.BR mcast_fast_leave " { " on " | " off "} ]"
049c96
+
049c96
+.in +8
049c96
+.sp
049c96
+.BI state " STATE"
049c96
+- Set port state.
049c96
+.I STATE
049c96
+is a number representing the following states:
049c96
+.BR 0 " (disabled),"
049c96
+.BR 1 " (listening),"
049c96
+.BR 2 " (learning),"
049c96
+.BR 3 " (forwarding),"
049c96
+.BR 4 " (blocking)."
049c96
+
049c96
+.BI priority " PRIO"
049c96
+- set port priority (a 16bit unsigned value).
049c96
+
049c96
+.BI cost " COST"
049c96
+- set port cost (a 32bit unsigned value).
049c96
+
049c96
+.BR guard " { " on " | " off " }"
049c96
+- block incoming BPDU packets on this port.
049c96
+
049c96
+.BR hairpin " { " on " | " off " }"
049c96
+- enable hairpin mode on this port. This will allow incoming packets on this
049c96
+port to be reflected back.
049c96
+
049c96
+.BR fastleave " { " on " | " off " }"
049c96
+- enable multicast fast leave on this port.
049c96
+
049c96
+.BR root_block " { " on " | " off " }"
049c96
+- block this port from becoming the bridge's root port.
049c96
+
049c96
+.BR learning " { " on " | " off " }"
049c96
+- allow MAC address learning on this port.
049c96
+
049c96
+.BR flood " { " on " | " off " }"
049c96
+- open the flood gates on this port, i.e. forward all unicast frames to this
049c96
+port also. Requires
049c96
+.BR proxy_arp " and " proxy_arp_wifi
049c96
+to be turned off.
049c96
+
049c96
+.BR proxy_arp " { " on " | " off " }"
049c96
+- enable proxy ARP on this port.
049c96
+
049c96
+.BR proxy_arp_wifi " { " on " | " off " }"
049c96
+- enable proxy ARP on this port which meets extended requirements by IEEE
049c96
+802.11 and Hotspot 2.0 specifications.
049c96
+
049c96
+.BI mcast_router " MULTICAST_ROUTER"
049c96
+- configure this port for having multicast routers attached. A port with a
049c96
+multicast router will receive all multicast traffic.
049c96
+.I MULTICAST_ROUTER
049c96
+may be either
049c96
+.B 0
049c96
+to disable multicast routers on this port,
049c96
+.B 1
049c96
+to let the system detect the presence of of routers (this is the default),
049c96
+.B 2
049c96
+to permanently enable multicast traffic forwarding on this port or
049c96
+.B 3
049c96
+to enable multicast routers temporarily on this port, not depending on incoming
049c96
+queries.
049c96
+
049c96
+.BR mcast_fast_leave " { " on " | " off " }"
049c96
+- this is a synonym to the
049c96
+.B fastleave
049c96
+option above.
049c96
+
049c96
+.in -8
049c96
+
049c96
+.TP
049c96
+Bonding Slave Support
049c96
+For a link with master
049c96
+.B bond
049c96
+the following additional arguments are supported:
049c96
+
049c96
+.B "ip link set type bond_slave"
049c96
+[
049c96
+.BI queue_id " ID"
049c96
+]
049c96
+
049c96
+.in +8
049c96
+.sp
049c96
+.BI queue_id " ID"
049c96
+- set the slave's queue ID (a 16bit unsigned value).
049c96
+
049c96
+.in -8
049c96
+
049c96
 .SS  ip link show - display device attributes
049c96
 
049c96
 .TP
049c96
-- 
049c96
1.8.3.1
049c96