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] }
26 .BI "ip link add link " DEVICE
46 .BR vlan " | " veth " | " vcan " | " dummy " | " ifb " | " macvlan " | " can " | " bridge " ]"
49 .BI "ip link delete " DEVICE
57 .RB "} { " up " | " down " | " arp " { " on " | " off " } |"
59 .BR promisc " { " on " | " off " } |"
61 .BR allmulticast " { " on " | " off " } |"
63 .BR dynamic " { " on " | " off " } |"
65 .BR multicast " { " on " | " off " } |"
100 .B spoofchk { on | off }
115 .RI "[ " DEVICE " | "
120 .SS ip link add - add virtual link
124 specifies the physical device to act operate on.
127 specifies the name of the new virtual device.
130 specifies the type of the new device.
136 - 802.1q tagged virtual LAN interface
139 - Virtual ethernet interface
142 - Virtual Local CAN interface
145 - Dummy network interface
148 - Intermediate Functional Block device
151 - virtual interface base on link layer address (MAC)
154 - Controller Area Network interface
157 - Ethernet Bridge device
160 .SS ip link delete - delete virtual link
162 specifies the virtual device to act operate on.
164 specifies the type of the device.
169 specifies the physical device to act operate on.
171 .SS ip link set - change device attributes
176 specifies network device to operate on. When configuring SR-IOV Virtual Fuction
177 (VF) devices, this keyword should specify the associated Physical Function (PF)
183 has a dual role: If both group and dev are present, then move the device to the
184 specified group. If only a group is specified, then the command operates on
185 all devices in that group.
189 change the state of the device to
195 .BR "arp on " or " arp off"
201 .BR "multicast on " or " multicast off"
207 .BR "dynamic on " or " dynamic off"
214 change the name of the device. This operation is not
215 recommended if the device is running or has some addresses
219 .BI txqueuelen " NUMBER"
222 change the transmit queue length of the device.
231 .BI address " LLADDRESS"
232 change the station address of the interface.
235 .BI broadcast " LLADDRESS"
239 .BI peer " LLADDRESS"
240 change the link layer broadcast address or the peer address when
246 move the device to the network namespace associated with the process
250 .BI netns " NETNSNAME"
251 move the device to the network namespace associated with name
256 allows setting link mode which determines which RFC2863 operational state
257 the device will transistion to when it is brought up. Setting
259 mode changes the behaviour so that device goes into DORMANT state instead
260 of UP when driver is ready.
264 give the device a symbolic name for easy reference.
268 specify the group the device belongs to.
269 The available groups are listed in file
270 .BR "/etc/iproute2/group" .
274 specify a Virtual Function device to be configured. The associated PF device
275 must be specified using the
281 - change the station address for the specified VF. The
283 parameter must be specified.
287 - change the assigned VLAN for the specified VF. When specified, all traffic
288 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
289 will be filtered for the specified VLAN ID, and will have all VLAN tags
290 stripped before being passed to the VF. Setting this parameter to 0 disables
291 VLAN tagging and filtering. The
293 parameter must be specified.
297 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
298 tags transmitted by the VF will include the specified priority bits in the
299 VLAN tag. If not specified, the value is assumed to be 0. Both the
303 parameters must be specified. Setting both
307 as 0 disables VLAN tagging and filtering for the VF.
311 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
312 Setting this parameter to 0 disables rate limiting. The
314 parameter must be specified.
317 .BI spoofchk " on|off"
318 - turn packet spoof checking on or off for the specified VF.
323 set master device of the device (enslave device).
327 unset master device of the device (release device).
331 If multiple parameter changes are requested,
333 aborts immediately after any of the changes have failed.
334 This is the only case when
336 can move the system to an unpredictable state. The solution
337 is to avoid changing several parameters with one
341 .SS ip link show - display device attributes
344 .BI dev " NAME " (default)
346 specifies the network device to show.
347 If this argument is omitted all devices in the default group are listed.
352 specifies what group of devices to show.
356 only display running interfaces.
362 Shows the state of all network interfaces on the system.
365 ip link set dev ppp0 mtu 1400
367 Change the MTU the ppp0 device.
370 ip link add link eth0 name eth0.10 type vlan id 10
372 Creates a new vlan device eth0.10 on device eth0.
375 ip link delete dev eth0.10
385 Original Manpage by Michail Litvak <mci@owl.openwall.com>