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] }
68 .BI "ip link delete " DEVICE
76 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
78 .BR promisc " { " on " | " off " } |"
80 .BR allmulticast " { " on " | " off " } |"
82 .BR dynamic " { " on " | " off " } |"
84 .BR multicast " { " on " | " off " } |"
116 .IR VLAN-QOS " ] ] ["
119 .B spoofchk { on | off }
131 .RI "[ " DEVICE " | "
136 .SS ip link add - add virtual link
140 specifies the physical device to act operate on.
143 specifies the name of the new virtual device.
146 specifies the type of the new device.
152 - Ethernet Bridge device
155 - Controller Area Network interface
158 - Dummy network interface
161 - Intermediate Functional Block device
164 - IP over Infiniband device
167 - Virtual interface base on link layer address (MAC)
170 - Virtual Local CAN interface
173 - Virtual ethernet interface
176 - 802.1q tagged virtual LAN interface
179 - Virtual eXtended LAN
182 - Virtual tunnel interface IPv4|IPv6 over IPv6
185 - Virtual tunnel interface IPv4 over IPv4
188 - Virtual tunnel interface IPv6 over IPv4
192 .BI numtxqueues " QUEUE_COUNT "
193 specifies the number of transmit queues for new device.
196 .BI numrxqueues " QUEUE_COUNT "
197 specifies the number of receive queues for new device.
199 .SS ip link delete - delete virtual link
201 specifies the virtual device to act operate on.
203 specifies the type of the device.
208 specifies the physical device to act operate on.
210 .SS ip link set - change device attributes
215 specifies network device to operate on. When configuring SR-IOV Virtual Function
216 (VF) devices, this keyword should specify the associated Physical Function (PF)
222 has a dual role: If both group and dev are present, then move the device to the
223 specified group. If only a group is specified, then the command operates on
224 all devices in that group.
228 change the state of the device to
234 .BR "arp on " or " arp off"
240 .BR "multicast on " or " multicast off"
246 .BR "dynamic on " or " dynamic off"
253 change the name of the device. This operation is not
254 recommended if the device is running or has some addresses
258 .BI txqueuelen " NUMBER"
261 change the transmit queue length of the device.
270 .BI address " LLADDRESS"
271 change the station address of the interface.
274 .BI broadcast " LLADDRESS"
278 .BI peer " LLADDRESS"
279 change the link layer broadcast address or the peer address when
285 move the device to the network namespace associated with the process
289 .BI netns " NETNSNAME"
290 move the device to the network namespace associated with name
295 give the device a symbolic name for easy reference.
299 specify the group the device belongs to.
300 The available groups are listed in file
301 .BR "@SYSCONFDIR@/group" .
305 specify a Virtual Function device to be configured. The associated PF device
306 must be specified using the
312 - change the station address for the specified VF. The
314 parameter must be specified.
318 - change the assigned VLAN for the specified VF. When specified, all traffic
319 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
320 will be filtered for the specified VLAN ID, and will have all VLAN tags
321 stripped before being passed to the VF. Setting this parameter to 0 disables
322 VLAN tagging and filtering. The
324 parameter must be specified.
328 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
329 tags transmitted by the VF will include the specified priority bits in the
330 VLAN tag. If not specified, the value is assumed to be 0. Both the
334 parameters must be specified. Setting both
338 as 0 disables VLAN tagging and filtering for the VF.
342 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
343 Setting this parameter to 0 disables rate limiting. The
345 parameter must be specified.
348 .BI spoofchk " on|off"
349 - turn packet spoof checking on or off for the specified VF.
354 set master device of the device (enslave device).
358 unset master device of the device (release device).
362 If multiple parameter changes are requested,
364 aborts immediately after any of the changes have failed.
365 This is the only case when
367 can move the system to an unpredictable state. The solution
368 is to avoid changing several parameters with one
372 .SS ip link show - display device attributes
375 .BI dev " NAME " (default)
377 specifies the network device to show.
378 If this argument is omitted all devices in the default group are listed.
383 specifies what group of devices to show.
387 only display running interfaces.
393 Shows the state of all network interfaces on the system.
396 ip link set dev ppp0 mtu 1400
398 Change the MTU the ppp0 device.
401 ip link add link eth0 name eth0.10 type vlan id 10
403 Creates a new vlan device eth0.10 on device eth0.
406 ip link delete dev eth0.10
416 Original Manpage by Michail Litvak <mci@owl.openwall.com>