1 .TH IP\-LINK 8 "13 Dec 2012" "iproute2" "Linux"
3 ip-link \- network device configuration
10 .RI " { " COMMAND " | "
43 .BR "ip link delete " {
56 .RB "[ { " up " | " down " } ]"
59 .IR "ETYPE TYPE_ARGS" " ]"
61 .RB "[ " arp " { " on " | " off " } ]"
63 .RB "[ " dynamic " { " on " | " off " } ]"
65 .RB "[ " multicast " { " on " | " off " } ]"
67 .RB "[ " allmulticast " { " on " | " off " } ]"
69 .RB "[ " promisc " { " on " | " off " } ]"
71 .RB "[ " protodown " { " on " | " off " } ]"
73 .RB "[ " trailers " { " on " | " off " } ]"
91 .IR PID " | " NETNSNAME " } ]"
105 .RI "[ " VFVLAN-LIST " ]"
116 .RB "[ " spoofchk " { " on " | " off " } ]"
118 .RB "[ " query_rss " { " on " | " off " } ]"
120 .RB "[ " state " { " auto " | " enable " | " disable " } ]"
122 .RB "[ " trust " { " on " | " off " } ]"
124 .RB "[ " node_guid " eui64 ]"
126 .RB "[ " port_guid " eui64 ] ]"
132 .RB "[ " nomaster " ]"
137 .RB "[ " addrgenmode " { " eui64 " | " none " | " stable_secret " | " random " } ]"
139 .RB "[ " macaddr " { " flush " | { " add " | " del " } "
140 .IR MACADDR " | set [ "
142 .IR MACADDR " [ ... ] ] ] } ]"
147 .RI "[ " DEVICE " | "
193 .IR ETYPE " := [ " TYPE " |"
194 .BR bridge_slave " | " bond_slave " ]"
197 .IR VFVLAN-LIST " := [ " VFVLAN-LIST " ] " VFVLAN
206 .IR VLAN-PROTO " ] ]"
209 .SS ip link add - add virtual link
213 specifies the physical device to act operate on.
216 specifies the name of the new virtual device.
219 specifies the type of the new device.
225 - Ethernet Bridge device
230 - Controller Area Network interface
233 - Dummy network interface
236 - High-availability Seamless Redundancy device
239 - Intermediate Functional Block device
242 - IP over Infiniband device
245 - Virtual interface base on link layer address (MAC)
248 - Virtual interface based on link layer address (MAC) and TAP.
251 - Virtual Controller Area Network interface
254 - Virtual ethernet interface
257 - 802.1q tagged virtual LAN interface
260 - Virtual eXtended LAN
263 - Virtual tunnel interface IPv4|IPv6 over IPv6
266 - Virtual tunnel interface IPv4 over IPv4
269 - Virtual tunnel interface IPv6 over IPv4
272 - Virtual tunnel interface GRE over IPv4
275 - Virtual L2 tunnel interface GRE over IPv4
278 - Virtual tunnel interface GRE over IPv6
281 - Virtual L2 tunnel interface GRE over IPv6
284 - Virtual tunnel interface
287 - Netlink monitoring device
290 - Interface for L3 (IPv6/IPv4) based VLANs
293 - Interface for 6LoWPAN (IPv6) over IEEE 802.15.4 / Bluetooth
296 - GEneric NEtwork Virtualization Encapsulation
299 - Interface for IEEE 802.1AE MAC Security (MACsec)
302 - Interface for L3 VRF domains
306 .BI numtxqueues " QUEUE_COUNT "
307 specifies the number of transmit queues for new device.
310 .BI numrxqueues " QUEUE_COUNT "
311 specifies the number of receive queues for new device.
315 specifies the desired index of the new virtual device. The link creation fails, if the index is busy.
321 the following additional arguments are supported:
328 .BI protocol " VLAN_PROTO "
332 .BR reorder_hdr " { " on " | " off " } "
335 .BR gvrp " { " on " | " off " } "
338 .BR mvrp " { " on " | " off " } "
341 .BR loose_binding " { " on " | " off " } "
344 .BI ingress-qos-map " QOS-MAP "
347 .BI egress-qos-map " QOS-MAP "
352 .BI protocol " VLAN_PROTO "
353 - either 802.1Q or 802.1ad.
356 - specifies the VLAN Identifer to use. Note that numbers with a leading " 0 " or " 0x " are interpreted as octal or hexadeimal, respectively.
358 .BR reorder_hdr " { " on " | " off " } "
359 - specifies whether ethernet headers are reordered or not (default is
364 .BR reorder_hdr " is " on
365 then VLAN header will be not inserted immediately but only before passing to the
366 physical device (if this device does not support VLAN offloading), the similar
367 on the RX direction - by default the packet will be untagged before being
368 received by VLAN device. Reordering allows to accelerate tagging on egress and
369 to hide VLAN header on ingress so the packet looks like regular Ethernet packet,
370 at the same time it might be confusing for packet capture as the VLAN header
371 does not exist within the packet.
373 VLAN offloading can be checked by
379 .RB grep " tx-vlan-offload"
382 where <phy_dev> is the physical device to which VLAN device is bound.
385 .BR gvrp " { " on " | " off " } "
386 - specifies whether this VLAN should be registered using GARP VLAN Registration Protocol.
388 .BR mvrp " { " on " | " off " } "
389 - specifies whether this VLAN should be registered using Multiple VLAN Registration Protocol.
391 .BR loose_binding " { " on " | " off " } "
392 - specifies whether the VLAN device state is bound to the physical device state.
394 .BI ingress-qos-map " QOS-MAP "
395 - defines a mapping of VLAN header prio field to the Linux internal packet
396 priority on incoming frames. The format is FROM:TO with multiple mappings
399 .BI egress-qos-map " QOS-MAP "
400 - defines a mapping of Linux internal packet priority to VLAN header prio field
401 but for outgoing frames. The format is the same as for ingress-qos-map.
404 Linux packet priority can be set by
409 -t mangle -A POSTROUTING [...] -j CLASSIFY --set-class 0:4
412 and this "4" priority can be used in the egress qos mapping to set VLAN prio "5":
416 link set veth0.10 type vlan egress 4:5
425 the following additional arguments are supported:
427 .BI "ip link add " DEVICE
428 .BI type " vxlan " id " VNI"
431 .RB " ] [ { " group " | " remote " } "
435 .RI "{ "IPADDR " | "any " } "
441 .BI flowlabel " FLOWLABEL "
445 .BI srcport " MIN MAX "
459 .RB [ no ] udp6zerocsumtx
461 .RB [ no ] udp6zerocsumrx
463 .BI ageing " SECONDS "
465 .BI maxaddress " NUMBER "
477 - specifies the VXLAN Network Identifer (or VXLAN Segment
481 - specifies the physical device to use for tunnel endpoint communication.
485 - specifies the multicast IP address to join.
486 This parameter cannot be specified with the
492 - specifies the unicast destination IP address to use in outgoing packets
493 when the destination link layer address is not known in the VXLAN device
494 forwarding database. This parameter cannot be specified with the
500 - specifies the source IP address to use in outgoing packets.
504 - specifies the TTL value to use in outgoing packets.
508 - specifies the TOS value to use in outgoing packets.
511 .BI flowlabel " FLOWLABEL"
512 - specifies the flow label to use in outgoing packets.
516 - specifies the UDP destination port to communicate to the remote VXLAN tunnel endpoint.
519 .BI srcport " MIN MAX"
520 - specifies the range of port numbers to use as UDP
521 source ports to communicate to the remote VXLAN tunnel endpoint.
525 - specifies if unknown source link layer addresses and IP addresses
526 are entered into the VXLAN device forwarding database.
530 - specifies if route short circuit is turned on.
534 - specifies ARP proxy is turned on.
538 - specifies if netlink LLADDR miss notifications are generated.
542 - specifies if netlink IP ADDR miss notifications are generated.
546 - specifies if UDP checksum is calculated for transmitted packets over IPv4.
549 .RB [ no ] udp6zerocsumtx
550 - skip UDP checksum calculation for transmitted packets over IPv6.
553 .RB [ no ] udp6zerocsumrx
554 - allow incoming UDP packets over IPv6 with zero checksum field.
557 .BI ageing " SECONDS"
558 - specifies the lifetime in seconds of FDB entries learnt by the kernel.
561 .BI maxaddress " NUMBER"
562 - specifies the maximum number of FDB entries.
566 - specifies whether an external control plane
567 .RB "(e.g. " "ip route encap" )
568 or the internal FDB should be used.
572 - enables the Group Policy extension (VXLAN-GBP).
575 Allows to transport group policy context across VXLAN network peers.
576 If enabled, includes the mark of a packet in the VXLAN header for outgoing
577 packets and fills the packet mark based on the information found in the
578 VXLAN header for incomming packets.
580 Format of upper 16 bits of packet mark (flags);
583 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
585 |-|-|-|-|-|-|-|-|-|D|-|-|A|-|-|-|
587 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
590 Don't Learn bit. When set, this bit indicates that the egress
591 VTEP MUST NOT learn the source address of the encapsulated frame.
594 Indicates that the group policy has already been applied to
595 this packet. Policies MUST NOT be applied by devices when the A bit is set.
598 Format of lower 16 bits of packet mark (policy ID):
601 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
605 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
609 iptables -A OUTPUT [...] -j MARK --set-mark 0x800FF
615 - enables the Generic Protocol extension (VXLAN-GPE). Currently, this is
616 only supported together with the
623 GRE, IPIP, SIT Type Support
626 the following additional arguments are supported:
628 .BI "ip link add " DEVICE
629 .BR type " { " gre " | " ipip " | " sit " }"
630 .BI " remote " ADDR " local " ADDR
632 .BR encap " { " fou " | " gue " | " none " }"
634 .BR encap-sport " { " \fIPORT " | " auto " }"
636 .BI "encap-dport " PORT
638 .RB [ no ] encap-csum
640 .RB [ no ] encap-remcsum
646 - specifies the remote address of the tunnel.
650 - specifies the fixed local address for tunneled packets.
651 It must be an address on another interface on this host.
654 .BR encap " { " fou " | " gue " | " none " }"
655 - specifies type of secondary UDP encapsulation. "fou" indicates
656 Foo-Over-UDP, "gue" indicates Generic UDP Encapsulation.
659 .BR encap-sport " { " \fIPORT " | " auto " }"
660 - specifies the source port in UDP encapsulation.
662 indicates the port by number, "auto"
663 indicates that the port number should be chosen automatically
664 (the kernel picks a flow based on the flow hash of the
665 encapsulated packet).
668 .RB [ no ] encap-csum
669 - specifies if UDP checksums are enabled in the secondary
673 .RB [ no ] encap-remcsum
674 - specifies if Remote Checksum Offload is enabled. This is only
675 applicable for Generic UDP Encapsulation.
680 IP6GRE/IP6GRETAP Type Support
683 the following additional arguments are supported:
685 .BI "ip link add " DEVICE
686 .BR type " { " ip6gre " | " ip6gretap " }"
687 .BI remote " ADDR " local " ADDR"
698 .BI encaplimit " ELIM "
700 .BI tclass " TCLASS "
702 .BI flowlabel " FLOWLABEL "
712 - specifies the remote IPv6 address of the tunnel.
716 - specifies the fixed local IPv6 address for tunneled packets.
717 It must be an address on another interface on this host.
724 flag enables sequencing of outgoing packets.
727 flag requires that all input packets are serialized.
730 .RB [ i | o ] key " \fIKEY"
731 - use keyed GRE with key
733 is either a number or an IPv4 address-like dotted quad.
736 parameter specifies the same key to use in both directions.
738 .BR ikey " and " okey
739 parameters specify different keys for input and output.
743 - generate/require checksums for tunneled packets.
746 flag calculates checksums for outgoing packets.
749 flag requires that all input packets have the correct
752 flag is equivalent to the combination
757 - specifies Hop Limit value to use in outgoing packets.
760 .BI encaplimit " ELIM"
761 - specifies a fixed encapsulation limit. Default is 4.
764 .BI flowlabel " FLOWLABEL"
765 - specifies a fixed flowlabel.
769 - specifies the traffic class field on
770 tunneled packets, which can be specified as either a two-digit
771 hex value (e.g. c0) or a predefined string (e.g. internet).
774 causes the field to be copied from the original IP header. The
776 .BI "inherit/" STRING
778 .BI "inherit/" 00 ".." ff
779 will set the field to
783 when tunneling non-IP packets. The default value is 00.
791 the following additional arguments are supported:
793 .BI "ip link add " DEVICE " name " NAME
794 .BR "type ipoib " [ " pkey \fIPKEY" " ] [ " mode " \fIMODE \fR]"
799 - specifies the IB P-Key to use.
802 - specifies the mode (datagram or connected) to use.
808 the following additional arguments are supported:
810 .BI "ip link add " DEVICE
811 .BI type " geneve " id " VNI " remote " IPADDR"
817 .BI flowlabel " FLOWLABEL "
825 .RB [ no ] udp6zerocsumtx
827 .RB [ no ] udp6zerocsumrx
833 - specifies the Virtual Network Identifer to use.
837 - specifies the unicast destination IP address to use in outgoing packets.
841 - specifies the TTL value to use in outgoing packets.
845 - specifies the TOS value to use in outgoing packets.
848 .BI flowlabel " FLOWLABEL"
849 - specifies the flow label to use in outgoing packets.
853 - select a destination port other than the default of 6081.
857 - make this tunnel externally controlled (or not, which is the default). This
858 flag is mutually exclusive with the
862 .BR tos " and " flowlabel
867 - specifies if UDP checksum is calculated for transmitted packets over IPv4.
870 .RB [ no ] udp6zerocsumtx
871 - skip UDP checksum calculation for transmitted packets over IPv6.
874 .RB [ no ] udp6zerocsumrx
875 - allow incoming UDP packets over IPv6 with zero checksum field.
880 MACVLAN and MACVTAP Type Support
885 the following additional arguments are supported:
887 .BI "ip link add link " DEVICE " name " NAME
888 .BR type " { " macvlan " | " macvtap " } "
889 .BR mode " { " private " | " vepa " | " bridge " | " passthru
890 .RB " [ " nopromisc " ] | " source " } "
894 .BR type " { " macvlan " | " macvtap " } "
895 - specifies the link type to use.
896 .BR macvlan " creates just a virtual interface, while "
897 .BR macvtap " in addition creates a character device "
898 .BR /dev/tapX " to be used just like a " tuntap " device."
901 - Do not allow communication between
903 instances on the same physical interface, even if the external switch supports
907 - Virtual Ethernet Port Aggregator mode. Data from one
909 instance to the other on the same physical interface is transmitted over the
910 physical interface. Either the attached switch needs to support hairpin mode,
911 or there must be a TCP/IP router forwarding the packets in order to allow
912 communication. This is the default mode.
915 - In bridge mode, all endpoints are directly connected to each other,
916 communication is not redirected through the physical interface's peer.
918 .BR mode " " passthru " [ " nopromisc " ] "
919 - This mode gives more power to a single endpoint, usually in
920 .BR macvtap " mode. It is not allowed for more than one endpoint on the same "
921 physical interface. All traffic will be forwarded to this endpoint, allowing
922 virtio guests to change MAC address or set promiscuous mode in order to bridge
923 the interface or create vlan interfaces on top of it. By default, this mode
924 forces the underlying interface into promiscuous mode. Passing the
925 .BR nopromisc " flag prevents this, so the promisc flag may be controlled "
926 using standard tools.
929 - allows one to set a list of allowed mac address, which is used to match
930 against source mac address from received frames on underlying interface. This
931 allows creating mac based VLAN associations, instead of standard port or tag
932 based. The feature is useful to deploy 802.1x mac based behavior,
933 where drivers of underlying interfaces doesn't allows that.
937 High-availability Seamless Redundancy (HSR) Support
940 the following additional arguments are supported:
942 .BI "ip link add link " DEVICE " name " NAME " type hsr"
943 .BI slave1 " SLAVE1-IF " slave2 " SLAVE2-IF "
946 .BR version " { " 0 " | " 1 " } ]"
951 - specifies the link type to use, here HSR.
953 .BI slave1 " SLAVE1-IF "
954 - Specifies the physical device used for the first of the two ring ports.
956 .BI slave2 " SLAVE2-IF "
957 - Specifies the physical device used for the second of the two ring ports.
959 .BI supervision " ADDR-BYTE"
960 - The last byte of the multicast address used for HSR supervision frames.
961 Default option is "0", possible values 0-255.
963 .BR version " { " 0 " | " 1 " }"
964 - Selects the protocol version of the interface. Default option is "0", which
965 corresponds to the 2010 version of the HSR standard. Option "1" activates the
973 the following additional arguments are supported:
975 .BI "ip link add link " DEVICE " name " NAME " type macsec"
977 .BI address " <lladdr>"
983 .BI cipher " CIPHER_SUITE"
988 .BR on " | " off " } ] [ "
989 .BR send_sci " { " on " | " off " } ] ["
990 .BR end_station " { " on " | " off " } ] ["
991 .BR scb " { " on " | " off " } ] ["
992 .BR protect " { " on " | " off " } ] ["
993 .BR replay " { " on " | " off " }"
995 .IR 0..2^32-1 " } ] ["
996 .BR validate " { " strict " | " check " | " disabled " } ] ["
1002 .BI address " <lladdr> "
1003 - sets the system identifier component of secure channel for this MACsec device.
1007 - sets the port number component of secure channel for this MACsec device, in a
1008 range from 1 to 65535 inclusive. Numbers with a leading " 0 " or " 0x " are
1009 interpreted as octal and hexadecimal, respectively.
1013 - sets the secure channel identifier for this MACsec device.
1015 is a 64bit wide number in hexadecimal format.
1018 .BI cipher " CIPHER_SUITE "
1019 - defines the cipher suite to use.
1022 .BI icvlen " LENGTH "
1023 - sets the length of the Integrity Check Value (ICV).
1026 .BR "encrypt on " or " encrypt off"
1027 - switches between authenticated encryption, or authenticity mode only.
1030 .BR "send_sci on " or " send_sci off"
1031 - specifies whether the SCI is included in every packet, or only when it is necessary.
1034 .BR "end_station on " or " end_station off"
1035 - sets the End Station bit.
1038 .BR "scb on " or " scb off"
1039 - sets the Single Copy Broadcast bit.
1042 .BR "protect on " or " protect off"
1043 - enables MACsec protection on the device.
1046 .BR "replay on " or " replay off"
1047 - enables replay protection on the device.
1053 - sets the size of the replay window.
1058 .BR "validate strict " or " validate check " or " validate disabled"
1059 - sets the validation mode on the device.
1062 .BI encodingsa " AN "
1063 - sets the active secure association for transmission.
1071 the following additional arguments are supported:
1073 .BI "ip link add " DEVICE " type vrf table " TABLE
1077 .BR table " table id associated with VRF device"
1081 .SS ip link delete - delete virtual link
1085 specifies the virtual device to act operate on.
1089 specifies the group of virtual links to delete. Group 0 is not allowed to be
1090 deleted since it is the default group.
1094 specifies the type of the device.
1096 .SS ip link set - change device attributes
1100 If multiple parameter changes are requested,
1102 aborts immediately after any of the changes have failed.
1103 This is the only case when
1105 can move the system to an unpredictable state. The solution
1106 is to avoid changing several parameters with one
1113 specifies network device to operate on. When configuring SR-IOV Virtual Function
1114 (VF) devices, this keyword should specify the associated Physical Function (PF)
1120 has a dual role: If both group and dev are present, then move the device to the
1121 specified group. If only a group is specified, then the command operates on
1122 all devices in that group.
1126 change the state of the device to
1132 .BR "arp on " or " arp off"
1138 .BR "multicast on " or " multicast off"
1144 .BR "protodown on " or " protodown off"
1147 state on the device. Indicates that a protocol error has been detected on the port. Switch drivers can react to this error by doing a phys down on the switch port.
1150 .BR "dynamic on " or " dynamic off"
1153 flag on the device. Indicates that address can change when interface goes down (currently
1159 change the name of the device. This operation is not
1160 recommended if the device is running or has some addresses
1164 .BI txqueuelen " NUMBER"
1166 .BI txqlen " NUMBER"
1167 change the transmit queue length of the device.
1176 .BI address " LLADDRESS"
1177 change the station address of the interface.
1180 .BI broadcast " LLADDRESS"
1182 .BI brd " LLADDRESS"
1184 .BI peer " LLADDRESS"
1185 change the link layer broadcast address or the peer address when
1190 .BI netns " NETNSNAME " \fR| " PID"
1191 move the device to the network namespace associated with name
1195 Some devices are not allowed to change network namespace: loopback, bridge,
1196 ppp, wireless. These are network namespace local devices. In such case
1198 tool will return "Invalid argument" error. It is possible to find out if device is local
1199 to a single network namespace by checking
1201 flag in the output of the
1209 To change network namespace for wireless devices the
1211 tool can be used. But it allows to change network namespace only for physical devices and by process
1216 give the device a symbolic name for easy reference.
1220 specify the group the device belongs to.
1221 The available groups are listed in file
1222 .BR "@SYSCONFDIR@/group" .
1226 specify a Virtual Function device to be configured. The associated PF device
1227 must be specified using the
1232 .BI mac " LLADDRESS"
1233 - change the station address for the specified VF. The
1235 parameter must be specified.
1239 - change the assigned VLAN for the specified VF. When specified, all traffic
1240 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
1241 will be filtered for the specified VLAN ID, and will have all VLAN tags
1242 stripped before being passed to the VF. Setting this parameter to 0 disables
1243 VLAN tagging and filtering. The
1245 parameter must be specified.
1249 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
1250 tags transmitted by the VF will include the specified priority bits in the
1251 VLAN tag. If not specified, the value is assumed to be 0. Both the
1255 parameters must be specified. Setting both
1259 as 0 disables VLAN tagging and filtering for the VF.
1262 .BI proto " VLAN-PROTO"
1263 - assign VLAN PROTOCOL for the VLAN tag, either 802.1Q or 802.1ad.
1264 Setting to 802.1ad, all traffic sent from the VF will be tagged with VLAN S-Tag.
1265 Incoming traffic will have VLAN S-Tags stripped before being passed to the VF.
1266 Setting to 802.1ad also enables an option to concatenate another VLAN tag, so both
1267 S-TAG and C-TAG will be inserted/stripped for outgoing/incoming traffic, respectively.
1268 If not specified, the value is assumed to be 802.1Q. Both the
1272 parameters must be specified.
1276 -- change the allowed transmit bandwidth, in Mbps, for the specified VF.
1277 Setting this parameter to 0 disables rate limiting.
1279 parameter must be specified.
1285 .BI max_tx_rate " TXRATE"
1286 - change the allowed maximum transmit bandwidth, in Mbps, for the specified VF.
1288 parameter must be specified.
1291 .BI min_tx_rate " TXRATE"
1292 - change the allowed minimum transmit bandwidth, in Mbps, for the specified VF.
1293 Minimum TXRATE should be always <= Maximum TXRATE.
1295 parameter must be specified.
1298 .BI spoofchk " on|off"
1299 - turn packet spoof checking on or off for the specified VF.
1301 .BI query_rss " on|off"
1302 - toggle the ability of querying the RSS configuration of a specific VF. VF RSS information like RSS hash key may be considered sensitive on some devices where this information is shared between VF and PF and thus its querying may be prohibited by default.
1304 .BI state " auto|enable|disable"
1305 - set the virtual link state as seen by the specified VF. Setting to auto means a
1306 reflection of the PF link state, enable lets the VF to communicate with other VFs on
1307 this host even if the PF link state is down, disable causes the HW to drop any packets
1311 - trust the specified VF user. This enables that VF user can set a specific feature
1312 which may impact security and/or performance. (e.g. VF multicast promiscuous mode)
1314 .BI node_guid " eui64"
1315 - configure node GUID for the VF.
1317 .BI port_guid " eui64"
1318 - configure port GUID for the VF.
1322 .BI master " DEVICE"
1323 set master device of the device (enslave device).
1327 unset master device of the device (release device).
1330 .BI addrgenmode " eui64|none|stable_secret|random"
1331 set the IPv6 address generation mode
1334 - use a Modified EUI-64 format interface identifier
1337 - disable automatic address generation
1340 - generate the interface identifier based on a preset /proc/sys/net/ipv6/conf/{default,DEVICE}/stable_secret
1343 - like stable_secret, but auto-generate a new random secret if none is set
1347 set peer netnsid for a cross-netns interface
1350 .BI type " ETYPE TYPE_ARGS"
1351 Change type-specific settings. For a list of supported types and arguments refer
1352 to the description of
1354 above. In addition to that, it is possible to manipulate settings to slave
1358 Bridge Slave Support
1359 For a link with master
1361 the following additional arguments are supported:
1363 .B "ip link set type bridge_slave"
1367 .BI priority " PRIO"
1371 .BR guard " { " on " | " off " }"
1373 .BR hairpin " { " on " | " off " }"
1375 .BR fastleave " { " on " | " off " }"
1377 .BR root_block " { " on " | " off " }"
1379 .BR learning " { " on " | " off " }"
1381 .BR flood " { " on " | " off " }"
1383 .BR proxy_arp " { " on " | " off " }"
1385 .BR proxy_arp_wifi " { " on " | " off " }"
1387 .BI mcast_router " MULTICAST_ROUTER"
1389 .BR mcast_fast_leave " { " on " | " off "}"
1391 .BR mcast_flood " { " on " | " off " } ]"
1398 is a number representing the following states:
1399 .BR 0 " (disabled),"
1400 .BR 1 " (listening),"
1401 .BR 2 " (learning),"
1402 .BR 3 " (forwarding),"
1403 .BR 4 " (blocking)."
1405 .BI priority " PRIO"
1406 - set port priority (a 16bit unsigned value).
1409 - set port cost (a 32bit unsigned value).
1411 .BR guard " { " on " | " off " }"
1412 - block incoming BPDU packets on this port.
1414 .BR hairpin " { " on " | " off " }"
1415 - enable hairpin mode on this port. This will allow incoming packets on this
1416 port to be reflected back.
1418 .BR fastleave " { " on " | " off " }"
1419 - enable multicast fast leave on this port.
1421 .BR root_block " { " on " | " off " }"
1422 - block this port from becoming the bridge's root port.
1424 .BR learning " { " on " | " off " }"
1425 - allow MAC address learning on this port.
1427 .BR flood " { " on " | " off " }"
1428 - open the flood gates on this port, i.e. forward all unicast frames to this
1430 .BR proxy_arp " and " proxy_arp_wifi
1433 .BR proxy_arp " { " on " | " off " }"
1434 - enable proxy ARP on this port.
1436 .BR proxy_arp_wifi " { " on " | " off " }"
1437 - enable proxy ARP on this port which meets extended requirements by IEEE
1438 802.11 and Hotspot 2.0 specifications.
1440 .BI mcast_router " MULTICAST_ROUTER"
1441 - configure this port for having multicast routers attached. A port with a
1442 multicast router will receive all multicast traffic.
1446 to disable multicast routers on this port,
1448 to let the system detect the presence of of routers (this is the default),
1450 to permanently enable multicast traffic forwarding on this port or
1452 to enable multicast routers temporarily on this port, not depending on incoming
1455 .BR mcast_fast_leave " { " on " | " off " }"
1456 - this is a synonym to the
1460 .BR mcast_flood " { " on " | " off " }"
1461 - controls whether a given port will be flooded with multicast traffic for which there is no MDB entry.
1466 Bonding Slave Support
1467 For a link with master
1469 the following additional arguments are supported:
1471 .B "ip link set type bond_slave"
1479 - set the slave's queue ID (a 16bit unsigned value).
1484 MACVLAN and MACVTAP Support
1485 Modify list of allowed macaddr for link in source mode.
1487 .B "ip link set type { macvlan | macvap } "
1489 .BI macaddr " " "" COMMAND " " MACADDR " ..."
1495 - add MACADDR to allowed list
1498 - replace allowed list
1501 - remove MACADDR from allowed list
1504 - flush whole allowed list
1509 .SS ip link show - display device attributes
1512 .BI dev " NAME " (default)
1514 specifies the network device to show.
1515 If this argument is omitted all devices in the default group are listed.
1520 specifies what group of devices to show.
1524 only display running interfaces.
1527 .BI master " DEVICE "
1529 specifies the master device which enslaves devices to show.
1534 speficies the VRF which enslaves devices to show.
1539 specifies the type of devices to show.
1541 Note that the type name is not checked against the list of supported types -
1542 instead it is sent as-is to the kernel. Later it is used to filter the returned
1543 interface list by comparing it with the relevant attribute in case the kernel
1544 didn't filter already. Therefore any string is accepted, but may lead to empty
1547 .SS ip link help - display help
1551 specifies which help of link type to dislpay.
1555 may be a number or a string from the file
1556 .B @SYSCONFDIR@/group
1557 which can be manually filled.
1563 Shows the state of all network interfaces on the system.
1566 ip link show type bridge
1568 Shows the bridge devices.
1571 ip link show type vlan
1573 Shows the vlan devices.
1576 ip link show master br0
1578 Shows devices enslaved by br0
1581 ip link set dev ppp0 mtu 1400
1583 Change the MTU the ppp0 device.
1586 ip link add link eth0 name eth0.10 type vlan id 10
1588 Creates a new vlan device eth0.10 on device eth0.
1591 ip link delete dev eth0.10
1593 Removes vlan device.
1598 Display help for the gre link type.
1601 ip link add name tun1 type ipip remote 192.168.1.1
1602 local 192.168.1.2 ttl 225 encap gue encap-sport auto
1603 encap-dport 5555 encap-csum encap-remcsum
1605 Creates an IPIP that is encapsulated with Generic UDP Encapsulation,
1606 and the outer UDP checksum and remote checksum offload are enabled.
1610 ip link add link wpan0 lowpan0 type lowpan
1612 Creates a 6LoWPAN interface named lowpan0 on the underlying
1613 IEEE 802.15.4 device wpan0.
1624 Original Manpage by Michail Litvak <mci@owl.openwall.com>