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] }
73 .BI "ip link delete " DEVICE
81 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
83 .BR promisc " { " on " | " off " } |"
85 .BR allmulticast " { " on " | " off " } |"
87 .BR dynamic " { " on " | " off " } |"
89 .BR multicast " { " on " | " off " } |"
121 .IR VLAN-QOS " ] ] ["
124 .B spoofchk { on | off }
136 .RI "[ " DEVICE " | "
141 .SS ip link add - add virtual link
145 specifies the physical device to act operate on.
148 specifies the name of the new virtual device.
151 specifies the type of the new device.
157 - Ethernet Bridge device
163 - Controller Area Network interface
166 - Dummy network interface
169 - Intermediate Functional Block device
172 - IP over Infiniband device
175 - Virtual interface base on link layer address (MAC)
178 - Virtual Local CAN interface
181 - Virtual ethernet interface
184 - 802.1q tagged virtual LAN interface
187 - Virtual eXtended LAN
190 - Virtual tunnel interface IPv4|IPv6 over IPv6
193 - Virtual tunnel interface IPv4 over IPv4
196 - Virtual tunnel interface IPv6 over IPv4
199 - Virtual tunnel interface GRE over IPv4
202 - Virtual L2 tuunel interface GRE over IPv4
205 - Virtual tuunel interface GRE over IPv6
208 - Virtual L2 tuunel interface GRE over IPv6
212 .BI numtxqueues " QUEUE_COUNT "
213 specifies the number of transmit queues for new device.
216 .BI numrxqueues " QUEUE_COUNT "
217 specifies the number of receive queues for new device.
223 the following additional arguments are supported:
225 .BI "ip link add " DEVICE
226 .BI type " vxlan " id " ID
229 .RB " ] [ { " group " | " remote " } "
254 - specifies the VXLAN Network Identifer (or VXLAN Segment
258 - specifies the physical device to use for tunnel endpoint communication.
262 - specifies the multicast IP address to join.
263 This parameter cannot be specified with the
269 - specifies the unicast destination IP address to use in outgoing packets
270 when the destination link layer address is not known in the VXLAN device
271 forwarding database. This parameter cannot be specified with the
277 - specifies the source IP address to use in outgoing packets.
281 - specifies the TTL value to use in outgoing packets.
285 - specifies the TOS value to use in outgoing packets.
289 - specifies the range of port numbers to use as UDP
290 source ports to communicate to the remote VXLAN tunnel endpoint.
294 - specifies if unknown source link layer addresses and IP addresses
295 are entered into the VXLAN device forwarding database.
299 - specifies if route short circuit is turned on.
303 - specifies ARP proxy is turned on.
307 - specifies if netlink LLADDR miss notifications are generated.
311 - specifies if netlink IP ADDR miss notifications are generated.
316 IP6GRE/IP6GRETAP Type Support
319 the following additional arguments are supported:
321 .BI "ip link add " DEVICE
322 .BI type " { ip6gre | ip6gretap } " remote " ADDR " local " ADDR
332 .BI encaplimit " ELIM "
334 .BI tclass " TCLASS "
336 .BI flowlabel " FLOWLABEL "
346 - specifies the remote IPv6 address of the tunnel.
350 - specifies the fixed local IPv6 address for tunneled packets.
351 It must be and address on another interface on this host.
358 flag enables sequencing of outgoing packets.
361 flag requires that all input packets are serialized.
365 - use keyed GRE with key
367 is either a number or an IPv4 address-like dotted quad.
370 parameter specifies the same key to use in both directions.
372 .BR ikey " and " okey
373 parameters specify different keys for input and output.
377 - generate/require checksums for tunneled packets.
380 flag calculates checksums for outgoing packets.
383 flag requires that all input packets have the correct
386 flag is equivalent to the combination
391 - specifies Hop Limit value to use in outgoing packets.
394 .BI encaplimit " ELIM"
395 - specifies a fixed encapsulation limit. Default is 4.
398 .BI flowlabel " FLOWLABEL"
399 - specifies a fixed flowlabel.
403 - specifies the traffic class field on
404 tunneled packets, which can be specified as either a two-digit
405 hex value (e.g. c0) or a predefined string (e.g. internet).
408 causes the field to be copied from the original IP header. The
410 .BI "inherit/" STRING
412 .BI "inherit/" 00 ".." ff
413 will set the field to
417 when tunneling non-IP packets. The default value is 00.
421 .SS ip link delete - delete virtual link
423 specifies the virtual device to act operate on.
425 specifies the type of the device.
430 specifies the physical device to act operate on.
432 .SS ip link set - change device attributes
437 specifies network device to operate on. When configuring SR-IOV Virtual Function
438 (VF) devices, this keyword should specify the associated Physical Function (PF)
444 has a dual role: If both group and dev are present, then move the device to the
445 specified group. If only a group is specified, then the command operates on
446 all devices in that group.
450 change the state of the device to
456 .BR "arp on " or " arp off"
462 .BR "multicast on " or " multicast off"
468 .BR "dynamic on " or " dynamic off"
475 change the name of the device. This operation is not
476 recommended if the device is running or has some addresses
480 .BI txqueuelen " NUMBER"
483 change the transmit queue length of the device.
492 .BI address " LLADDRESS"
493 change the station address of the interface.
496 .BI broadcast " LLADDRESS"
500 .BI peer " LLADDRESS"
501 change the link layer broadcast address or the peer address when
507 move the device to the network namespace associated with the process
511 .BI netns " NETNSNAME"
512 move the device to the network namespace associated with name
517 give the device a symbolic name for easy reference.
521 specify the group the device belongs to.
522 The available groups are listed in file
523 .BR "@SYSCONFDIR@/group" .
527 specify a Virtual Function device to be configured. The associated PF device
528 must be specified using the
534 - change the station address for the specified VF. The
536 parameter must be specified.
540 - change the assigned VLAN for the specified VF. When specified, all traffic
541 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
542 will be filtered for the specified VLAN ID, and will have all VLAN tags
543 stripped before being passed to the VF. Setting this parameter to 0 disables
544 VLAN tagging and filtering. The
546 parameter must be specified.
550 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
551 tags transmitted by the VF will include the specified priority bits in the
552 VLAN tag. If not specified, the value is assumed to be 0. Both the
556 parameters must be specified. Setting both
560 as 0 disables VLAN tagging and filtering for the VF.
564 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
565 Setting this parameter to 0 disables rate limiting. The
567 parameter must be specified.
570 .BI spoofchk " on|off"
571 - turn packet spoof checking on or off for the specified VF.
576 set master device of the device (enslave device).
580 unset master device of the device (release device).
584 If multiple parameter changes are requested,
586 aborts immediately after any of the changes have failed.
587 This is the only case when
589 can move the system to an unpredictable state. The solution
590 is to avoid changing several parameters with one
594 .SS ip link show - display device attributes
597 .BI dev " NAME " (default)
599 specifies the network device to show.
600 If this argument is omitted all devices in the default group are listed.
605 specifies what group of devices to show.
609 only display running interfaces.
615 Shows the state of all network interfaces on the system.
618 ip link set dev ppp0 mtu 1400
620 Change the MTU the ppp0 device.
623 ip link add link eth0 name eth0.10 type vlan id 10
625 Creates a new vlan device eth0.10 on device eth0.
628 ip link delete dev eth0.10
638 Original Manpage by Michail Litvak <mci@owl.openwall.com>