]> git.proxmox.com Git - mirror_iproute2.git/blame - man/man8/ip-link.8.in
ss: report SK_MEMINFO_BACKLOG
[mirror_iproute2.git] / man / man8 / ip-link.8.in
CommitLineData
761a1e60
CT
1.TH IP\-LINK 8 "20 Dec 2011" "iproute2" "Linux"
2.SH "NAME"
3ip-link \- network device configuration
4.SH "SYNOPSIS"
5.sp
6.ad l
7.in +8
8.ti -8
9.B ip
10.RI "[ " OPTIONS " ]"
11.B link
12.RI " { " COMMAND " | "
13.BR help " }"
14.sp
15
16.ti -8
17.IR OPTIONS " := { "
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] }
24
25.ti -8
9fc56974
AH
26.BI "ip link add"
27.RB "[ " link
28.IR DEVICE " ]"
761a1e60
CT
29.RB "[ " name " ]"
30.I NAME
31.br
32.RB "[ " txqueuelen
33.IR PACKETS " ]"
34.br
35.RB "[ " address
36.IR LLADDR " ]"
37.RB "[ " broadcast
38.IR LLADDR " ]"
39.br
40.RB "[ " mtu
41.IR MTU " ]"
42.br
43.BR type " TYPE"
44.RI "[ " ARGS " ]"
45
46.ti -8
47.IR TYPE " := [ "
48.BR vlan " | " veth " | " vcan " | " dummy " | " ifb " | " macvlan " | " can " | " bridge " ]"
49
50.ti -8
51.BI "ip link delete " DEVICE
52.BI type " TYPE"
53.RI "[ " ARGS " ]"
54
55.ti -8
56.BR "ip link set " {
57.IR DEVICE " | "
58.BI "group " GROUP
59.RB "} { " up " | " down " | " arp " { " on " | " off " } |"
60.br
61.BR promisc " { " on " | " off " } |"
62.br
63.BR allmulticast " { " on " | " off " } |"
64.br
65.BR dynamic " { " on " | " off " } |"
66.br
67.BR multicast " { " on " | " off " } |"
68.br
69.B txqueuelen
70.IR PACKETS " |"
71.br
72.B name
73.IR NEWNAME " |"
74.br
75.B address
76.IR LLADDR " |"
77.B broadcast
78.IR LLADDR " |"
79.br
80.B mtu
81.IR MTU " |"
82.br
83.B netns
84.IR PID " |"
85.br
86.B netns
87.IR NETNSNAME " |"
88.br
89.B alias
90.IR NAME " |"
91.br
92.B vf
93.IR NUM " ["
94.B mac
95.IR LLADDR " ] ["
96.B vlan
97.IR VLANID " [ "
98.B qos
99.IR VLAN-QOS " ] ] ["
100.B rate
101.IR TXRATE " ] ["
102.B spoofchk { on | off }
103] |
104.br
105.B master
106.IR DEVICE
107.br
108.B nomaster
109.BR " }"
110
111
112.ti -8
113.B ip link show
114.RI "[ " DEVICE " | "
115.B group
116.IR GROUP " ]"
117
118.SH "DESCRIPTION"
119.SS ip link add - add virtual link
120
121.TP
122.BI link " DEVICE "
123specifies the physical device to act operate on.
124
125.I NAME
126specifies the name of the new virtual device.
127
128.I TYPE
129specifies the type of the new device.
130.sp
131Link types:
132
133.in +8
134.B vlan
135- 802.1q tagged virtual LAN interface
136.sp
137.B veth
138- Virtual ethernet interface
139.sp
140.B vcan
141- Virtual Local CAN interface
142.sp
143.B dummy
144- Dummy network interface
145.sp
146.B ifb
147- Intermediate Functional Block device
148.sp
149.B macvlan
150- virtual interface base on link layer address (MAC)
151.sp
152.B can
153- Controller Area Network interface
154.sp
155.B bridge
156- Ethernet Bridge device
157.in -8
158
159.SS ip link delete - delete virtual link
160.I DEVICE
161specifies the virtual device to act operate on.
162.I TYPE
163specifies the type of the device.
164
165
166.TP
167.BI dev " DEVICE "
168specifies the physical device to act operate on.
169
170.SS ip link set - change device attributes
171
172.TP
173.BI dev " DEVICE "
174.I DEVICE
175specifies network device to operate on. When configuring SR-IOV Virtual Fuction
176(VF) devices, this keyword should specify the associated Physical Function (PF)
177device.
178
179.TP
180.BI group " GROUP "
181.I GROUP
182has a dual role: If both group and dev are present, then move the device to the
183specified group. If only a group is specified, then the command operates on
184all devices in that group.
185
186.TP
187.BR up " and " down
188change the state of the device to
189.B UP
190or
191.BR "DOWN" .
192
193.TP
194.BR "arp on " or " arp off"
195change the
196.B NOARP
197flag on the device.
198
199.TP
200.BR "multicast on " or " multicast off"
201change the
202.B MULTICAST
203flag on the device.
204
205.TP
206.BR "dynamic on " or " dynamic off"
207change the
208.B DYNAMIC
209flag on the device.
210
211.TP
212.BI name " NAME"
213change the name of the device. This operation is not
214recommended if the device is running or has some addresses
215already configured.
216
217.TP
218.BI txqueuelen " NUMBER"
219.TP
220.BI txqlen " NUMBER"
221change the transmit queue length of the device.
222
223.TP
224.BI mtu " NUMBER"
225change the
226.I MTU
227of the device.
228
229.TP
230.BI address " LLADDRESS"
231change the station address of the interface.
232
233.TP
234.BI broadcast " LLADDRESS"
235.TP
236.BI brd " LLADDRESS"
237.TP
238.BI peer " LLADDRESS"
239change the link layer broadcast address or the peer address when
240the interface is
241.IR "POINTOPOINT" .
242
243.TP
244.BI netns " PID"
245move the device to the network namespace associated with the process
246.IR "PID".
247
248.TP
249.BI netns " NETNSNAME"
250move the device to the network namespace associated with name
251.IR "NETNSNAME".
252
253.TP
254.BI alias " NAME"
255give the device a symbolic name for easy reference.
256
257.TP
258.BI group " GROUP"
259specify the group the device belongs to.
260The available groups are listed in file
261.BR "@SYSCONFDIR@/group" .
262
263.TP
264.BI vf " NUM"
265specify a Virtual Function device to be configured. The associated PF device
266must be specified using the
267.B dev
268parameter.
269
270.in +8
271.BI mac " LLADDRESS"
272- change the station address for the specified VF. The
273.B vf
274parameter must be specified.
275
276.sp
277.BI vlan " VLANID"
278- change the assigned VLAN for the specified VF. When specified, all traffic
279sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
280will be filtered for the specified VLAN ID, and will have all VLAN tags
281stripped before being passed to the VF. Setting this parameter to 0 disables
282VLAN tagging and filtering. The
283.B vf
284parameter must be specified.
285
286.sp
287.BI qos " VLAN-QOS"
288- assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
289tags transmitted by the VF will include the specified priority bits in the
290VLAN tag. If not specified, the value is assumed to be 0. Both the
291.B vf
292and
293.B vlan
294parameters must be specified. Setting both
295.B vlan
296and
297.B qos
298as 0 disables VLAN tagging and filtering for the VF.
299
300.sp
301.BI rate " TXRATE"
302- change the allowed transmit bandwidth, in Mbps, for the specified VF.
303Setting this parameter to 0 disables rate limiting. The
304.B vf
305parameter must be specified.
306
307.sp
308.BI spoofchk " on|off"
309- turn packet spoof checking on or off for the specified VF.
310.in -8
311
312.TP
313.BI master " DEVICE"
314set master device of the device (enslave device).
315
316.TP
317.BI nomaster
318unset master device of the device (release device).
319
320.PP
321.B Warning:
322If multiple parameter changes are requested,
323.B ip
324aborts immediately after any of the changes have failed.
325This is the only case when
326.B ip
327can move the system to an unpredictable state. The solution
328is to avoid changing several parameters with one
329.B ip link set
330call.
331
332.SS ip link show - display device attributes
333
334.TP
335.BI dev " NAME " (default)
336.I NAME
337specifies the network device to show.
338If this argument is omitted all devices in the default group are listed.
339
340.TP
341.BI group " GROUP "
342.I GROUP
343specifies what group of devices to show.
344
345.TP
346.B up
347only display running interfaces.
348
349.SH "EXAMPLES"
350.PP
351ip link show
352.RS 4
353Shows the state of all network interfaces on the system.
354.RE
355.PP
356ip link set dev ppp0 mtu 1400
357.RS 4
358Change the MTU the ppp0 device.
359.RE
360.PP
361ip link add link eth0 name eth0.10 type vlan id 10
362.RS 4
363Creates a new vlan device eth0.10 on device eth0.
364.RE
365.PP
366ip link delete dev eth0.10
367.RS 4
368Removes vlan device.
369.RE
370
371.SH SEE ALSO
372.br
373.BR ip (8)
374
375.SH AUTHOR
376Original Manpage by Michail Litvak <mci@owl.openwall.com>