1 .TH IP\-LINK 8 "13 Dec 2012" "iproute2" "Linux"
3 ip-link \- network device configuration
10 .RI " { " COMMAND " | "
48 .BR "ip link delete " {
61 .RB "[ { " up " | " down " } ]"
64 .IR "ETYPE TYPE_ARGS" " ]"
66 .RB "[ " arp " { " on " | " off " } ]"
68 .RB "[ " dynamic " { " on " | " off " } ]"
70 .RB "[ " multicast " { " on " | " off " } ]"
72 .RB "[ " allmulticast " { " on " | " off " } ]"
74 .RB "[ " promisc " { " on " | " off " } ]"
76 .RB "[ " protodown " { " on " | " off " } ]"
78 .RB "[ " trailers " { " on " | " off " } ]"
96 .IR PID " | " NETNSNAME " } ]"
110 .RI "[ " VFVLAN-LIST " ]"
121 .RB "[ " spoofchk " { " on " | " off " } ]"
123 .RB "[ " query_rss " { " on " | " off " } ]"
125 .RB "[ " state " { " auto " | " enable " | " disable " } ]"
127 .RB "[ " trust " { " on " | " off " } ]"
129 .RB "[ " node_guid " eui64 ]"
131 .RB "[ " port_guid " eui64 ] ]"
134 .RB "[ { " xdp " | " xdpgeneric " | " xdpdrv " | " xdpoffload " } { " off " | "
141 .RB "[ " verbose " ] |"
150 .RB "[ " nomaster " ]"
155 .RB "[ " addrgenmode " { " eui64 " | " none " | " stable_secret " | " random " } ]"
157 .RB "[ " macaddr " { " flush " | { " add " | " del " } "
158 .IR MACADDR " | set [ "
160 .IR MACADDR " [ ... ] ] ] } ]"
165 .RI "[ " DEVICE " | "
227 .IR ETYPE " := [ " TYPE " |"
228 .BR bridge_slave " | " bond_slave " ]"
231 .IR VFVLAN-LIST " := [ " VFVLAN-LIST " ] " VFVLAN
240 .IR VLAN-PROTO " ] ]"
243 .SS ip link add - add virtual link
247 specifies the physical device to act operate on.
250 specifies the name of the new virtual device.
253 specifies the type of the new device.
259 - Ethernet Bridge device
265 - Dummy network interface
268 - High-availability Seamless Redundancy device
271 - Intermediate Functional Block device
274 - IP over Infiniband device
277 - Virtual interface base on link layer address (MAC)
280 - Virtual interface based on link layer address (MAC) and TAP.
283 - Virtual Controller Area Network interface
286 - Virtual Controller Area Network tunnel interface
289 - Virtual ethernet interface
292 - 802.1q tagged virtual LAN interface
295 - Virtual eXtended LAN
298 - Virtual tunnel interface IPv4|IPv6 over IPv6
301 - Virtual tunnel interface IPv4 over IPv4
304 - Virtual tunnel interface IPv6 over IPv4
307 - Virtual tunnel interface GRE over IPv4
310 - Virtual L2 tunnel interface GRE over IPv4
313 - Encapsulated Remote SPAN over GRE and IPv4
316 - Virtual tunnel interface GRE over IPv6
319 - Virtual L2 tunnel interface GRE over IPv6
322 - Encapsulated Remote SPAN over GRE and IPv6
325 - Virtual tunnel interface
328 - Netlink monitoring device
331 - Interface for L3 (IPv6/IPv4) based VLANs
334 - Interface for L3 (IPv6/IPv4) based VLANs and TAP
337 - Interface for 6LoWPAN (IPv6) over IEEE 802.15.4 / Bluetooth
340 - GEneric NEtwork Virtualization Encapsulation
343 - Interface for IEEE 802.1AE MAC Security (MACsec)
346 - Interface for L3 VRF domains
349 - Interface for netdev API tests
352 - Qualcomm rmnet device
356 .BI numtxqueues " QUEUE_COUNT "
357 specifies the number of transmit queues for new device.
360 .BI numrxqueues " QUEUE_COUNT "
361 specifies the number of receive queues for new device.
364 .BI gso_max_size " BYTES "
365 specifies the recommended maximum size of a Generic Segment Offload packet the new device should accept.
368 .BI gso_max_segs " SEGMENTS "
369 specifies the recommended maximum number of a Generic Segment Offload segments the new device should accept.
373 specifies the desired index of the new virtual device. The link creation fails, if the index is busy.
379 the following additional arguments are supported:
386 .BI protocol " VLAN_PROTO "
390 .BR reorder_hdr " { " on " | " off " } "
393 .BR gvrp " { " on " | " off " } "
396 .BR mvrp " { " on " | " off " } "
399 .BR loose_binding " { " on " | " off " } "
402 .BI ingress-qos-map " QOS-MAP "
405 .BI egress-qos-map " QOS-MAP "
410 .BI protocol " VLAN_PROTO "
411 - either 802.1Q or 802.1ad.
414 - specifies the VLAN Identifer to use. Note that numbers with a leading " 0 " or " 0x " are interpreted as octal or hexadeimal, respectively.
416 .BR reorder_hdr " { " on " | " off " } "
417 - specifies whether ethernet headers are reordered or not (default is
422 .BR reorder_hdr " is " on
423 then VLAN header will be not inserted immediately but only before passing to the
424 physical device (if this device does not support VLAN offloading), the similar
425 on the RX direction - by default the packet will be untagged before being
426 received by VLAN device. Reordering allows to accelerate tagging on egress and
427 to hide VLAN header on ingress so the packet looks like regular Ethernet packet,
428 at the same time it might be confusing for packet capture as the VLAN header
429 does not exist within the packet.
431 VLAN offloading can be checked by
437 .RB grep " tx-vlan-offload"
440 where <phy_dev> is the physical device to which VLAN device is bound.
443 .BR gvrp " { " on " | " off " } "
444 - specifies whether this VLAN should be registered using GARP VLAN Registration Protocol.
446 .BR mvrp " { " on " | " off " } "
447 - specifies whether this VLAN should be registered using Multiple VLAN Registration Protocol.
449 .BR loose_binding " { " on " | " off " } "
450 - specifies whether the VLAN device state is bound to the physical device state.
452 .BI ingress-qos-map " QOS-MAP "
453 - defines a mapping of VLAN header prio field to the Linux internal packet
454 priority on incoming frames. The format is FROM:TO with multiple mappings
457 .BI egress-qos-map " QOS-MAP "
458 - defines a mapping of Linux internal packet priority to VLAN header prio field
459 but for outgoing frames. The format is the same as for ingress-qos-map.
462 Linux packet priority can be set by
467 -t mangle -A POSTROUTING [...] -j CLASSIFY --set-class 0:4
470 and this "4" priority can be used in the egress qos mapping to set VLAN prio "5":
474 link set veth0.10 type vlan egress 4:5
483 the following additional arguments are supported:
485 .BI "ip link add " DEVICE
486 .BI type " vxlan " id " VNI"
489 .RB " ] [ { " group " | " remote " } "
493 .RI "{ "IPADDR " | "any " } "
501 .BI flowlabel " FLOWLABEL "
505 .BI srcport " MIN MAX "
519 .RB [ no ] udp6zerocsumtx
521 .RB [ no ] udp6zerocsumrx
523 .BI ageing " SECONDS "
525 .BI maxaddress " NUMBER "
537 - specifies the VXLAN Network Identifer (or VXLAN Segment
541 - specifies the physical device to use for tunnel endpoint communication.
545 - specifies the multicast IP address to join.
546 This parameter cannot be specified with the
552 - specifies the unicast destination IP address to use in outgoing packets
553 when the destination link layer address is not known in the VXLAN device
554 forwarding database. This parameter cannot be specified with the
560 - specifies the source IP address to use in outgoing packets.
564 - specifies the TTL value to use in outgoing packets.
568 - specifies the TOS value to use in outgoing packets.
572 - specifies the usage of the Don't Fragment flag (DF) bit in outgoing packets
573 with IPv4 headers. The value
575 causes the bit to be copied from the original IP header. The values
579 cause the bit to be always unset or always set, respectively. By default, the
583 .BI flowlabel " FLOWLABEL"
584 - specifies the flow label to use in outgoing packets.
588 - specifies the UDP destination port to communicate to the remote VXLAN tunnel endpoint.
591 .BI srcport " MIN MAX"
592 - specifies the range of port numbers to use as UDP
593 source ports to communicate to the remote VXLAN tunnel endpoint.
597 - specifies if unknown source link layer addresses and IP addresses
598 are entered into the VXLAN device forwarding database.
602 - specifies if route short circuit is turned on.
606 - specifies ARP proxy is turned on.
610 - specifies if netlink LLADDR miss notifications are generated.
614 - specifies if netlink IP ADDR miss notifications are generated.
618 - specifies if UDP checksum is calculated for transmitted packets over IPv4.
621 .RB [ no ] udp6zerocsumtx
622 - skip UDP checksum calculation for transmitted packets over IPv6.
625 .RB [ no ] udp6zerocsumrx
626 - allow incoming UDP packets over IPv6 with zero checksum field.
629 .BI ageing " SECONDS"
630 - specifies the lifetime in seconds of FDB entries learnt by the kernel.
633 .BI maxaddress " NUMBER"
634 - specifies the maximum number of FDB entries.
638 - specifies whether an external control plane
639 .RB "(e.g. " "ip route encap" )
640 or the internal FDB should be used.
644 - enables the Group Policy extension (VXLAN-GBP).
647 Allows to transport group policy context across VXLAN network peers.
648 If enabled, includes the mark of a packet in the VXLAN header for outgoing
649 packets and fills the packet mark based on the information found in the
650 VXLAN header for incoming packets.
652 Format of upper 16 bits of packet mark (flags);
655 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
657 |-|-|-|-|-|-|-|-|-|D|-|-|A|-|-|-|
659 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
662 Don't Learn bit. When set, this bit indicates that the egress
663 VTEP MUST NOT learn the source address of the encapsulated frame.
666 Indicates that the group policy has already been applied to
667 this packet. Policies MUST NOT be applied by devices when the A bit is set.
670 Format of lower 16 bits of packet mark (policy ID):
673 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
677 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
681 iptables -A OUTPUT [...] -j MARK --set-mark 0x800FF
687 - enables the Generic Protocol extension (VXLAN-GPE). Currently, this is
688 only supported together with the
695 VETH, VXCAN Type Support
698 the following additional arguments are supported:
700 .BI "ip link add " DEVICE
701 .BR type " { " veth " | " vxcan " }"
711 - specifies the virtual pair device name of the
718 IPIP, SIT Type Support
721 the following additional arguments are supported:
723 .BI "ip link add " DEVICE
724 .BR type " { " ipip " | " sit " }"
725 .BI " remote " ADDR " local " ADDR
727 .BR encap " { " fou " | " gue " | " none " }"
729 .BR encap-sport " { " \fIPORT " | " auto " }"
731 .BI "encap-dport " PORT
733 .RB [ no ] encap-csum
735 .I " [no]encap-remcsum "
737 .I " mode " { ip6ip | ipip | mplsip | any } "
745 - specifies the remote address of the tunnel.
749 - specifies the fixed local address for tunneled packets.
750 It must be an address on another interface on this host.
753 .BR encap " { " fou " | " gue " | " none " }"
754 - specifies type of secondary UDP encapsulation. "fou" indicates
755 Foo-Over-UDP, "gue" indicates Generic UDP Encapsulation.
758 .BR encap-sport " { " \fIPORT " | " auto " }"
759 - specifies the source port in UDP encapsulation.
761 indicates the port by number, "auto"
762 indicates that the port number should be chosen automatically
763 (the kernel picks a flow based on the flow hash of the
764 encapsulated packet).
767 .RB [ no ] encap-csum
768 - specifies if UDP checksums are enabled in the secondary
772 .RB [ no ] encap-remcsum
773 - specifies if Remote Checksum Offload is enabled. This is only
774 applicable for Generic UDP Encapsulation.
777 .BI mode " { ip6ip | ipip | mplsip | any } "
778 - specifies mode in which device should run. "ip6ip" indicates
779 IPv6-Over-IPv4, "ipip" indicates "IPv4-Over-IPv4", "mplsip" indicates
780 MPLS-Over-IPv4, "any" indicates IPv6, IPv4 or MPLS Over IPv4. Supported for
781 SIT where the default is "ip6ip" and IPIP where the default is "ipip".
782 IPv6-Over-IPv4 is not supported for IPIP.
786 - make this tunnel externally controlled
787 .RB "(e.g. " "ip route encap" ).
793 .IR GRE " or " GRETAP
794 the following additional arguments are supported:
796 .BI "ip link add " DEVICE
797 .BR type " { " gre " | " gretap " }"
798 .BI " remote " ADDR " local " ADDR
800 .RB [ no ] "" [ i | o ] seq
807 .RB [ no ] "" [ i | o ] csum
819 .BR encap " { " fou " | " gue " | " none " }"
821 .BR encap-sport " { " \fIPORT " | " auto " }"
823 .BI "encap-dport " PORT
825 .RB [ no ] encap-csum
827 .RB [ no ] encap-remcsum
835 - specifies the remote address of the tunnel.
839 - specifies the fixed local address for tunneled packets.
840 It must be an address on another interface on this host.
843 .RB [ no ] "" [ i | o ] seq
847 flag enables sequencing of outgoing packets.
850 flag requires that all input packets are serialized.
857 - use keyed GRE with key
859 is either a number or an IPv4 address-like dotted quad.
862 parameter specifies the same key to use in both directions.
864 .BR ikey " and " okey
865 parameters specify different keys for input and output.
868 .RB [ no ] "" [ i | o ] csum
869 - generate/require checksums for tunneled packets.
872 flag calculates checksums for outgoing packets.
875 flag requires that all input packets have the correct
878 flag is equivalent to the combination
883 - specifies the TTL value to use in outgoing packets.
887 - specifies the TOS value to use in outgoing packets.
891 - enables/disables Path MTU Discovery on this tunnel.
892 It is enabled by default. Note that a fixed ttl is incompatible
893 with this option: tunneling with a fixed ttl always makes pmtu
898 - enables/disables IPv4 DF suppression on this tunnel.
899 Normally datagrams that exceed the MTU will be fragmented; the presence
900 of the DF flag inhibits this, resulting instead in an ICMP Unreachable
901 (Fragmentation Required) message. Enabling this attribute causes the
902 DF flag to be ignored.
906 - specifies the physical device to use for tunnel endpoint communication.
909 .BR encap " { " fou " | " gue " | " none " }"
910 - specifies type of secondary UDP encapsulation. "fou" indicates
911 Foo-Over-UDP, "gue" indicates Generic UDP Encapsulation.
914 .BR encap-sport " { " \fIPORT " | " auto " }"
915 - specifies the source port in UDP encapsulation.
917 indicates the port by number, "auto"
918 indicates that the port number should be chosen automatically
919 (the kernel picks a flow based on the flow hash of the
920 encapsulated packet).
923 .RB [ no ] encap-csum
924 - specifies if UDP checksums are enabled in the secondary
928 .RB [ no ] encap-remcsum
929 - specifies if Remote Checksum Offload is enabled. This is only
930 applicable for Generic UDP Encapsulation.
934 - make this tunnel externally controlled
935 .RB "(e.g. " "ip route encap" ).
940 IP6GRE/IP6GRETAP Type Support
943 the following additional arguments are supported:
945 .BI "ip link add " DEVICE
946 .BR type " { " ip6gre " | " ip6gretap " }"
947 .BI remote " ADDR " local " ADDR"
949 .RB [ no ] "" [ i | o ] seq
956 .RB [ no ] "" [ i | o ] csum
960 .BI encaplimit " ELIM "
962 .BI tclass " TCLASS "
964 .BI flowlabel " FLOWLABEL "
968 .BI "[no]allow-localremote"
978 - specifies the remote IPv6 address of the tunnel.
982 - specifies the fixed local IPv6 address for tunneled packets.
983 It must be an address on another interface on this host.
986 .RB [ no ] "" [ i | o ] seq
990 flag enables sequencing of outgoing packets.
993 flag requires that all input packets are serialized.
1000 - use keyed GRE with key
1002 is either a number or an IPv4 address-like dotted quad.
1005 parameter specifies the same key to use in both directions.
1007 .BR ikey " and " okey
1008 parameters specify different keys for input and output.
1011 .RB [ no ] "" [ i | o ] csum
1012 - generate/require checksums for tunneled packets.
1015 flag calculates checksums for outgoing packets.
1018 flag requires that all input packets have the correct
1021 flag is equivalent to the combination
1026 - specifies Hop Limit value to use in outgoing packets.
1029 .BI encaplimit " ELIM"
1030 - specifies a fixed encapsulation limit. Default is 4.
1033 .BI flowlabel " FLOWLABEL"
1034 - specifies a fixed flowlabel.
1037 .BI [no]allow-localremote
1038 - specifies whether to allow remote endpoint to have an address configured on
1042 .BI tclass " TCLASS"
1043 - specifies the traffic class field on
1044 tunneled packets, which can be specified as either a two-digit
1045 hex value (e.g. c0) or a predefined string (e.g. internet).
1048 causes the field to be copied from the original IP header. The
1050 .BI "inherit/" STRING
1052 .BI "inherit/" 00 ".." ff
1053 will set the field to
1057 when tunneling non-IP packets. The default value is 00.
1061 - make this tunnel externally controlled (or not, which is the default).
1062 In the kernel, this is referred to as collect metadata mode. This flag is
1063 mutually exclusive with the
1071 .BR flowlabel " and " tclass
1080 the following additional arguments are supported:
1082 .BI "ip link add " DEVICE " name " NAME
1083 .BR "type ipoib " [ " pkey \fIPKEY" " ] [ " mode " \fIMODE \fR]"
1088 - specifies the IB P-Key to use.
1091 - specifies the mode (datagram or connected) to use.
1097 the following additional arguments are supported:
1099 .BI "ip link add " DEVICE
1100 .BR type " { " erspan " | " ip6erspan " }"
1101 .BI remote " ADDR " local " ADDR " seq
1104 .BR erspan_ver " \fIversion "
1106 .BR erspan " \fIIDX "
1108 .BR erspan_dir " { " \fIingress " | " \fIegress " }"
1110 .BR erspan_hwid " \fIhwid "
1112 .BI "[no]allow-localremote"
1120 - specifies the remote address of the tunnel.
1124 - specifies the fixed local address for tunneled packets.
1125 It must be an address on another interface on this host.
1128 .BR erspan_ver " \fIversion "
1129 - specifies the ERSPAN version number.
1131 indicates the ERSPAN version to be created: 1 for version 1 (type II)
1132 or 2 for version 2 (type III).
1135 .BR erspan " \fIIDX "
1136 - specifies the ERSPAN v1 index field.
1138 indicates a 20 bit index/port number associated with the ERSPAN
1139 traffic's source port and direction.
1142 .BR erspan_dir " { " \fIingress " | " \fIegress " }"
1143 - specifies the ERSPAN v2 mirrored traffic's direction.
1146 .BR erspan_hwid " \fIhwid "
1147 - an unique identifier of an ERSPAN v2 engine within a system.
1149 is a 6-bit value for users to configure.
1152 .BI [no]allow-localremote
1153 - specifies whether to allow remote endpoint to have an address configured on
1158 - make this tunnel externally controlled (or not, which is the default).
1159 In the kernel, this is referred to as collect metadata mode. This flag is
1160 mutually exclusive with the
1165 .BR erspan_dir " and " erspan_hwid
1174 the following additional arguments are supported:
1176 .BI "ip link add " DEVICE
1177 .BI type " geneve " id " VNI " remote " IPADDR"
1185 .BI flowlabel " FLOWLABEL "
1193 .RB [ no ] udp6zerocsumtx
1195 .RB [ no ] udp6zerocsumrx
1201 - specifies the Virtual Network Identifer to use.
1204 .BI remote " IPADDR"
1205 - specifies the unicast destination IP address to use in outgoing packets.
1209 - specifies the TTL value to use in outgoing packets. "0" or "auto" means
1210 use whatever default value, "inherit" means inherit the inner protocol's
1211 ttl. Default option is "0".
1215 - specifies the TOS value to use in outgoing packets.
1219 - specifies the usage of the Don't Fragment flag (DF) bit in outgoing packets
1220 with IPv4 headers. The value
1222 causes the bit to be copied from the original IP header. The values
1226 cause the bit to be always unset or always set, respectively. By default, the
1230 .BI flowlabel " FLOWLABEL"
1231 - specifies the flow label to use in outgoing packets.
1235 - select a destination port other than the default of 6081.
1239 - make this tunnel externally controlled (or not, which is the default). This
1240 flag is mutually exclusive with the
1244 .BR tos " and " flowlabel
1249 - specifies if UDP checksum is calculated for transmitted packets over IPv4.
1252 .RB [ no ] udp6zerocsumtx
1253 - skip UDP checksum calculation for transmitted packets over IPv6.
1256 .RB [ no ] udp6zerocsumrx
1257 - allow incoming UDP packets over IPv6 with zero checksum field.
1262 MACVLAN and MACVTAP Type Support
1267 the following additional arguments are supported:
1269 .BI "ip link add link " DEVICE " name " NAME
1270 .BR type " { " macvlan " | " macvtap " } "
1271 .BR mode " { " private " | " vepa " | " bridge " | " passthru
1272 .RB " [ " nopromisc " ] | " source " } "
1276 .BR type " { " macvlan " | " macvtap " } "
1277 - specifies the link type to use.
1278 .BR macvlan " creates just a virtual interface, while "
1279 .BR macvtap " in addition creates a character device "
1280 .BR /dev/tapX " to be used just like a " tuntap " device."
1283 - Do not allow communication between
1285 instances on the same physical interface, even if the external switch supports
1289 - Virtual Ethernet Port Aggregator mode. Data from one
1291 instance to the other on the same physical interface is transmitted over the
1292 physical interface. Either the attached switch needs to support hairpin mode,
1293 or there must be a TCP/IP router forwarding the packets in order to allow
1294 communication. This is the default mode.
1297 - In bridge mode, all endpoints are directly connected to each other,
1298 communication is not redirected through the physical interface's peer.
1300 .BR mode " " passthru " [ " nopromisc " ] "
1301 - This mode gives more power to a single endpoint, usually in
1302 .BR macvtap " mode. It is not allowed for more than one endpoint on the same "
1303 physical interface. All traffic will be forwarded to this endpoint, allowing
1304 virtio guests to change MAC address or set promiscuous mode in order to bridge
1305 the interface or create vlan interfaces on top of it. By default, this mode
1306 forces the underlying interface into promiscuous mode. Passing the
1307 .BR nopromisc " flag prevents this, so the promisc flag may be controlled "
1308 using standard tools.
1311 - allows one to set a list of allowed mac address, which is used to match
1312 against source mac address from received frames on underlying interface. This
1313 allows creating mac based VLAN associations, instead of standard port or tag
1314 based. The feature is useful to deploy 802.1x mac based behavior,
1315 where drivers of underlying interfaces doesn't allows that.
1319 High-availability Seamless Redundancy (HSR) Support
1322 the following additional arguments are supported:
1324 .BI "ip link add link " DEVICE " name " NAME " type hsr"
1325 .BI slave1 " SLAVE1-IF " slave2 " SLAVE2-IF "
1326 .RB [ " supervision"
1327 .IR ADDR-BYTE " ] ["
1328 .BR version " { " 0 " | " 1 " } ]"
1333 - specifies the link type to use, here HSR.
1335 .BI slave1 " SLAVE1-IF "
1336 - Specifies the physical device used for the first of the two ring ports.
1338 .BI slave2 " SLAVE2-IF "
1339 - Specifies the physical device used for the second of the two ring ports.
1341 .BI supervision " ADDR-BYTE"
1342 - The last byte of the multicast address used for HSR supervision frames.
1343 Default option is "0", possible values 0-255.
1345 .BR version " { " 0 " | " 1 " }"
1346 - Selects the protocol version of the interface. Default option is "0", which
1347 corresponds to the 2010 version of the HSR standard. Option "1" activates the
1355 the following additional arguments are supported:
1357 .BI "ip link add " DEVICE " type bridge "
1359 .BI ageing_time " AGEING_TIME "
1361 .BI group_fwd_mask " MASK "
1363 .BI group_address " ADDRESS "
1365 .BI forward_delay " FORWARD_DELAY "
1367 .BI hello_time " HELLO_TIME "
1369 .BI max_age " MAX_AGE "
1371 .BI stp_state " STP_STATE "
1373 .BI priority " PRIORITY "
1375 .BI vlan_filtering " VLAN_FILTERING "
1377 .BI vlan_protocol " VLAN_PROTOCOL "
1379 .BI vlan_default_pvid " VLAN_DEFAULT_PVID "
1381 .BI vlan_stats_enabled " VLAN_STATS_ENABLED "
1383 .BI mcast_snooping " MULTICAST_SNOOPING "
1385 .BI mcast_router " MULTICAST_ROUTER "
1387 .BI mcast_query_use_ifaddr " MCAST_QUERY_USE_IFADDR "
1389 .BI mcast_querier " MULTICAST_QUERIER "
1391 .BI mcast_hash_elasticity " HASH_ELASTICITY "
1393 .BI mcast_hash_max " HASH_MAX "
1395 .BI mcast_last_member_count " LAST_MEMBER_COUNT "
1397 .BI mcast_startup_query_count " STARTUP_QUERY_COUNT "
1399 .BI mcast_last_member_interval " LAST_MEMBER_INTERVAL "
1401 .BI mcast_membership_interval " MEMBERSHIP_INTERVAL "
1403 .BI mcast_querier_interval " QUERIER_INTERVAL "
1405 .BI mcast_query_interval " QUERY_INTERVAL "
1407 .BI mcast_query_response_interval " QUERY_RESPONSE_INTERVAL "
1409 .BI mcast_startup_query_interval " STARTUP_QUERY_INTERVAL "
1411 .BI mcast_stats_enabled " MCAST_STATS_ENABLED "
1413 .BI mcast_igmp_version " IGMP_VERSION "
1415 .BI mcast_mld_version " MLD_VERSION "
1417 .BI nf_call_iptables " NF_CALL_IPTABLES "
1419 .BI nf_call_ip6tables " NF_CALL_IP6TABLES "
1421 .BI nf_call_arptables " NF_CALL_ARPTABLES "
1426 .BI ageing_time " AGEING_TIME "
1427 - configure the bridge's FDB entries ageing time, ie the number of seconds a MAC address will be kept in the FDB after a packet has been received from that address. after this time has passed, entries are cleaned up.
1429 .BI group_fwd_mask " MASK "
1430 - set the group forward mask. This is the bitmask that is applied to decide whether to forward incoming frames destined to link-local addresses, ie addresses of the form 01:80:C2:00:00:0X (defaults to 0, ie the bridge does not forward any link-local frames).
1432 .BI group_address " ADDRESS "
1433 - set the MAC address of the multicast group this bridge uses for STP. The address must be a link-local address in standard Ethernet MAC address format, ie an address of the form 01:80:C2:00:00:0X, with X in [0, 4..f].
1435 .BI forward_delay " FORWARD_DELAY "
1436 - set the forwarding delay in seconds, ie the time spent in LISTENING state (before moving to LEARNING) and in LEARNING state (before moving to FORWARDING). Only relevant if STP is enabled. Valid values are between 2 and 30.
1438 .BI hello_time " HELLO_TIME "
1439 - set the time in seconds between hello packets sent by the bridge, when it is a root bridge or a designated bridges. Only relevant if STP is enabled. Valid values are between 1 and 10.
1441 .BI max_age " MAX_AGE "
1442 - set the hello packet timeout, ie the time in seconds until another bridge in the spanning tree is assumed to be dead, after reception of its last hello message. Only relevant if STP is enabled. Valid values are between 6 and 40.
1444 .BI stp_state " STP_STATE "
1445 - turn spanning tree protocol on
1446 .RI ( STP_STATE " > 0) "
1448 .RI ( STP_STATE " == 0). "
1451 .BI priority " PRIORITY "
1452 - set this bridge's spanning tree priority, used during STP root bridge election.
1454 is a 16bit unsigned integer.
1456 .BI vlan_filtering " VLAN_FILTERING "
1457 - turn VLAN filtering on
1458 .RI ( VLAN_FILTERING " > 0) "
1460 .RI ( VLAN_FILTERING " == 0). "
1461 When disabled, the bridge will not consider the VLAN tag when handling packets.
1463 .BR vlan_protocol " { " 802.1Q " | " 802.1ad " } "
1464 - set the protocol used for VLAN filtering.
1466 .BI vlan_default_pvid " VLAN_DEFAULT_PVID "
1467 - set the default PVID (native/untagged VLAN ID) for this bridge.
1469 .BI vlan_stats_enabled " VLAN_STATS_ENABLED "
1471 .RI ( VLAN_STATS_ENABLED " == 1) "
1473 .RI ( VLAN_STATS_ENABLED " == 0) "
1474 per-VLAN stats accounting.
1476 .BI mcast_snooping " MULTICAST_SNOOPING "
1477 - turn multicast snooping on
1478 .RI ( MULTICAST_SNOOPING " > 0) "
1480 .RI ( MULTICAST_SNOOPING " == 0). "
1482 .BI mcast_router " MULTICAST_ROUTER "
1483 - set bridge's multicast router if IGMP snooping is enabled.
1485 is an integer value having the following meaning:
1492 - automatic (queried).
1495 - permanently enabled.
1498 .BI mcast_query_use_ifaddr " MCAST_QUERY_USE_IFADDR "
1499 - whether to use the bridge's own IP address as source address for IGMP queries
1500 .RI ( MCAST_QUERY_USE_IFADDR " > 0) "
1501 or the default of 0.0.0.0
1502 .RI ( MCAST_QUERY_USE_IFADDR " == 0). "
1504 .BI mcast_querier " MULTICAST_QUERIER "
1506 .RI ( MULTICAST_QUERIER " > 0) "
1508 .RI ( MULTICAST_QUERIER " == 0) "
1509 IGMP querier, ie sending of multicast queries by the bridge (default: disabled).
1511 .BI mcast_querier_interval " QUERIER_INTERVAL "
1512 - interval between queries sent by other routers. if no queries are seen after this delay has passed, the bridge will start to send its own queries (as if
1516 .BI mcast_hash_elasticity " HASH_ELASTICITY "
1517 - set multicast database hash elasticity, ie the maximum chain length in the multicast hash table (defaults to 4).
1519 .BI mcast_hash_max " HASH_MAX "
1520 - set maximum size of multicast hash table (defaults to 512, value must be a power of 2).
1522 .BI mcast_last_member_count " LAST_MEMBER_COUNT "
1523 - set multicast last member count, ie the number of queries the bridge will send before stopping forwarding a multicast group after a "leave" message has been received (defaults to 2).
1525 .BI mcast_last_member_interval " LAST_MEMBER_INTERVAL "
1526 - interval between queries to find remaining members of a group, after a "leave" message is received.
1528 .BI mcast_startup_query_count " STARTUP_QUERY_COUNT "
1529 - set the number of IGMP queries to send during startup phase (defaults to 2).
1531 .BI mcast_startup_query_interval " STARTUP_QUERY_INTERVAL "
1532 - interval between queries in the startup phase.
1534 .BI mcast_query_interval " QUERY_INTERVAL "
1535 - interval between queries sent by the bridge after the end of the startup phase.
1537 .BI mcast_query_response_interval " QUERY_RESPONSE_INTERVAL "
1538 - set the Max Response Time/Maximum Response Delay for IGMP/MLD queries sent by the bridge.
1540 .BI mcast_membership_interval " MEMBERSHIP_INTERVAL "
1541 - delay after which the bridge will leave a group, if no membership reports for this group are received.
1543 .BI mcast_stats_enabled " MCAST_STATS_ENABLED "
1545 .RI ( MCAST_STATS_ENABLED " > 0) "
1547 .RI ( MCAST_STATS_ENABLED " == 0) "
1548 multicast (IGMP/MLD) stats accounting.
1550 .BI mcast_igmp_version " IGMP_VERSION "
1551 - set the IGMP version.
1553 .BI mcast_mld_version " MLD_VERSION "
1554 - set the MLD version.
1556 .BI nf_call_iptables " NF_CALL_IPTABLES "
1558 .RI ( NF_CALL_IPTABLES " > 0) "
1560 .RI ( NF_CALL_IPTABLES " == 0) "
1561 iptables hooks on the bridge.
1563 .BI nf_call_ip6tables " NF_CALL_IP6TABLES "
1565 .RI ( NF_CALL_IP6TABLES " > 0) "
1567 .RI ( NF_CALL_IP6TABLES " == 0) "
1568 ip6tables hooks on the bridge.
1570 .BI nf_call_arptables " NF_CALL_ARPTABLES "
1572 .RI ( NF_CALL_ARPTABLES " > 0) "
1574 .RI ( NF_CALL_ARPTABLES " == 0) "
1575 arptables hooks on the bridge.
1584 the following additional arguments are supported:
1586 .BI "ip link add link " DEVICE " name " NAME " type macsec"
1588 .BI address " <lladdr>"
1594 .BI cipher " CIPHER_SUITE"
1599 .BR on " | " off " } ] [ "
1600 .BR send_sci " { " on " | " off " } ] ["
1601 .BR end_station " { " on " | " off " } ] ["
1602 .BR scb " { " on " | " off " } ] ["
1603 .BR protect " { " on " | " off " } ] ["
1604 .BR replay " { " on " | " off " }"
1606 .IR 0..2^32-1 " } ] ["
1607 .BR validate " { " strict " | " check " | " disabled " } ] ["
1608 .BR encodingsa " { "
1613 .BI address " <lladdr> "
1614 - sets the system identifier component of secure channel for this MACsec device.
1618 - sets the port number component of secure channel for this MACsec device, in a
1619 range from 1 to 65535 inclusive. Numbers with a leading " 0 " or " 0x " are
1620 interpreted as octal and hexadecimal, respectively.
1624 - sets the secure channel identifier for this MACsec device.
1626 is a 64bit wide number in hexadecimal format.
1629 .BI cipher " CIPHER_SUITE "
1630 - defines the cipher suite to use.
1633 .BI icvlen " LENGTH "
1634 - sets the length of the Integrity Check Value (ICV).
1637 .BR "encrypt on " or " encrypt off"
1638 - switches between authenticated encryption, or authenticity mode only.
1641 .BR "send_sci on " or " send_sci off"
1642 - specifies whether the SCI is included in every packet, or only when it is necessary.
1645 .BR "end_station on " or " end_station off"
1646 - sets the End Station bit.
1649 .BR "scb on " or " scb off"
1650 - sets the Single Copy Broadcast bit.
1653 .BR "protect on " or " protect off"
1654 - enables MACsec protection on the device.
1657 .BR "replay on " or " replay off"
1658 - enables replay protection on the device.
1664 - sets the size of the replay window.
1669 .BR "validate strict " or " validate check " or " validate disabled"
1670 - sets the validation mode on the device.
1673 .BI encodingsa " AN "
1674 - sets the active secure association for transmission.
1682 the following additional arguments are supported:
1684 .BI "ip link add " DEVICE " type vrf table " TABLE
1688 .BR table " table id associated with VRF device"
1696 the following additional arguments are supported:
1698 .BI "ip link add link " DEVICE " name " NAME " type rmnet mux_id " MUXID
1702 .BI mux_id " MUXID "
1703 - specifies the mux identifier for the rmnet device, possible values 1-254.
1707 .SS ip link delete - delete virtual link
1711 specifies the virtual device to act operate on.
1715 specifies the group of virtual links to delete. Group 0 is not allowed to be
1716 deleted since it is the default group.
1720 specifies the type of the device.
1722 .SS ip link set - change device attributes
1726 If multiple parameter changes are requested,
1728 aborts immediately after any of the changes have failed.
1729 This is the only case when
1731 can move the system to an unpredictable state. The solution
1732 is to avoid changing several parameters with one
1739 specifies network device to operate on. When configuring SR-IOV Virtual Function
1740 (VF) devices, this keyword should specify the associated Physical Function (PF)
1746 has a dual role: If both group and dev are present, then move the device to the
1747 specified group. If only a group is specified, then the command operates on
1748 all devices in that group.
1752 change the state of the device to
1758 .BR "arp on " or " arp off"
1764 .BR "multicast on " or " multicast off"
1770 .BR "protodown on " or " protodown off"
1773 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.
1776 .BR "dynamic on " or " dynamic off"
1779 flag on the device. Indicates that address can change when interface goes down (currently
1785 change the name of the device. This operation is not
1786 recommended if the device is running or has some addresses
1790 .BI txqueuelen " NUMBER"
1792 .BI txqlen " NUMBER"
1793 change the transmit queue length of the device.
1802 .BI address " LLADDRESS"
1803 change the station address of the interface.
1806 .BI broadcast " LLADDRESS"
1808 .BI brd " LLADDRESS"
1810 .BI peer " LLADDRESS"
1811 change the link layer broadcast address or the peer address when
1816 .BI netns " NETNSNAME " \fR| " PID"
1817 move the device to the network namespace associated with name
1821 Some devices are not allowed to change network namespace: loopback, bridge,
1822 ppp, wireless. These are network namespace local devices. In such case
1824 tool will return "Invalid argument" error. It is possible to find out if device is local
1825 to a single network namespace by checking
1827 flag in the output of the
1835 To change network namespace for wireless devices the
1837 tool can be used. But it allows to change network namespace only for physical devices and by process
1842 give the device a symbolic name for easy reference.
1846 specify the group the device belongs to.
1847 The available groups are listed in file
1848 .BR "@SYSCONFDIR@/group" .
1852 specify a Virtual Function device to be configured. The associated PF device
1853 must be specified using the
1858 .BI mac " LLADDRESS"
1859 - change the station address for the specified VF. The
1861 parameter must be specified.
1865 - change the assigned VLAN for the specified VF. When specified, all traffic
1866 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
1867 will be filtered for the specified VLAN ID, and will have all VLAN tags
1868 stripped before being passed to the VF. Setting this parameter to 0 disables
1869 VLAN tagging and filtering. The
1871 parameter must be specified.
1875 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
1876 tags transmitted by the VF will include the specified priority bits in the
1877 VLAN tag. If not specified, the value is assumed to be 0. Both the
1881 parameters must be specified. Setting both
1885 as 0 disables VLAN tagging and filtering for the VF.
1888 .BI proto " VLAN-PROTO"
1889 - assign VLAN PROTOCOL for the VLAN tag, either 802.1Q or 802.1ad.
1890 Setting to 802.1ad, all traffic sent from the VF will be tagged with VLAN S-Tag.
1891 Incoming traffic will have VLAN S-Tags stripped before being passed to the VF.
1892 Setting to 802.1ad also enables an option to concatenate another VLAN tag, so both
1893 S-TAG and C-TAG will be inserted/stripped for outgoing/incoming traffic, respectively.
1894 If not specified, the value is assumed to be 802.1Q. Both the
1898 parameters must be specified.
1902 -- change the allowed transmit bandwidth, in Mbps, for the specified VF.
1903 Setting this parameter to 0 disables rate limiting.
1905 parameter must be specified.
1911 .BI max_tx_rate " TXRATE"
1912 - change the allowed maximum transmit bandwidth, in Mbps, for the specified VF.
1913 Setting this parameter to 0 disables rate limiting.
1915 parameter must be specified.
1918 .BI min_tx_rate " TXRATE"
1919 - change the allowed minimum transmit bandwidth, in Mbps, for the specified VF.
1920 Minimum TXRATE should be always <= Maximum TXRATE.
1921 Setting this parameter to 0 disables rate limiting.
1923 parameter must be specified.
1926 .BI spoofchk " on|off"
1927 - turn packet spoof checking on or off for the specified VF.
1929 .BI query_rss " on|off"
1930 - 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.
1932 .BI state " auto|enable|disable"
1933 - set the virtual link state as seen by the specified VF. Setting to auto means a
1934 reflection of the PF link state, enable lets the VF to communicate with other VFs on
1935 this host even if the PF link state is down, disable causes the HW to drop any packets
1939 - trust the specified VF user. This enables that VF user can set a specific feature
1940 which may impact security and/or performance. (e.g. VF multicast promiscuous mode)
1942 .BI node_guid " eui64"
1943 - configure node GUID for Infiniband VFs.
1945 .BI port_guid " eui64"
1946 - configure port GUID for Infiniband VFs.
1950 .B xdp object "|" pinned "|" off
1951 set (or unset) a XDP ("eXpress Data Path") BPF program to run on every
1952 packet at driver level.
1954 output will indicate a
1956 flag for the networking device. If the driver does not have native XDP
1957 support, the kernel will fall back to a slower, driver-independent "generic"
1960 output will in that case indicate
1964 only. If the driver does have native XDP support, but the program is
1966 .B xdpgeneric object "|" pinned
1967 then the kernel will use the generic XDP variant instead of the native one.
1969 has the opposite effect of requestsing that the automatic fallback to the
1970 generic XDP variant be disabled and in case driver is not XDP-capable error
1973 also disables hardware offloads.
1975 in ip link output indicates that the program has been offloaded to hardware
1976 and can also be used to request the "offload" mode, much like
1978 it forces program to be installed specifically in HW/FW of the apater.
1984 - Detaches any currently attached XDP/BPF program from the given device.
1987 - Attaches a XDP/BPF program to the given device. The
1989 points to a BPF ELF file (f.e. generated by LLVM) that contains the BPF
1990 program code, map specifications, etc. If a XDP/BPF program is already
1991 attached to the given device, an error will be thrown. If no XDP/BPF
1992 program is currently attached, the device supports XDP and the program
1993 from the BPF ELF file passes the kernel verifier, then it will be attached
1994 to the device. If the option
1998 then any prior attached XDP/BPF program will be atomically overridden and
1999 no error will be thrown in this case. If no
2001 option is passed, then the default section name ("prog") will be assumed,
2002 otherwise the provided section name will be used. If no
2004 option is passed, then a verifier log will only be dumped on load error.
2007 section for usage examples.
2009 .BI section " NAME "
2010 - Specifies a section name that contains the BPF program code. If no section
2011 name is specified, the default one ("prog") will be used. This option is
2012 to be passed with the
2017 - Act in verbose mode. For example, even in case of success, this will
2018 print the verifier log in case a program was loaded from a BPF ELF file.
2021 - Attaches a XDP/BPF program to the given device. The
2023 points to an already pinned BPF program in the BPF file system. The option
2025 doesn't apply here, but otherwise semantics are the same as with the option
2030 .BI master " DEVICE"
2031 set master device of the device (enslave device).
2035 unset master device of the device (release device).
2038 .BI addrgenmode " eui64|none|stable_secret|random"
2039 set the IPv6 address generation mode
2042 - use a Modified EUI-64 format interface identifier
2045 - disable automatic address generation
2048 - generate the interface identifier based on a preset /proc/sys/net/ipv6/conf/{default,DEVICE}/stable_secret
2051 - like stable_secret, but auto-generate a new random secret if none is set
2055 set peer netnsid for a cross-netns interface
2058 .BI type " ETYPE TYPE_ARGS"
2059 Change type-specific settings. For a list of supported types and arguments refer
2060 to the description of
2062 above. In addition to that, it is possible to manipulate settings to slave
2066 Bridge Slave Support
2067 For a link with master
2069 the following additional arguments are supported:
2071 .B "ip link set type bridge_slave"
2077 .BI priority " PRIO"
2081 .BR guard " { " on " | " off " }"
2083 .BR hairpin " { " on " | " off " }"
2085 .BR fastleave " { " on " | " off " }"
2087 .BR root_block " { " on " | " off " }"
2089 .BR learning " { " on " | " off " }"
2091 .BR flood " { " on " | " off " }"
2093 .BR proxy_arp " { " on " | " off " }"
2095 .BR proxy_arp_wifi " { " on " | " off " }"
2097 .BI mcast_router " MULTICAST_ROUTER"
2099 .BR mcast_fast_leave " { " on " | " off "}"
2101 .BR mcast_flood " { " on " | " off " }"
2103 .BR group_fwd_mask " MASK"
2105 .BR neigh_suppress " { " on " | " off " }"
2107 .BR vlan_tunnel " { " on " | " off " }"
2109 .BR isolated " { " on " | " off " }"
2111 .BR backup_port " DEVICE"
2113 .BR nobackup_port " ]"
2118 - flush bridge slave's fdb dynamic entries.
2123 is a number representing the following states:
2124 .BR 0 " (disabled),"
2125 .BR 1 " (listening),"
2126 .BR 2 " (learning),"
2127 .BR 3 " (forwarding),"
2128 .BR 4 " (blocking)."
2130 .BI priority " PRIO"
2131 - set port priority (allowed values are between 0 and 63, inclusively).
2134 - set port cost (allowed values are between 1 and 65535, inclusively).
2136 .BR guard " { " on " | " off " }"
2137 - block incoming BPDU packets on this port.
2139 .BR hairpin " { " on " | " off " }"
2140 - enable hairpin mode on this port. This will allow incoming packets on this
2141 port to be reflected back.
2143 .BR fastleave " { " on " | " off " }"
2144 - enable multicast fast leave on this port.
2146 .BR root_block " { " on " | " off " }"
2147 - block this port from becoming the bridge's root port.
2149 .BR learning " { " on " | " off " }"
2150 - allow MAC address learning on this port.
2152 .BR flood " { " on " | " off " }"
2153 - open the flood gates on this port, i.e. forward all unicast frames to this
2155 .BR proxy_arp " and " proxy_arp_wifi
2158 .BR proxy_arp " { " on " | " off " }"
2159 - enable proxy ARP on this port.
2161 .BR proxy_arp_wifi " { " on " | " off " }"
2162 - enable proxy ARP on this port which meets extended requirements by IEEE
2163 802.11 and Hotspot 2.0 specifications.
2165 .BI mcast_router " MULTICAST_ROUTER"
2166 - configure this port for having multicast routers attached. A port with a
2167 multicast router will receive all multicast traffic.
2171 to disable multicast routers on this port,
2173 to let the system detect the presence of of routers (this is the default),
2175 to permanently enable multicast traffic forwarding on this port or
2177 to enable multicast routers temporarily on this port, not depending on incoming
2180 .BR mcast_fast_leave " { " on " | " off " }"
2181 - this is a synonym to the
2185 .BR mcast_flood " { " on " | " off " }"
2186 - controls whether a given port will flood multicast traffic for which there is no MDB entry.
2188 .BI group_fwd_mask " MASK "
2189 - set the group forward mask. This is the bitmask that is applied to decide whether to forward incoming frames destined to link-local addresses, ie addresses of the form 01:80:C2:00:00:0X (defaults to 0, ie the bridge does not forward any link-local frames coming on this port).
2191 .BR neigh_suppress " { " on " | " off " }"
2192 - controls whether neigh discovery (arp and nd) proxy and suppression is enabled on the port. By default this flag is off.
2194 .BR vlan_tunnel " { " on " | " off " }"
2195 - controls whether vlan to tunnel mapping is enabled on the port. By default this flag is off.
2197 .BI backup_port " DEVICE"
2198 - if the port loses carrier all traffic will be redirected to the configured backup port
2201 - removes the currently configured backup port
2206 Bonding Slave Support
2207 For a link with master
2209 the following additional arguments are supported:
2211 .B "ip link set type bond_slave"
2219 - set the slave's queue ID (a 16bit unsigned value).
2224 MACVLAN and MACVTAP Support
2225 Modify list of allowed macaddr for link in source mode.
2227 .B "ip link set type { macvlan | macvap } "
2229 .BI macaddr " " "" COMMAND " " MACADDR " ..."
2235 - add MACADDR to allowed list
2238 - replace allowed list
2241 - remove MACADDR from allowed list
2244 - flush whole allowed list
2249 .SS ip link show - display device attributes
2252 .BI dev " NAME " (default)
2254 specifies the network device to show.
2255 If this argument is omitted all devices in the default group are listed.
2260 specifies what group of devices to show.
2264 only display running interfaces.
2267 .BI master " DEVICE "
2269 specifies the master device which enslaves devices to show.
2274 speficies the VRF which enslaves devices to show.
2279 specifies the type of devices to show.
2281 Note that the type name is not checked against the list of supported types -
2282 instead it is sent as-is to the kernel. Later it is used to filter the returned
2283 interface list by comparing it with the relevant attribute in case the kernel
2284 didn't filter already. Therefore any string is accepted, but may lead to empty
2287 .SS ip link xstats - display extended statistics
2292 specifies the type of devices to display extended statistics for.
2294 .SS ip link afstats - display address-family specific statistics
2299 specifies the device to display address-family statistics for.
2301 .SS ip link help - display help
2305 specifies which help of link type to dislpay.
2309 may be a number or a string from the file
2310 .B @SYSCONFDIR@/group
2311 which can be manually filled.
2317 Shows the state of all network interfaces on the system.
2320 ip link show type bridge
2322 Shows the bridge devices.
2325 ip link show type vlan
2327 Shows the vlan devices.
2330 ip link show master br0
2332 Shows devices enslaved by br0
2335 ip link set dev ppp0 mtu 1400
2337 Change the MTU the ppp0 device.
2340 ip link add link eth0 name eth0.10 type vlan id 10
2342 Creates a new vlan device eth0.10 on device eth0.
2345 ip link delete dev eth0.10
2347 Removes vlan device.
2352 Display help for the gre link type.
2355 ip link add name tun1 type ipip remote 192.168.1.1
2356 local 192.168.1.2 ttl 225 encap gue encap-sport auto
2357 encap-dport 5555 encap-csum encap-remcsum
2359 Creates an IPIP that is encapsulated with Generic UDP Encapsulation,
2360 and the outer UDP checksum and remote checksum offload are enabled.
2363 ip link set dev eth0 xdp obj prog.o
2365 Attaches a XDP/BPF program to device eth0, where the program is
2366 located in prog.o, section "prog" (default section). In case a
2367 XDP/BPF program is already attached, throw an error.
2370 ip -force link set dev eth0 xdp obj prog.o sec foo
2372 Attaches a XDP/BPF program to device eth0, where the program is
2373 located in prog.o, section "foo". In case a XDP/BPF program is
2374 already attached, it will be overridden by the new one.
2377 ip -force link set dev eth0 xdp pinned /sys/fs/bpf/foo
2379 Attaches a XDP/BPF program to device eth0, where the program was
2380 previously pinned as an object node into BPF file system under
2384 ip link set dev eth0 xdp off
2386 If a XDP/BPF program is attached on device eth0, detach it and
2387 effectively turn off XDP for device eth0.
2390 ip link add link wpan0 lowpan0 type lowpan
2392 Creates a 6LoWPAN interface named lowpan0 on the underlying
2393 IEEE 802.15.4 device wpan0.
2396 ip link add dev ip6erspan11 type ip6erspan seq key 102
2397 local fc00:100::2 remote fc00:100::1
2398 erspan_ver 2 erspan_dir ingress erspan_hwid 17
2400 Creates a IP6ERSPAN version 2 interface named ip6erspan00.
2411 Original Manpage by Michail Litvak <mci@owl.openwall.com>