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] }
74 .BI "ip link delete " DEVICE
82 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
84 .BR promisc " { " on " | " off " } |"
86 .BR allmulticast " { " on " | " off " } |"
88 .BR dynamic " { " on " | " off " } |"
90 .BR multicast " { " on " | " off " } |"
122 .IR VLAN-QOS " ] ] ["
125 .B spoofchk { on | off }
137 .RI "[ " DEVICE " | "
142 .SS ip link add - add virtual link
146 specifies the physical device to act operate on.
149 specifies the name of the new virtual device.
152 specifies the type of the new device.
158 - Ethernet Bridge device
164 - Controller Area Network interface
167 - Dummy network interface
170 - Intermediate Functional Block device
173 - IP over Infiniband device
176 - Virtual interface base on link layer address (MAC)
179 - Virtual Local CAN interface
182 - Virtual ethernet interface
185 - 802.1q tagged virtual LAN interface
188 - Virtual eXtended LAN
191 - Virtual tunnel interface IPv4|IPv6 over IPv6
194 - Virtual tunnel interface IPv4 over IPv4
197 - Virtual tunnel interface IPv6 over IPv4
200 - Virtual tunnel interface GRE over IPv4
203 - Virtual L2 tuunel interface GRE over IPv4
206 - Virtual tuunel interface GRE over IPv6
209 - Virtual L2 tuunel interface GRE over IPv6
213 .BI numtxqueues " QUEUE_COUNT "
214 specifies the number of transmit queues for new device.
217 .BI numrxqueues " QUEUE_COUNT "
218 specifies the number of receive queues for new device.
224 the following additional arguments are supported:
226 .BI "ip link add " DEVICE
227 .BI type " vxlan " id " ID
230 .RB " ] [ { " group " | " remote " } "
255 - specifies the VXLAN Network Identifer (or VXLAN Segment
259 - specifies the physical device to use for tunnel endpoint communication.
263 - specifies the multicast IP address to join.
264 This parameter cannot be specified with the
270 - specifies the unicast destination IP address to use in outgoing packets
271 when the destination link layer address is not known in the VXLAN device
272 forwarding database. This parameter cannot be specified with the
278 - specifies the source IP address to use in outgoing packets.
282 - specifies the TTL value to use in outgoing packets.
286 - specifies the TOS value to use in outgoing packets.
290 - specifies the range of port numbers to use as UDP
291 source ports to communicate to the remote VXLAN tunnel endpoint.
295 - specifies if unknown source link layer addresses and IP addresses
296 are entered into the VXLAN device forwarding database.
300 - specifies if route short circuit is turned on.
304 - specifies ARP proxy is turned on.
308 - specifies if netlink LLADDR miss notifications are generated.
312 - specifies if netlink IP ADDR miss notifications are generated.
317 IP6GRE/IP6GRETAP Type Support
320 the following additional arguments are supported:
322 .BI "ip link add " DEVICE
323 .BI type " { ip6gre | ip6gretap } " remote " ADDR " local " ADDR
333 .BI encaplimit " ELIM "
335 .BI tclass " TCLASS "
337 .BI flowlabel " FLOWLABEL "
347 - specifies the remote IPv6 address of the tunnel.
351 - specifies the fixed local IPv6 address for tunneled packets.
352 It must be and address on another interface on this host.
359 flag enables sequencing of outgoing packets.
362 flag requires that all input packets are serialized.
366 - use keyed GRE with key
368 is either a number or an IPv4 address-like dotted quad.
371 parameter specifies the same key to use in both directions.
373 .BR ikey " and " okey
374 parameters specify different keys for input and output.
378 - generate/require checksums for tunneled packets.
381 flag calculates checksums for outgoing packets.
384 flag requires that all input packets have the correct
387 flag is equivalent to the combination
392 - specifies Hop Limit value to use in outgoing packets.
395 .BI encaplimit " ELIM"
396 - specifies a fixed encapsulation limit. Default is 4.
399 .BI flowlabel " FLOWLABEL"
400 - specifies a fixed flowlabel.
404 - specifies the traffic class field on
405 tunneled packets, which can be specified as either a two-digit
406 hex value (e.g. c0) or a predefined string (e.g. internet).
409 causes the field to be copied from the original IP header. The
411 .BI "inherit/" STRING
413 .BI "inherit/" 00 ".." ff
414 will set the field to
418 when tunneling non-IP packets. The default value is 00.
422 .SS ip link delete - delete virtual link
424 specifies the virtual device to act operate on.
426 specifies the type of the device.
431 specifies the physical device to act operate on.
433 .SS ip link set - change device attributes
438 specifies network device to operate on. When configuring SR-IOV Virtual Function
439 (VF) devices, this keyword should specify the associated Physical Function (PF)
445 has a dual role: If both group and dev are present, then move the device to the
446 specified group. If only a group is specified, then the command operates on
447 all devices in that group.
451 change the state of the device to
457 .BR "arp on " or " arp off"
463 .BR "multicast on " or " multicast off"
469 .BR "dynamic on " or " dynamic off"
476 change the name of the device. This operation is not
477 recommended if the device is running or has some addresses
481 .BI txqueuelen " NUMBER"
484 change the transmit queue length of the device.
493 .BI address " LLADDRESS"
494 change the station address of the interface.
497 .BI broadcast " LLADDRESS"
501 .BI peer " LLADDRESS"
502 change the link layer broadcast address or the peer address when
508 move the device to the network namespace associated with the process
512 .BI netns " NETNSNAME"
513 move the device to the network namespace associated with name
518 give the device a symbolic name for easy reference.
522 specify the group the device belongs to.
523 The available groups are listed in file
524 .BR "@SYSCONFDIR@/group" .
528 specify a Virtual Function device to be configured. The associated PF device
529 must be specified using the
535 - change the station address for the specified VF. The
537 parameter must be specified.
541 - change the assigned VLAN for the specified VF. When specified, all traffic
542 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
543 will be filtered for the specified VLAN ID, and will have all VLAN tags
544 stripped before being passed to the VF. Setting this parameter to 0 disables
545 VLAN tagging and filtering. The
547 parameter must be specified.
551 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
552 tags transmitted by the VF will include the specified priority bits in the
553 VLAN tag. If not specified, the value is assumed to be 0. Both the
557 parameters must be specified. Setting both
561 as 0 disables VLAN tagging and filtering for the VF.
565 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
566 Setting this parameter to 0 disables rate limiting. The
568 parameter must be specified.
571 .BI spoofchk " on|off"
572 - turn packet spoof checking on or off for the specified VF.
577 set master device of the device (enslave device).
581 unset master device of the device (release device).
585 If multiple parameter changes are requested,
587 aborts immediately after any of the changes have failed.
588 This is the only case when
590 can move the system to an unpredictable state. The solution
591 is to avoid changing several parameters with one
595 .SS ip link show - display device attributes
598 .BI dev " NAME " (default)
600 specifies the network device to show.
601 If this argument is omitted all devices in the default group are listed.
606 specifies what group of devices to show.
610 only display running interfaces.
616 Shows the state of all network interfaces on the system.
619 ip link set dev ppp0 mtu 1400
621 Change the MTU the ppp0 device.
624 ip link add link eth0 name eth0.10 type vlan id 10
626 Creates a new vlan device eth0.10 on device eth0.
629 ip link delete dev eth0.10
639 Original Manpage by Michail Litvak <mci@owl.openwall.com>