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 }
120 .RI "[ " DEVICE " | "
125 .SS ip link add - add virtual link
129 specifies the physical device to act operate on.
132 specifies the name of the new virtual device.
135 specifies the type of the new device.
141 - 802.1q tagged virtual LAN interface
144 - Virtual ethernet interface
147 - Virtual Local CAN interface
150 - Dummy network interface
153 - Intermediate Functional Block device
156 - virtual interface base on link layer address (MAC)
159 - Controller Area Network interface
162 - Ethernet Bridge device
165 .SS ip link delete - delete virtual link
167 specifies the virtual device to act operate on.
169 specifies the type of the device.
174 specifies the physical device to act operate on.
176 .SS ip link set - change device attributes
181 specifies network device to operate on. When configuring SR-IOV Virtual Fuction
182 (VF) devices, this keyword should specify the associated Physical Function (PF)
188 has a dual role: If both group and dev are present, then move the device to the
189 specified group. If only a group is specified, then the command operates on
190 all devices in that group.
194 change the state of the device to
200 .BR "arp on " or " arp off"
206 .BR "multicast on " or " multicast off"
212 .BR "dynamic on " or " dynamic off"
219 change the name of the device. This operation is not
220 recommended if the device is running or has some addresses
224 .BI txqueuelen " NUMBER"
227 change the transmit queue length of the device.
236 .BI address " LLADDRESS"
237 change the station address of the interface.
240 .BI broadcast " LLADDRESS"
244 .BI peer " LLADDRESS"
245 change the link layer broadcast address or the peer address when
251 move the device to the network namespace associated with the process
255 .BI netns " NETNSNAME"
256 move the device to the network namespace associated with name
261 allows setting link mode which determines which RFC2863 operational state
262 the device will transistion to when it is brought up. Setting
264 mode changes the behaviour so that device goes into DORMANT state instead
265 of UP when driver is ready.
268 .BI state " LINKSTATE"
269 allows setting the operational link state. The values (defined in RFC2863)
270 are: UP, DOWN, TESTING, UNKNOWN, DORMANT, NOTPRESENT, LOWERLAYERDOWN.
273 give the device a symbolic name for easy reference.
277 specify the group the device belongs to.
278 The available groups are listed in file
279 .BR "/etc/iproute2/group" .
283 specify a Virtual Function device to be configured. The associated PF device
284 must be specified using the
290 - change the station address for the specified VF. The
292 parameter must be specified.
296 - change the assigned VLAN for the specified VF. When specified, all traffic
297 sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
298 will be filtered for the specified VLAN ID, and will have all VLAN tags
299 stripped before being passed to the VF. Setting this parameter to 0 disables
300 VLAN tagging and filtering. The
302 parameter must be specified.
306 - assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
307 tags transmitted by the VF will include the specified priority bits in the
308 VLAN tag. If not specified, the value is assumed to be 0. Both the
312 parameters must be specified. Setting both
316 as 0 disables VLAN tagging and filtering for the VF.
320 - change the allowed transmit bandwidth, in Mbps, for the specified VF.
321 Setting this parameter to 0 disables rate limiting. The
323 parameter must be specified.
326 .BI spoofchk " on|off"
327 - turn packet spoof checking on or off for the specified VF.
332 set master device of the device (enslave device).
336 unset master device of the device (release device).
340 If multiple parameter changes are requested,
342 aborts immediately after any of the changes have failed.
343 This is the only case when
345 can move the system to an unpredictable state. The solution
346 is to avoid changing several parameters with one
350 .SS ip link show - display device attributes
353 .BI dev " NAME " (default)
355 specifies the network device to show.
356 If this argument is omitted all devices in the default group are listed.
361 specifies what group of devices to show.
365 only display running interfaces.
371 Shows the state of all network interfaces on the system.
374 ip link set dev ppp0 mtu 1400
376 Change the MTU the ppp0 device.
379 ip link add link eth0 name eth0.10 type vlan id 10
381 Creates a new vlan device eth0.10 on device eth0.
384 ip link delete dev eth0.10
394 Original Manpage by Michail Litvak <mci@owl.openwall.com>