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] }
48 .BR vlan " | " veth " | " vcan " | " dummy " | " ifb " | " macvlan " | " can " | " bridge " ]"
51 .BI "ip link delete " DEVICE
59 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
61 .BR promisc " { " on " | " off " } |"
63 .BR allmulticast " { " on " | " off " } |"
65 .BR dynamic " { " on " | " off " } |"
67 .BR multicast " { " on " | " off " } |"
102 .B spoofchk { on | off }
114 .RI "[ " DEVICE " | "
119 .SS ip link add - add virtual link
123 specifies the physical device to act operate on.
126 specifies the name of the new virtual device.
129 specifies the type of the new device.
135 - 802.1q tagged virtual LAN interface
138 - Virtual ethernet interface
141 - Virtual Local CAN interface
144 - Dummy network interface
147 - Intermediate Functional Block device
150 - virtual interface base on link layer address (MAC)
153 - Controller Area Network interface
156 - Ethernet Bridge device
159 .SS ip link delete - delete virtual link
161 specifies the virtual device to act operate on.
163 specifies the type of the device.
168 specifies the physical device to act operate on.
170 .SS ip link set - change device attributes
175 specifies network device to operate on. When configuring SR-IOV Virtual Fuction
176 (VF) devices, this keyword should specify the associated Physical Function (PF)
182 has a dual role: If both group and dev are present, then move the device to the
183 specified group. If only a group is specified, then the command operates on
184 all devices in that group.
188 change the state of the device to
194 .BR "arp on " or " arp off"
200 .BR "multicast on " or " multicast off"
206 .BR "dynamic on " or " dynamic off"
213 change the name of the device. This operation is not
214 recommended if the device is running or has some addresses
218 .BI txqueuelen " NUMBER"
221 change the transmit queue length of the device.
230 .BI address " LLADDRESS"
231 change the station address of the interface.
234 .BI broadcast " LLADDRESS"
238 .BI peer " LLADDRESS"
239 change the link layer broadcast address or the peer address when
245 move the device to the network namespace associated with the process
249 .BI netns " NETNSNAME"
250 move the device to the network namespace associated with name
255 give the device a symbolic name for easy reference.
259 specify the group the device belongs to.
260 The available groups are listed in file
261 .BR "@SYSCONFDIR@/group" .
265 specify a Virtual Function device to be configured. The associated PF device
266 must be specified using the
272 - change the station address for the specified VF. The
274 parameter must be specified.
278 - change the assigned VLAN for the specified VF. When specified, all traffic
279 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
280 will be filtered for the specified VLAN ID, and will have all VLAN tags
281 stripped before being passed to the VF. Setting this parameter to 0 disables
282 VLAN tagging and filtering. The
284 parameter must be specified.
288 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
289 tags transmitted by the VF will include the specified priority bits in the
290 VLAN tag. If not specified, the value is assumed to be 0. Both the
294 parameters must be specified. Setting both
298 as 0 disables VLAN tagging and filtering for the VF.
302 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
303 Setting this parameter to 0 disables rate limiting. The
305 parameter must be specified.
308 .BI spoofchk " on|off"
309 - turn packet spoof checking on or off for the specified VF.
314 set master device of the device (enslave device).
318 unset master device of the device (release device).
322 If multiple parameter changes are requested,
324 aborts immediately after any of the changes have failed.
325 This is the only case when
327 can move the system to an unpredictable state. The solution
328 is to avoid changing several parameters with one
332 .SS ip link show - display device attributes
335 .BI dev " NAME " (default)
337 specifies the network device to show.
338 If this argument is omitted all devices in the default group are listed.
343 specifies what group of devices to show.
347 only display running interfaces.
353 Shows the state of all network interfaces on the system.
356 ip link set dev ppp0 mtu 1400
358 Change the MTU the ppp0 device.
361 ip link add link eth0 name eth0.10 type vlan id 10
363 Creates a new vlan device eth0.10 on device eth0.
366 ip link delete dev eth0.10
376 Original Manpage by Michail Litvak <mci@owl.openwall.com>