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 " | "
150 .SS ip link add - add virtual link
154 specifies the physical device to act operate on.
157 specifies the name of the new virtual device.
160 specifies the type of the new device.
166 - Ethernet Bridge device
172 - Dummy network interface
175 - Intermediate Functional Block device
178 - IP over Infiniband device
181 - Virtual interface base on link layer address (MAC)
184 - Virtual interface based on link layer address (MAC) and TAP.
187 - Virtual Controller Area Network interface
190 - Virtual ethernet interface
193 - 802.1q tagged virtual LAN interface
196 - Virtual eXtended LAN
199 - Virtual tunnel interface IPv4|IPv6 over IPv6
202 - Virtual tunnel interface IPv4 over IPv4
205 - Virtual tunnel interface IPv6 over IPv4
208 - Virtual tunnel interface GRE over IPv4
211 - Virtual L2 tuunel interface GRE over IPv4
214 - Virtual tuunel interface GRE over IPv6
217 - Virtual L2 tuunel interface GRE over IPv6
221 .BI numtxqueues " QUEUE_COUNT "
222 specifies the number of transmit queues for new device.
225 .BI numrxqueues " QUEUE_COUNT "
226 specifies the number of receive queues for new device.
230 specifies the desired index of the new virtual device. The link creation fails, if the index is busy.
236 the following additional arguments are supported:
238 .BI "ip link add " DEVICE
239 .BI type " vxlan " id " ID
242 .RB " ] [ { " group " | " remote " } "
267 - specifies the VXLAN Network Identifer (or VXLAN Segment
271 - specifies the physical device to use for tunnel endpoint communication.
275 - specifies the multicast IP address to join.
276 This parameter cannot be specified with the
282 - specifies the unicast destination IP address to use in outgoing packets
283 when the destination link layer address is not known in the VXLAN device
284 forwarding database. This parameter cannot be specified with the
290 - specifies the source IP address to use in outgoing packets.
294 - specifies the TTL value to use in outgoing packets.
298 - specifies the TOS value to use in outgoing packets.
302 - specifies the range of port numbers to use as UDP
303 source ports to communicate to the remote VXLAN tunnel endpoint.
307 - specifies if unknown source link layer addresses and IP addresses
308 are entered into the VXLAN device forwarding database.
312 - specifies if route short circuit is turned on.
316 - specifies ARP proxy is turned on.
320 - specifies if netlink LLADDR miss notifications are generated.
324 - specifies if netlink IP ADDR miss notifications are generated.
329 IP6GRE/IP6GRETAP Type Support
332 the following additional arguments are supported:
334 .BI "ip link add " DEVICE
335 .BI type " { ip6gre | ip6gretap } " remote " ADDR " local " ADDR
345 .BI encaplimit " ELIM "
347 .BI tclass " TCLASS "
349 .BI flowlabel " FLOWLABEL "
359 - specifies the remote IPv6 address of the tunnel.
363 - specifies the fixed local IPv6 address for tunneled packets.
364 It must be and address on another interface on this host.
371 flag enables sequencing of outgoing packets.
374 flag requires that all input packets are serialized.
378 - use keyed GRE with key
380 is either a number or an IPv4 address-like dotted quad.
383 parameter specifies the same key to use in both directions.
385 .BR ikey " and " okey
386 parameters specify different keys for input and output.
390 - generate/require checksums for tunneled packets.
393 flag calculates checksums for outgoing packets.
396 flag requires that all input packets have the correct
399 flag is equivalent to the combination
404 - specifies Hop Limit value to use in outgoing packets.
407 .BI encaplimit " ELIM"
408 - specifies a fixed encapsulation limit. Default is 4.
411 .BI flowlabel " FLOWLABEL"
412 - specifies a fixed flowlabel.
416 - specifies the traffic class field on
417 tunneled packets, which can be specified as either a two-digit
418 hex value (e.g. c0) or a predefined string (e.g. internet).
421 causes the field to be copied from the original IP header. The
423 .BI "inherit/" STRING
425 .BI "inherit/" 00 ".." ff
426 will set the field to
430 when tunneling non-IP packets. The default value is 00.
434 .SS ip link delete - delete virtual link
436 specifies the virtual device to act operate on.
438 specifies the type of the device.
443 specifies the physical device to act operate on.
445 .SS ip link set - change device attributes
450 specifies network device to operate on. When configuring SR-IOV Virtual Function
451 (VF) devices, this keyword should specify the associated Physical Function (PF)
457 has a dual role: If both group and dev are present, then move the device to the
458 specified group. If only a group is specified, then the command operates on
459 all devices in that group.
463 change the state of the device to
469 .BR "arp on " or " arp off"
475 .BR "multicast on " or " multicast off"
481 .BR "dynamic on " or " dynamic off"
488 change the name of the device. This operation is not
489 recommended if the device is running or has some addresses
493 .BI txqueuelen " NUMBER"
496 change the transmit queue length of the device.
505 .BI address " LLADDRESS"
506 change the station address of the interface.
509 .BI broadcast " LLADDRESS"
513 .BI peer " LLADDRESS"
514 change the link layer broadcast address or the peer address when
520 move the device to the network namespace associated with the process
524 .BI netns " NETNSNAME"
525 move the device to the network namespace associated with name
530 give the device a symbolic name for easy reference.
534 specify the group the device belongs to.
535 The available groups are listed in file
536 .BR "@SYSCONFDIR@/group" .
540 specify a Virtual Function device to be configured. The associated PF device
541 must be specified using the
547 - change the station address for the specified VF. The
549 parameter must be specified.
553 - change the assigned VLAN for the specified VF. When specified, all traffic
554 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
555 will be filtered for the specified VLAN ID, and will have all VLAN tags
556 stripped before being passed to the VF. Setting this parameter to 0 disables
557 VLAN tagging and filtering. The
559 parameter must be specified.
563 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
564 tags transmitted by the VF will include the specified priority bits in the
565 VLAN tag. If not specified, the value is assumed to be 0. Both the
569 parameters must be specified. Setting both
573 as 0 disables VLAN tagging and filtering for the VF.
577 -- change the allowed transmit bandwidth, in Mbps, for the specified VF.
578 Setting this parameter to 0 disables rate limiting.
580 parameter must be specified.
586 .BI max_tx_rate " TXRATE"
587 - change the allowed maximum transmit bandwidth, in Mbps, for the specified VF.
589 parameter must be specified.
592 .BI min_tx_rate " TXRATE"
593 - change the allowed minimum transmit bandwidth, in Mbps, for the specified VF.
594 Minimum TXRATE should be always <= Maximum TXRATE.
596 parameter must be specified.
599 .BI spoofchk " on|off"
600 - turn packet spoof checking on or off for the specified VF.
602 .BI state " auto|enable|disable"
603 - set the virtual link state as seen by the specified VF. Setting to auto means a
604 reflection of the PF link state, enable lets the VF to communicate with other VFs on
605 this host even if the PF link state is down, disable causes the HW to drop any packets
611 set master device of the device (enslave device).
615 unset master device of the device (release device).
619 If multiple parameter changes are requested,
621 aborts immediately after any of the changes have failed.
622 This is the only case when
624 can move the system to an unpredictable state. The solution
625 is to avoid changing several parameters with one
629 .SS ip link show - display device attributes
632 .BI dev " NAME " (default)
634 specifies the network device to show.
635 If this argument is omitted all devices in the default group are listed.
640 specifies what group of devices to show.
644 only display running interfaces.
650 Shows the state of all network interfaces on the system.
653 ip link set dev ppp0 mtu 1400
655 Change the MTU the ppp0 device.
658 ip link add link eth0 name eth0.10 type vlan id 10
660 Creates a new vlan device eth0.10 on device eth0.
663 ip link delete dev eth0.10
673 Original Manpage by Michail Litvak <mci@owl.openwall.com>