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\-s\fR[\fItatistics\fR] |
20 \fB\-r\fR[\fIesolve\fR] |
21 \fB\-f\fR[\fIamily\fR] {
22 .BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
23 \fB\-o\fR[\fIneline\fR] }
77 .BI "ip link delete " DEVICE
85 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
87 .BR promisc " { " on " | " off " } |"
89 .BR allmulticast " { " on " | " off " } |"
91 .BR dynamic " { " on " | " off " } |"
93 .BR multicast " { " on " | " off " } |"
125 .IR VLAN-QOS " ] ] ["
132 .B spoofchk { on | off } ] [
133 .B state { auto | enable | disable}
145 .RI "[ " DEVICE " | "
152 .SS ip link add - add virtual link
156 specifies the physical device to act operate on.
159 specifies the name of the new virtual device.
162 specifies the type of the new device.
168 - Ethernet Bridge device
174 - Dummy network interface
177 - High-availability Seamless Redundancy device
180 - Intermediate Functional Block device
183 - IP over Infiniband device
186 - Virtual interface base on link layer address (MAC)
189 - Virtual interface based on link layer address (MAC) and TAP.
192 - Virtual Controller Area Network interface
195 - Virtual ethernet interface
198 - 802.1q tagged virtual LAN interface
201 - Virtual eXtended LAN
204 - Virtual tunnel interface IPv4|IPv6 over IPv6
207 - Virtual tunnel interface IPv4 over IPv4
210 - Virtual tunnel interface IPv6 over IPv4
213 - Virtual tunnel interface GRE over IPv4
216 - Virtual L2 tuunel interface GRE over IPv4
219 - Virtual tuunel interface GRE over IPv6
222 - Virtual L2 tuunel interface GRE over IPv6
226 .BI numtxqueues " QUEUE_COUNT "
227 specifies the number of transmit queues for new device.
230 .BI numrxqueues " QUEUE_COUNT "
231 specifies the number of receive queues for new device.
235 specifies the desired index of the new virtual device. The link creation fails, if the index is busy.
241 the following additional arguments are supported:
243 .BI "ip link add " DEVICE
244 .BI type " vxlan " id " ID
247 .RB " ] [ { " group " | " remote " } "
268 .BI ageing " SECONDS "
270 .BI maxaddress " NUMBER "
276 - specifies the VXLAN Network Identifer (or VXLAN Segment
280 - specifies the physical device to use for tunnel endpoint communication.
284 - specifies the multicast IP address to join.
285 This parameter cannot be specified with the
291 - specifies the unicast destination IP address to use in outgoing packets
292 when the destination link layer address is not known in the VXLAN device
293 forwarding database. This parameter cannot be specified with the
299 - specifies the source IP address to use in outgoing packets.
303 - specifies the TTL value to use in outgoing packets.
307 - specifies the TOS value to use in outgoing packets.
311 - specifies the range of port numbers to use as UDP
312 source ports to communicate to the remote VXLAN tunnel endpoint.
316 - specifies if unknown source link layer addresses and IP addresses
317 are entered into the VXLAN device forwarding database.
321 - specifies if route short circuit is turned on.
325 - specifies ARP proxy is turned on.
329 - specifies if netlink LLADDR miss notifications are generated.
333 - specifies if netlink IP ADDR miss notifications are generated.
336 .BI ageing " SECONDS"
337 - specifies the lifetime in seconds of FDB entries learnt by the kernel.
340 .BI maxaddress " NUMBER"
341 - specifies the maximum number of FDB entries.
346 IP6GRE/IP6GRETAP Type Support
349 the following additional arguments are supported:
351 .BI "ip link add " DEVICE
352 .BI type " { ip6gre | ip6gretap } " remote " ADDR " local " ADDR
362 .BI encaplimit " ELIM "
364 .BI tclass " TCLASS "
366 .BI flowlabel " FLOWLABEL "
376 - specifies the remote IPv6 address of the tunnel.
380 - specifies the fixed local IPv6 address for tunneled packets.
381 It must be and address on another interface on this host.
388 flag enables sequencing of outgoing packets.
391 flag requires that all input packets are serialized.
395 - use keyed GRE with key
397 is either a number or an IPv4 address-like dotted quad.
400 parameter specifies the same key to use in both directions.
402 .BR ikey " and " okey
403 parameters specify different keys for input and output.
407 - generate/require checksums for tunneled packets.
410 flag calculates checksums for outgoing packets.
413 flag requires that all input packets have the correct
416 flag is equivalent to the combination
421 - specifies Hop Limit value to use in outgoing packets.
424 .BI encaplimit " ELIM"
425 - specifies a fixed encapsulation limit. Default is 4.
428 .BI flowlabel " FLOWLABEL"
429 - specifies a fixed flowlabel.
433 - specifies the traffic class field on
434 tunneled packets, which can be specified as either a two-digit
435 hex value (e.g. c0) or a predefined string (e.g. internet).
438 causes the field to be copied from the original IP header. The
440 .BI "inherit/" STRING
442 .BI "inherit/" 00 ".." ff
443 will set the field to
447 when tunneling non-IP packets. The default value is 00.
451 .SS ip link delete - delete virtual link
453 specifies the virtual device to act operate on.
455 specifies the type of the device.
460 specifies the physical device to act operate on.
462 .SS ip link set - change device attributes
467 specifies network device to operate on. When configuring SR-IOV Virtual Function
468 (VF) devices, this keyword should specify the associated Physical Function (PF)
474 has a dual role: If both group and dev are present, then move the device to the
475 specified group. If only a group is specified, then the command operates on
476 all devices in that group.
480 change the state of the device to
486 .BR "arp on " or " arp off"
492 .BR "multicast on " or " multicast off"
498 .BR "dynamic on " or " dynamic off"
505 change the name of the device. This operation is not
506 recommended if the device is running or has some addresses
510 .BI txqueuelen " NUMBER"
513 change the transmit queue length of the device.
522 .BI address " LLADDRESS"
523 change the station address of the interface.
526 .BI broadcast " LLADDRESS"
530 .BI peer " LLADDRESS"
531 change the link layer broadcast address or the peer address when
537 move the device to the network namespace associated with the process
541 .BI netns " NETNSNAME"
542 move the device to the network namespace associated with name
547 give the device a symbolic name for easy reference.
551 specify the group the device belongs to.
552 The available groups are listed in file
553 .BR "@SYSCONFDIR@/group" .
557 specify a Virtual Function device to be configured. The associated PF device
558 must be specified using the
564 - change the station address for the specified VF. The
566 parameter must be specified.
570 - change the assigned VLAN for the specified VF. When specified, all traffic
571 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
572 will be filtered for the specified VLAN ID, and will have all VLAN tags
573 stripped before being passed to the VF. Setting this parameter to 0 disables
574 VLAN tagging and filtering. The
576 parameter must be specified.
580 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
581 tags transmitted by the VF will include the specified priority bits in the
582 VLAN tag. If not specified, the value is assumed to be 0. Both the
586 parameters must be specified. Setting both
590 as 0 disables VLAN tagging and filtering for the VF.
594 -- change the allowed transmit bandwidth, in Mbps, for the specified VF.
595 Setting this parameter to 0 disables rate limiting.
597 parameter must be specified.
603 .BI max_tx_rate " TXRATE"
604 - change the allowed maximum transmit bandwidth, in Mbps, for the specified VF.
606 parameter must be specified.
609 .BI min_tx_rate " TXRATE"
610 - change the allowed minimum transmit bandwidth, in Mbps, for the specified VF.
611 Minimum TXRATE should be always <= Maximum TXRATE.
613 parameter must be specified.
616 .BI spoofchk " on|off"
617 - turn packet spoof checking on or off for the specified VF.
619 .BI state " auto|enable|disable"
620 - set the virtual link state as seen by the specified VF. Setting to auto means a
621 reflection of the PF link state, enable lets the VF to communicate with other VFs on
622 this host even if the PF link state is down, disable causes the HW to drop any packets
628 set master device of the device (enslave device).
632 unset master device of the device (release device).
636 If multiple parameter changes are requested,
638 aborts immediately after any of the changes have failed.
639 This is the only case when
641 can move the system to an unpredictable state. The solution
642 is to avoid changing several parameters with one
646 .SS ip link show - display device attributes
649 .BI dev " NAME " (default)
651 specifies the network device to show.
652 If this argument is omitted all devices in the default group are listed.
657 specifies what group of devices to show.
661 only display running interfaces.
667 Shows the state of all network interfaces on the system.
670 ip link set dev ppp0 mtu 1400
672 Change the MTU the ppp0 device.
675 ip link add link eth0 name eth0.10 type vlan id 10
677 Creates a new vlan device eth0.10 on device eth0.
680 ip link delete dev eth0.10
690 Original Manpage by Michail Litvak <mci@owl.openwall.com>