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 " ]"
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
165 .BI numtxqueues " QUEUE_COUNT "
166 specifies the number of transmit queues for new device.
169 .BI numrxqueues " QUEUE_COUNT "
170 specifies the number of receive queues for new device.
172 .SS ip link delete - delete virtual link
174 specifies the virtual device to act operate on.
176 specifies the type of the device.
181 specifies the physical device to act operate on.
183 .SS ip link set - change device attributes
188 specifies network device to operate on. When configuring SR-IOV Virtual Fuction
189 (VF) devices, this keyword should specify the associated Physical Function (PF)
195 has a dual role: If both group and dev are present, then move the device to the
196 specified group. If only a group is specified, then the command operates on
197 all devices in that group.
201 change the state of the device to
207 .BR "arp on " or " arp off"
213 .BR "multicast on " or " multicast off"
219 .BR "dynamic on " or " dynamic off"
226 change the name of the device. This operation is not
227 recommended if the device is running or has some addresses
231 .BI txqueuelen " NUMBER"
234 change the transmit queue length of the device.
243 .BI address " LLADDRESS"
244 change the station address of the interface.
247 .BI broadcast " LLADDRESS"
251 .BI peer " LLADDRESS"
252 change the link layer broadcast address or the peer address when
258 move the device to the network namespace associated with the process
262 .BI netns " NETNSNAME"
263 move the device to the network namespace associated with name
268 give the device a symbolic name for easy reference.
272 specify the group the device belongs to.
273 The available groups are listed in file
274 .BR "@SYSCONFDIR@/group" .
278 specify a Virtual Function device to be configured. The associated PF device
279 must be specified using the
285 - change the station address for the specified VF. The
287 parameter must be specified.
291 - change the assigned VLAN for the specified VF. When specified, all traffic
292 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
293 will be filtered for the specified VLAN ID, and will have all VLAN tags
294 stripped before being passed to the VF. Setting this parameter to 0 disables
295 VLAN tagging and filtering. The
297 parameter must be specified.
301 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
302 tags transmitted by the VF will include the specified priority bits in the
303 VLAN tag. If not specified, the value is assumed to be 0. Both the
307 parameters must be specified. Setting both
311 as 0 disables VLAN tagging and filtering for the VF.
315 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
316 Setting this parameter to 0 disables rate limiting. The
318 parameter must be specified.
321 .BI spoofchk " on|off"
322 - turn packet spoof checking on or off for the specified VF.
327 set master device of the device (enslave device).
331 unset master device of the device (release device).
335 If multiple parameter changes are requested,
337 aborts immediately after any of the changes have failed.
338 This is the only case when
340 can move the system to an unpredictable state. The solution
341 is to avoid changing several parameters with one
345 .SS ip link show - display device attributes
348 .BI dev " NAME " (default)
350 specifies the network device to show.
351 If this argument is omitted all devices in the default group are listed.
356 specifies what group of devices to show.
360 only display running interfaces.
366 Shows the state of all network interfaces on the system.
369 ip link set dev ppp0 mtu 1400
371 Change the MTU the ppp0 device.
374 ip link add link eth0 name eth0.10 type vlan id 10
376 Creates a new vlan device eth0.10 on device eth0.
379 ip link delete dev eth0.10
389 Original Manpage by Michail Litvak <mci@owl.openwall.com>