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] }
76 .BI "ip link delete " DEVICE
84 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
86 .BR promisc " { " on " | " off " } |"
88 .BR allmulticast " { " on " | " off " } |"
90 .BR dynamic " { " on " | " off " } |"
92 .BR multicast " { " on " | " off " } |"
124 .IR VLAN-QOS " ] ] ["
127 .B spoofchk { on | off } ] [
128 .B state { auto | enable | disable}
140 .RI "[ " DEVICE " | "
145 .SS ip link add - add virtual link
149 specifies the physical device to act operate on.
152 specifies the name of the new virtual device.
155 specifies the type of the new device.
161 - Ethernet Bridge device
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 Controller Area Network 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.
222 specifies the desired index of the new virtual device. The link creation fails, if the index is busy.
228 the following additional arguments are supported:
230 .BI "ip link add " DEVICE
231 .BI type " vxlan " id " ID
234 .RB " ] [ { " group " | " remote " } "
259 - specifies the VXLAN Network Identifer (or VXLAN Segment
263 - specifies the physical device to use for tunnel endpoint communication.
267 - specifies the multicast IP address to join.
268 This parameter cannot be specified with the
274 - specifies the unicast destination IP address to use in outgoing packets
275 when the destination link layer address is not known in the VXLAN device
276 forwarding database. This parameter cannot be specified with the
282 - specifies the source IP address to use in outgoing packets.
286 - specifies the TTL value to use in outgoing packets.
290 - specifies the TOS value to use in outgoing packets.
294 - specifies the range of port numbers to use as UDP
295 source ports to communicate to the remote VXLAN tunnel endpoint.
299 - specifies if unknown source link layer addresses and IP addresses
300 are entered into the VXLAN device forwarding database.
304 - specifies if route short circuit is turned on.
308 - specifies ARP proxy is turned on.
312 - specifies if netlink LLADDR miss notifications are generated.
316 - specifies if netlink IP ADDR miss notifications are generated.
321 IP6GRE/IP6GRETAP Type Support
324 the following additional arguments are supported:
326 .BI "ip link add " DEVICE
327 .BI type " { ip6gre | ip6gretap } " remote " ADDR " local " ADDR
337 .BI encaplimit " ELIM "
339 .BI tclass " TCLASS "
341 .BI flowlabel " FLOWLABEL "
351 - specifies the remote IPv6 address of the tunnel.
355 - specifies the fixed local IPv6 address for tunneled packets.
356 It must be and address on another interface on this host.
363 flag enables sequencing of outgoing packets.
366 flag requires that all input packets are serialized.
370 - use keyed GRE with key
372 is either a number or an IPv4 address-like dotted quad.
375 parameter specifies the same key to use in both directions.
377 .BR ikey " and " okey
378 parameters specify different keys for input and output.
382 - generate/require checksums for tunneled packets.
385 flag calculates checksums for outgoing packets.
388 flag requires that all input packets have the correct
391 flag is equivalent to the combination
396 - specifies Hop Limit value to use in outgoing packets.
399 .BI encaplimit " ELIM"
400 - specifies a fixed encapsulation limit. Default is 4.
403 .BI flowlabel " FLOWLABEL"
404 - specifies a fixed flowlabel.
408 - specifies the traffic class field on
409 tunneled packets, which can be specified as either a two-digit
410 hex value (e.g. c0) or a predefined string (e.g. internet).
413 causes the field to be copied from the original IP header. The
415 .BI "inherit/" STRING
417 .BI "inherit/" 00 ".." ff
418 will set the field to
422 when tunneling non-IP packets. The default value is 00.
426 .SS ip link delete - delete virtual link
428 specifies the virtual device to act operate on.
430 specifies the type of the device.
435 specifies the physical device to act operate on.
437 .SS ip link set - change device attributes
442 specifies network device to operate on. When configuring SR-IOV Virtual Function
443 (VF) devices, this keyword should specify the associated Physical Function (PF)
449 has a dual role: If both group and dev are present, then move the device to the
450 specified group. If only a group is specified, then the command operates on
451 all devices in that group.
455 change the state of the device to
461 .BR "arp on " or " arp off"
467 .BR "multicast on " or " multicast off"
473 .BR "dynamic on " or " dynamic off"
480 change the name of the device. This operation is not
481 recommended if the device is running or has some addresses
485 .BI txqueuelen " NUMBER"
488 change the transmit queue length of the device.
497 .BI address " LLADDRESS"
498 change the station address of the interface.
501 .BI broadcast " LLADDRESS"
505 .BI peer " LLADDRESS"
506 change the link layer broadcast address or the peer address when
512 move the device to the network namespace associated with the process
516 .BI netns " NETNSNAME"
517 move the device to the network namespace associated with name
522 give the device a symbolic name for easy reference.
526 specify the group the device belongs to.
527 The available groups are listed in file
528 .BR "@SYSCONFDIR@/group" .
532 specify a Virtual Function device to be configured. The associated PF device
533 must be specified using the
539 - change the station address for the specified VF. The
541 parameter must be specified.
545 - change the assigned VLAN for the specified VF. When specified, all traffic
546 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
547 will be filtered for the specified VLAN ID, and will have all VLAN tags
548 stripped before being passed to the VF. Setting this parameter to 0 disables
549 VLAN tagging and filtering. The
551 parameter must be specified.
555 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
556 tags transmitted by the VF will include the specified priority bits in the
557 VLAN tag. If not specified, the value is assumed to be 0. Both the
561 parameters must be specified. Setting both
565 as 0 disables VLAN tagging and filtering for the VF.
569 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
570 Setting this parameter to 0 disables rate limiting. The
572 parameter must be specified.
575 .BI spoofchk " on|off"
576 - turn packet spoof checking on or off for the specified VF.
578 .BI state " auto|enable|disable"
579 - set the virtual link state as seen by the specified VF. Setting to auto means a
580 reflection of the PF link state, enable lets the VF to communicate with other VFs on
581 this host even if the PF link state is down, disable causes the HW to drop any packets
587 set master device of the device (enslave device).
591 unset master device of the device (release device).
595 If multiple parameter changes are requested,
597 aborts immediately after any of the changes have failed.
598 This is the only case when
600 can move the system to an unpredictable state. The solution
601 is to avoid changing several parameters with one
605 .SS ip link show - display device attributes
608 .BI dev " NAME " (default)
610 specifies the network device to show.
611 If this argument is omitted all devices in the default group are listed.
616 specifies what group of devices to show.
620 only display running interfaces.
626 Shows the state of all network interfaces on the system.
629 ip link set dev ppp0 mtu 1400
631 Change the MTU the ppp0 device.
634 ip link add link eth0 name eth0.10 type vlan id 10
636 Creates a new vlan device eth0.10 on device eth0.
639 ip link delete dev eth0.10
649 Original Manpage by Michail Litvak <mci@owl.openwall.com>