1 .TH IP\-LINK 8 "13 Dec 2012" "iproute2" "Linux"
3 ip-link \- network device configuration
12 .RI " { " COMMAND " | "
18 \fB\-V\fR[\fIersion\fR] |
19 \fB\-h\fR[\fIuman-readable\fR] |
20 \fB\-s\fR[\fItatistics\fR] |
21 \fB\-r\fR[\fIesolve\fR] |
22 \fB\-f\fR[\fIamily\fR] {
23 .BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
24 \fB\-o\fR[\fIneline\fR] }
78 .BI "ip link delete " DEVICE
86 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
88 .BR promisc " { " on " | " off " } |"
90 .BR allmulticast " { " on " | " off " } |"
92 .BR dynamic " { " on " | " off " } |"
94 .BR multicast " { " on " | " off " } |"
126 .IR VLAN-QOS " ] ] ["
133 .B spoofchk { on | off } ] [
134 .B state { auto | enable | disable}
146 .RI "[ " DEVICE " | "
153 .SS ip link add - add virtual link
157 specifies the physical device to act operate on.
160 specifies the name of the new virtual device.
163 specifies the type of the new device.
169 - Ethernet Bridge device
175 - Dummy network interface
178 - High-availability Seamless Redundancy device
181 - Intermediate Functional Block device
184 - IP over Infiniband device
187 - Virtual interface base on link layer address (MAC)
190 - Virtual interface based on link layer address (MAC) and TAP.
193 - Virtual Controller Area Network interface
196 - Virtual ethernet interface
199 - 802.1q tagged virtual LAN interface
202 - Virtual eXtended LAN
205 - Virtual tunnel interface IPv4|IPv6 over IPv6
208 - Virtual tunnel interface IPv4 over IPv4
211 - Virtual tunnel interface IPv6 over IPv4
214 - Virtual tunnel interface GRE over IPv4
217 - Virtual L2 tuunel interface GRE over IPv4
220 - Virtual tuunel interface GRE over IPv6
223 - Virtual L2 tuunel interface GRE over IPv6
227 .BI numtxqueues " QUEUE_COUNT "
228 specifies the number of transmit queues for new device.
231 .BI numrxqueues " QUEUE_COUNT "
232 specifies the number of receive queues for new device.
236 specifies the desired index of the new virtual device. The link creation fails, if the index is busy.
242 the following additional arguments are supported:
244 .BI "ip link add " DEVICE
245 .BI type " vxlan " id " ID
248 .RB " ] [ { " group " | " remote " } "
269 .BI ageing " SECONDS "
271 .BI maxaddress " NUMBER "
277 - specifies the VXLAN Network Identifer (or VXLAN Segment
281 - specifies the physical device to use for tunnel endpoint communication.
285 - specifies the multicast IP address to join.
286 This parameter cannot be specified with the
292 - specifies the unicast destination IP address to use in outgoing packets
293 when the destination link layer address is not known in the VXLAN device
294 forwarding database. This parameter cannot be specified with the
300 - specifies the source IP address to use in outgoing packets.
304 - specifies the TTL value to use in outgoing packets.
308 - specifies the TOS value to use in outgoing packets.
312 - specifies the range of port numbers to use as UDP
313 source ports to communicate to the remote VXLAN tunnel endpoint.
317 - specifies if unknown source link layer addresses and IP addresses
318 are entered into the VXLAN device forwarding database.
322 - specifies if route short circuit is turned on.
326 - specifies ARP proxy is turned on.
330 - specifies if netlink LLADDR miss notifications are generated.
334 - specifies if netlink IP ADDR miss notifications are generated.
337 .BI ageing " SECONDS"
338 - specifies the lifetime in seconds of FDB entries learnt by the kernel.
341 .BI maxaddress " NUMBER"
342 - specifies the maximum number of FDB entries.
347 IP6GRE/IP6GRETAP Type Support
350 the following additional arguments are supported:
352 .BI "ip link add " DEVICE
353 .BI type " { ip6gre | ip6gretap } " remote " ADDR " local " ADDR
363 .BI encaplimit " ELIM "
365 .BI tclass " TCLASS "
367 .BI flowlabel " FLOWLABEL "
377 - specifies the remote IPv6 address of the tunnel.
381 - specifies the fixed local IPv6 address for tunneled packets.
382 It must be and address on another interface on this host.
389 flag enables sequencing of outgoing packets.
392 flag requires that all input packets are serialized.
396 - use keyed GRE with key
398 is either a number or an IPv4 address-like dotted quad.
401 parameter specifies the same key to use in both directions.
403 .BR ikey " and " okey
404 parameters specify different keys for input and output.
408 - generate/require checksums for tunneled packets.
411 flag calculates checksums for outgoing packets.
414 flag requires that all input packets have the correct
417 flag is equivalent to the combination
422 - specifies Hop Limit value to use in outgoing packets.
425 .BI encaplimit " ELIM"
426 - specifies a fixed encapsulation limit. Default is 4.
429 .BI flowlabel " FLOWLABEL"
430 - specifies a fixed flowlabel.
434 - specifies the traffic class field on
435 tunneled packets, which can be specified as either a two-digit
436 hex value (e.g. c0) or a predefined string (e.g. internet).
439 causes the field to be copied from the original IP header. The
441 .BI "inherit/" STRING
443 .BI "inherit/" 00 ".." ff
444 will set the field to
448 when tunneling non-IP packets. The default value is 00.
452 .SS ip link delete - delete virtual link
454 specifies the virtual device to act operate on.
456 specifies the type of the device.
461 specifies the physical device to act operate on.
463 .SS ip link set - change device attributes
468 specifies network device to operate on. When configuring SR-IOV Virtual Function
469 (VF) devices, this keyword should specify the associated Physical Function (PF)
475 has a dual role: If both group and dev are present, then move the device to the
476 specified group. If only a group is specified, then the command operates on
477 all devices in that group.
481 change the state of the device to
487 .BR "arp on " or " arp off"
493 .BR "multicast on " or " multicast off"
499 .BR "dynamic on " or " dynamic off"
506 change the name of the device. This operation is not
507 recommended if the device is running or has some addresses
511 .BI txqueuelen " NUMBER"
514 change the transmit queue length of the device.
523 .BI address " LLADDRESS"
524 change the station address of the interface.
527 .BI broadcast " LLADDRESS"
531 .BI peer " LLADDRESS"
532 change the link layer broadcast address or the peer address when
538 move the device to the network namespace associated with the process
542 .BI netns " NETNSNAME"
543 move the device to the network namespace associated with name
548 give the device a symbolic name for easy reference.
552 specify the group the device belongs to.
553 The available groups are listed in file
554 .BR "@SYSCONFDIR@/group" .
558 specify a Virtual Function device to be configured. The associated PF device
559 must be specified using the
565 - change the station address for the specified VF. The
567 parameter must be specified.
571 - change the assigned VLAN for the specified VF. When specified, all traffic
572 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
573 will be filtered for the specified VLAN ID, and will have all VLAN tags
574 stripped before being passed to the VF. Setting this parameter to 0 disables
575 VLAN tagging and filtering. The
577 parameter must be specified.
581 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
582 tags transmitted by the VF will include the specified priority bits in the
583 VLAN tag. If not specified, the value is assumed to be 0. Both the
587 parameters must be specified. Setting both
591 as 0 disables VLAN tagging and filtering for the VF.
595 -- change the allowed transmit bandwidth, in Mbps, for the specified VF.
596 Setting this parameter to 0 disables rate limiting.
598 parameter must be specified.
604 .BI max_tx_rate " TXRATE"
605 - change the allowed maximum transmit bandwidth, in Mbps, for the specified VF.
607 parameter must be specified.
610 .BI min_tx_rate " TXRATE"
611 - change the allowed minimum transmit bandwidth, in Mbps, for the specified VF.
612 Minimum TXRATE should be always <= Maximum TXRATE.
614 parameter must be specified.
617 .BI spoofchk " on|off"
618 - turn packet spoof checking on or off for the specified VF.
620 .BI state " auto|enable|disable"
621 - set the virtual link state as seen by the specified VF. Setting to auto means a
622 reflection of the PF link state, enable lets the VF to communicate with other VFs on
623 this host even if the PF link state is down, disable causes the HW to drop any packets
629 set master device of the device (enslave device).
633 unset master device of the device (release device).
637 If multiple parameter changes are requested,
639 aborts immediately after any of the changes have failed.
640 This is the only case when
642 can move the system to an unpredictable state. The solution
643 is to avoid changing several parameters with one
647 .SS ip link show - display device attributes
650 .BI dev " NAME " (default)
652 specifies the network device to show.
653 If this argument is omitted all devices in the default group are listed.
658 specifies what group of devices to show.
662 only display running interfaces.
664 The show command has additional formatting options:
667 .BR "\-s" , " \-stats", " \-statistics"
668 output more statistics about packet usage.
671 .BR "\-d", " \-details"
672 output more detailed information.
675 .BR "\-h", " \-human", " \-human-readble"
676 output statistics with human readable values number followed by suffix
680 print human readable rates in IEC units (ie. 1K = 1024).
686 Shows the state of all network interfaces on the system.
689 ip link set dev ppp0 mtu 1400
691 Change the MTU the ppp0 device.
694 ip link add link eth0 name eth0.10 type vlan id 10
696 Creates a new vlan device eth0.10 on device eth0.
699 ip link delete dev eth0.10
709 Original Manpage by Michail Litvak <mci@owl.openwall.com>