1 .TH IP\-LINK 8 "20 Dec 2011" "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] }
53 .BR vlan " | " veth " | " vcan " | " dummy " | " ifb " | " macvlan " | " can " | " bridge " | "ipoib" ]"
56 .BI "ip link delete " DEVICE
64 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
66 .BR promisc " { " on " | " off " } |"
68 .BR allmulticast " { " on " | " off " } |"
70 .BR dynamic " { " on " | " off " } |"
72 .BR multicast " { " on " | " off " } |"
104 .IR VLAN-QOS " ] ] ["
107 .B spoofchk { on | off }
119 .RI "[ " DEVICE " | "
124 .SS ip link add - add virtual link
128 specifies the physical device to act operate on.
131 specifies the name of the new virtual device.
134 specifies the type of the new device.
140 - 802.1q tagged virtual LAN interface
143 - Virtual ethernet interface
146 - Virtual Local CAN interface
149 - Dummy network interface
152 - Intermediate Functional Block device
155 - virtual interface base on link layer address (MAC)
158 - Controller Area Network interface
161 - Ethernet Bridge device
164 - IP over Infiniband device
168 .BI numtxqueues " QUEUE_COUNT "
169 specifies the number of transmit queues for new device.
172 .BI numrxqueues " QUEUE_COUNT "
173 specifies the number of receive queues for new device.
175 .SS ip link delete - delete virtual link
177 specifies the virtual device to act operate on.
179 specifies the type of the device.
184 specifies the physical device to act operate on.
186 .SS ip link set - change device attributes
191 specifies network device to operate on. When configuring SR-IOV Virtual Fuction
192 (VF) devices, this keyword should specify the associated Physical Function (PF)
198 has a dual role: If both group and dev are present, then move the device to the
199 specified group. If only a group is specified, then the command operates on
200 all devices in that group.
204 change the state of the device to
210 .BR "arp on " or " arp off"
216 .BR "multicast on " or " multicast off"
222 .BR "dynamic on " or " dynamic off"
229 change the name of the device. This operation is not
230 recommended if the device is running or has some addresses
234 .BI txqueuelen " NUMBER"
237 change the transmit queue length of the device.
246 .BI address " LLADDRESS"
247 change the station address of the interface.
250 .BI broadcast " LLADDRESS"
254 .BI peer " LLADDRESS"
255 change the link layer broadcast address or the peer address when
261 move the device to the network namespace associated with the process
265 .BI netns " NETNSNAME"
266 move the device to the network namespace associated with name
271 give the device a symbolic name for easy reference.
275 specify the group the device belongs to.
276 The available groups are listed in file
277 .BR "@SYSCONFDIR@/group" .
281 specify a Virtual Function device to be configured. The associated PF device
282 must be specified using the
288 - change the station address for the specified VF. The
290 parameter must be specified.
294 - change the assigned VLAN for the specified VF. When specified, all traffic
295 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
296 will be filtered for the specified VLAN ID, and will have all VLAN tags
297 stripped before being passed to the VF. Setting this parameter to 0 disables
298 VLAN tagging and filtering. The
300 parameter must be specified.
304 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
305 tags transmitted by the VF will include the specified priority bits in the
306 VLAN tag. If not specified, the value is assumed to be 0. Both the
310 parameters must be specified. Setting both
314 as 0 disables VLAN tagging and filtering for the VF.
318 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
319 Setting this parameter to 0 disables rate limiting. The
321 parameter must be specified.
324 .BI spoofchk " on|off"
325 - turn packet spoof checking on or off for the specified VF.
330 set master device of the device (enslave device).
334 unset master device of the device (release device).
338 If multiple parameter changes are requested,
340 aborts immediately after any of the changes have failed.
341 This is the only case when
343 can move the system to an unpredictable state. The solution
344 is to avoid changing several parameters with one
348 .SS ip link show - display device attributes
351 .BI dev " NAME " (default)
353 specifies the network device to show.
354 If this argument is omitted all devices in the default group are listed.
359 specifies what group of devices to show.
363 only display running interfaces.
369 Shows the state of all network interfaces on the system.
372 ip link set dev ppp0 mtu 1400
374 Change the MTU the ppp0 device.
377 ip link add link eth0 name eth0.10 type vlan id 10
379 Creates a new vlan device eth0.10 on device eth0.
382 ip link delete dev eth0.10
392 Original Manpage by Michail Litvak <mci@owl.openwall.com>