]> git.proxmox.com Git - mirror_iproute2.git/blame - man/man8/ip-link.8.in
tc: minor cleanup on ingress
[mirror_iproute2.git] / man / man8 / ip-link.8.in
CommitLineData
77987911 1.TH IP\-LINK 8 "13 Dec 2012" "iproute2" "Linux"
761a1e60
CT
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] |
b68d9837 19\fB\-h\fR[\fIuman-readable\fR] |
761a1e60
CT
20\fB\-s\fR[\fItatistics\fR] |
21\fB\-r\fR[\fIesolve\fR] |
22\fB\-f\fR[\fIamily\fR] {
23.BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | "
24\fB\-o\fR[\fIneline\fR] }
25
26.ti -8
9fc56974
AH
27.BI "ip link add"
28.RB "[ " link
29.IR DEVICE " ]"
761a1e60
CT
30.RB "[ " name " ]"
31.I NAME
32.br
33.RB "[ " txqueuelen
34.IR PACKETS " ]"
35.br
36.RB "[ " address
37.IR LLADDR " ]"
38.RB "[ " broadcast
39.IR LLADDR " ]"
40.br
41.RB "[ " mtu
42.IR MTU " ]"
4de8d885
PE
43.RB "[ " index
44.IR IDX " ]"
761a1e60 45.br
d992f3e6
JP
46.RB "[ " numtxqueues
47.IR QUEUE_COUNT " ]"
48.RB "[ " numrxqueues
49.IR QUEUE_COUNT " ]"
50.br
761a1e60
CT
51.BR type " TYPE"
52.RI "[ " ARGS " ]"
53
54.ti -8
55.IR TYPE " := [ "
f1a6f4e9 56.BR bridge " | "
e37a9c73 57.BR bond " | "
f1a6f4e9
SH
58.BR can " | "
59.BR dummy " | "
5c0aec93 60.BR hsr " | "
f1a6f4e9
SH
61.BR ifb " | "
62.BR ipoib " |"
63.BR macvlan " | "
e4c35682 64.BR macvtap " | "
f1a6f4e9
SH
65.BR vcan " | "
66.BR veth " | "
67.BR vlan " | "
77987911
ND
68.BR vxlan " |"
69.BR ip6tnl " |"
70.BR ipip " |"
9abde37c 71.BR sit " |"
72.BR gre " |"
73.BR gretap " |"
74.BR ip6gre " |"
b6d6b5a1
VK
75.BR ip6gretap " |"
76.BR vti " |"
77.BR nlmon " |"
78.BR ipvlan " ]"
761a1e60
CT
79
80.ti -8
7f74cf6d
VK
81.BR "ip link delete " {
82.IR DEVICE " | "
83.BI "group " GROUP
84}
761a1e60
CT
85.BI type " TYPE"
86.RI "[ " ARGS " ]"
87
88.ti -8
89.BR "ip link set " {
90.IR DEVICE " | "
91.BI "group " GROUP
92.RB "} { " up " | " down " | " arp " { " on " | " off " } |"
93.br
94.BR promisc " { " on " | " off " } |"
95.br
96.BR allmulticast " { " on " | " off " } |"
97.br
98.BR dynamic " { " on " | " off " } |"
99.br
100.BR multicast " { " on " | " off " } |"
101.br
102.B txqueuelen
103.IR PACKETS " |"
104.br
105.B name
106.IR NEWNAME " |"
107.br
108.B address
109.IR LLADDR " |"
110.B broadcast
111.IR LLADDR " |"
112.br
113.B mtu
114.IR MTU " |"
115.br
116.B netns
117.IR PID " |"
118.br
119.B netns
120.IR NETNSNAME " |"
121.br
122.B alias
123.IR NAME " |"
124.br
125.B vf
126.IR NUM " ["
127.B mac
128.IR LLADDR " ] ["
129.B vlan
130.IR VLANID " [ "
131.B qos
132.IR VLAN-QOS " ] ] ["
133.B rate
134.IR TXRATE " ] ["
f89a2a05
SC
135.B max_tx_rate
136.IR TXRATE " ] ["
137.B min_tx_rate
138.IR TXRATE " ] ["
63f60e3a
OG
139.B spoofchk { on | off } ] [
140.B state { auto | enable | disable}
761a1e60
CT
141] |
142.br
143.B master
144.IR DEVICE
145.br
146.B nomaster
147.BR " }"
148
149
150.ti -8
151.B ip link show
152.RI "[ " DEVICE " | "
153.B group
1b944148
VK
154.IR GROUP " | "
155.BR up " | "
156.B master
712249d8
VK
157.IR DEVICE " | "
158.B type
159.IR TYPE " ]"
761a1e60 160
1f299e92 161.ti -8
162.B ip link help
163.RI "[ " TYPE " ]"
164
761a1e60
CT
165.SH "DESCRIPTION"
166.SS ip link add - add virtual link
167
168.TP
169.BI link " DEVICE "
170specifies the physical device to act operate on.
171
172.I NAME
173specifies the name of the new virtual device.
174
175.I TYPE
176specifies the type of the new device.
177.sp
178Link types:
179
180.in +8
f1a6f4e9
SH
181.B bridge
182- Ethernet Bridge device
761a1e60 183.sp
cc26a890
JP
184.B bond
185- Bonding device
186.sp
761a1e60
CT
187.B dummy
188- Dummy network interface
189.sp
2f937359 190.B hsr
191- High-availability Seamless Redundancy device
192.sp
761a1e60
CT
193.B ifb
194- Intermediate Functional Block device
195.sp
f1a6f4e9
SH
196.B ipoib
197- IP over Infiniband device
198.sp
761a1e60 199.B macvlan
f1a6f4e9 200- Virtual interface base on link layer address (MAC)
761a1e60 201.sp
e4c35682
RR
202.B macvtap
203- Virtual interface based on link layer address (MAC) and TAP.
204.sp
f1a6f4e9 205.B vcan
2b70fe15 206- Virtual Controller Area Network interface
761a1e60 207.sp
f1a6f4e9
SH
208.B veth
209- Virtual ethernet interface
de038993 210.sp
f1a6f4e9
SH
211.BR vlan
212- 802.1q tagged virtual LAN interface
213.sp
214.BR vxlan
215- Virtual eXtended LAN
77987911
ND
216.sp
217.BR ip6tnl
218- Virtual tunnel interface IPv4|IPv6 over IPv6
219.sp
220.BR ipip
221- Virtual tunnel interface IPv4 over IPv4
222.sp
223.BR sit
224- Virtual tunnel interface IPv6 over IPv4
9abde37c 225.sp
226.BR gre
227- Virtual tunnel interface GRE over IPv4
228.sp
229.BR gretap
d36d9d41 230- Virtual L2 tunnel interface GRE over IPv4
9abde37c 231.sp
232.BR ip6gre
d36d9d41 233- Virtual tunnel interface GRE over IPv6
9abde37c 234.sp
235.BR ip6gretap
d36d9d41 236- Virtual L2 tunnel interface GRE over IPv6
b6d6b5a1
VK
237.sp
238.BR vti
239- Virtual tunnel interface
240.sp
241.BR nlmon
242- Netlink monitoring device
243.sp
244.BR ipvlan
245- Interface for L3 (IPv6/IPv4) based VLANs
761a1e60
CT
246.in -8
247
d992f3e6
JP
248.TP
249.BI numtxqueues " QUEUE_COUNT "
250specifies the number of transmit queues for new device.
251
252.TP
253.BI numrxqueues " QUEUE_COUNT "
254specifies the number of receive queues for new device.
255
4de8d885
PE
256.TP
257.BI index " IDX "
258specifies the desired index of the new virtual device. The link creation fails, if the index is busy.
259
2816a568
TR
260.TP
261VXLAN Type Support
63f60e3a 262For a link of type
2816a568
TR
263.I VXLAN
264the following additional arguments are supported:
265
266.BI "ip link add " DEVICE
f66611d8 267.BI type " vxlan " id " ID"
2816a568
TR
268.R " [ "
269.BI dev " PHYS_DEV "
7cfa3802
AW
270.RB " ] [ { " group " | " remote " } "
271.I IPADDR
2816a568
TR
272.R " ] [ "
273.BI local " IPADDR "
274.R " ] [ "
275.BI ttl " TTL "
276.R " ] [ "
277.BI tos " TOS "
278.R " ] [ "
279.BI port " MIN MAX "
280.R " ] [ "
281.I "[no]learning "
282.R " ] [ "
283.I "[no]proxy "
284.R " ] [ "
285.I "[no]rsc "
286.R " ] [ "
287.I "[no]l2miss "
288.R " ] [ "
289.I "[no]l3miss "
c2fbc57e
ND
290.R " ] [ "
291.BI ageing " SECONDS "
292.R " ] [ "
293.BI maxaddress " NUMBER "
2eb90dc7
TG
294.R " ] [ "
295.B gbp
2816a568
TR
296.R " ]"
297
298.in +8
299.sp
300.BI id " VNI "
301- specifies the VXLAN Network Identifer (or VXLAN Segment
302Identifier) to use.
303
304.BI dev " PHYS_DEV"
305- specifies the physical device to use for tunnel endpoint communication.
306
307.sp
308.BI group " IPADDR"
309- specifies the multicast IP address to join.
7cfa3802
AW
310This parameter cannot be specified with the
311.B remote
312parameter.
313
314.sp
315.BI remote " IPADDR"
316- specifies the unicast destination IP address to use in outgoing packets
317when the destination link layer address is not known in the VXLAN device
a89d5329 318forwarding database. This parameter cannot be specified with the
7cfa3802
AW
319.B group
320parameter.
2816a568
TR
321
322.sp
323.BI local " IPADDR"
324- specifies the source IP address to use in outgoing packets.
325
326.sp
327.BI ttl " TTL"
328- specifies the TTL value to use in outgoing packets.
329
330.sp
331.BI tos " TOS"
332- specifies the TOS value to use in outgoing packets.
333
334.sp
335.BI port " MIN MAX"
336- specifies the range of port numbers to use as UDP
337source ports to communicate to the remote VXLAN tunnel endpoint.
338
339.sp
340.I [no]learning
341- specifies if unknown source link layer addresses and IP addresses
342are entered into the VXLAN device forwarding database.
343
344.sp
345.I [no]rsc
346- specifies if route short circuit is turned on.
347
348.sp
349.I [no]proxy
350- specifies ARP proxy is turned on.
351
352.sp
353.I [no]l2miss
354- specifies if netlink LLADDR miss notifications are generated.
355
356.sp
357.I [no]l3miss
358- specifies if netlink IP ADDR miss notifications are generated.
359
c2fbc57e
ND
360.sp
361.BI ageing " SECONDS"
362- specifies the lifetime in seconds of FDB entries learnt by the kernel.
363
364.sp
365.BI maxaddress " NUMBER"
366- specifies the maximum number of FDB entries.
367
2eb90dc7
TG
368.sp
369.B gbp
370- enables the Group Policy extension (VXLAN-GBP).
371
372.in +4
373Allows to transport group policy context across VXLAN network peers.
374If enabled, includes the mark of a packet in the VXLAN header for outgoing
375packets and fills the packet mark based on the information found in the
376VXLAN header for incomming packets.
377
378Format of upper 16 bits of packet mark (flags);
379
380.in +2
381+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
382.br
383|-|-|-|-|-|-|-|-|-|D|-|-|A|-|-|-|
384.br
385+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
386
387.B D :=
388Don't Learn bit. When set, this bit indicates that the egress
389VTEP MUST NOT learn the source address of the encapsulated frame.
390
391.B A :=
392Indicates that the group policy has already been applied to
393this packet. Policies MUST NOT be applied by devices when the A bit is set.
394.in -2
395
396Format of lower 16 bits of packet mark (policy ID):
397
398.in +2
399+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
400.br
401| Group Policy ID |
402.br
403+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
404.in -2
405
406Example:
407 iptables -A OUTPUT [...] -j MARK --set-mark 0x800FF
408
409.in -4
410
2816a568
TR
411.in -8
412
90f1df71
TH
413.TP
414GRE, IPIP, SIT Type Support
415For a link of types
416.I GRE/IPIP/SIT
417the following additional arguments are supported:
418
419.BI "ip link add " DEVICE
420.BR type " { gre | ipip | sit } "
421.BI " remote " ADDR " local " ADDR
422.R " [ "
423.BR encap " { fou | gue | none } "
424.R " ] [ "
425.BI "encap-sport { " PORT " | auto } "
426.R " ] [ "
427.BI "encap-dport " PORT
428.R " ] [ "
429.I " [no]encap-csum "
430.R " ] [ "
431.I " [no]encap-remcsum "
432.R " ]"
433
434.in +8
435.sp
436.BI remote " ADDR "
437- specifies the remote address of the tunnel.
438
439.sp
440.BI local " ADDR "
441- specifies the fixed local address for tunneled packets.
442It must be an address on another interface on this host.
443
444.sp
445.BR encap " { fou | gue | none } "
446- specifies type of secondary UDP encapsulation. "fou" indicates
447Foo-Over-UDP, "gue" indicates Generic UDP Encapsulation.
448
449.sp
450.BI "encap-sport { " PORT " | auto } "
451- specifies the source port in UDP encapsulation.
452.IR PORT
453indicates the port by number, "auto"
454indicates that the port number should be chosen automatically
455(the kernel picks a flow based on the flow hash of the
456encapsulated packet).
457
458.sp
459.I [no]encap-csum
460- specifies if UDP checksums are enabled in the secondary
461encapsulation.
462
463.sp
464.I [no]encap-remcsum
465- specifies if Remote Checksum Offload is enabled. This is only
466applicable for Generic UDP Encapsulation.
467
468.in -8
469
9abde37c 470.TP
471IP6GRE/IP6GRETAP Type Support
63f60e3a 472For a link of type
9abde37c 473.I IP6GRE/IP6GRETAP
474the following additional arguments are supported:
475
476.BI "ip link add " DEVICE
477.BI type " { ip6gre | ip6gretap } " remote " ADDR " local " ADDR
478.R " [ "
479.I "[i|o]seq]"
480.R " ] [ "
481.I "[i|o]key" KEY
482.R " ] [ "
483.I " [i|o]csum "
484.R " ] [ "
485.BI hoplimit " TTL "
486.R " ] [ "
487.BI encaplimit " ELIM "
488.R " ] [ "
489.BI tclass " TCLASS "
490.R " ] [ "
491.BI flowlabel " FLOWLABEL "
492.R " ] [ "
493.BI "dscp inherit"
494.R " ] [ "
495.BI dev " PHYS_DEV "
496.R " ]"
497
498.in +8
499.sp
500.BI remote " ADDR "
501- specifies the remote IPv6 address of the tunnel.
502
503.sp
504.BI local " ADDR "
505- specifies the fixed local IPv6 address for tunneled packets.
90f1df71 506It must be an address on another interface on this host.
9abde37c 507
508.sp
509.BI [i|o]seq
510- serialize packets.
511The
512.B oseq
513flag enables sequencing of outgoing packets.
514The
515.B iseq
516flag requires that all input packets are serialized.
517
518.sp
519.BI [i|o]key " KEY"
520- use keyed GRE with key
521.IR KEY ". "KEY
522is either a number or an IPv4 address-like dotted quad.
523The
524.B key
525parameter specifies the same key to use in both directions.
526The
527.BR ikey " and " okey
528parameters specify different keys for input and output.
529
530.sp
531.BI [i|o]csum
532- generate/require checksums for tunneled packets.
533The
534.B ocsum
535flag calculates checksums for outgoing packets.
536The
537.B icsum
538flag requires that all input packets have the correct
a89d5329 539checksum. The
9abde37c 540.B csum
541flag is equivalent to the combination
542.BR "icsum ocsum" .
543
544.sp
545.BI hoplimit " TTL"
546- specifies Hop Limit value to use in outgoing packets.
547
548.sp
549.BI encaplimit " ELIM"
a89d5329 550- specifies a fixed encapsulation limit. Default is 4.
9abde37c 551
552.sp
553.BI flowlabel " FLOWLABEL"
63f60e3a 554- specifies a fixed flowlabel.
9abde37c 555
556.sp
557.BI tclass " TCLASS"
558- specifies the traffic class field on
559tunneled packets, which can be specified as either a two-digit
560hex value (e.g. c0) or a predefined string (e.g. internet).
561The value
562.B inherit
563causes the field to be copied from the original IP header. The
564values
565.BI "inherit/" STRING
566or
567.BI "inherit/" 00 ".." ff
568will set the field to
569.I STRING
570or
571.IR 00 ".." ff
572when tunneling non-IP packets. The default value is 00.
573
574.in -8
575
8ca8fac7
OG
576.TP
577IPoIB Type Support
578For a link of type
579.I IPoIB
580the following additional arguments are supported:
581
582.BI "ip link add " DEVICE " name " NAME
583.BI type " ipoib [ " pkey " PKEY ] [" mode " MODE " ]
584
585.in +8
586.sp
587.BI pkey " PKEY "
588- specifies the IB P-Key to use.
589
590.BI mode " MODE "
591- specifies the mode (datagram or connected) to use.
592
761a1e60 593.SS ip link delete - delete virtual link
761a1e60
CT
594
595.TP
596.BI dev " DEVICE "
7f74cf6d
VK
597specifies the virtual device to act operate on.
598
599.TP
600.BI group " GROUP "
601specifies the group of virtual links to delete. Group 0 is not allowed to be
602deleted since it is the default group.
603
604.TP
605.BI type " TYPE "
606specifies the type of the device.
761a1e60
CT
607
608.SS ip link set - change device attributes
609
610.TP
611.BI dev " DEVICE "
612.I DEVICE
6274b0b7 613specifies network device to operate on. When configuring SR-IOV Virtual Function
761a1e60
CT
614(VF) devices, this keyword should specify the associated Physical Function (PF)
615device.
616
617.TP
618.BI group " GROUP "
619.I GROUP
620has a dual role: If both group and dev are present, then move the device to the
a89d5329 621specified group. If only a group is specified, then the command operates on
761a1e60
CT
622all devices in that group.
623
624.TP
625.BR up " and " down
626change the state of the device to
627.B UP
628or
629.BR "DOWN" .
630
631.TP
632.BR "arp on " or " arp off"
633change the
634.B NOARP
635flag on the device.
636
637.TP
638.BR "multicast on " or " multicast off"
639change the
640.B MULTICAST
641flag on the device.
642
643.TP
644.BR "dynamic on " or " dynamic off"
645change the
646.B DYNAMIC
34c8a95c
VK
647flag on the device. Indicates that address can change when interface goes down (currently
648.B NOT
649used by the Linux).
761a1e60
CT
650
651.TP
652.BI name " NAME"
a89d5329 653change the name of the device. This operation is not
761a1e60
CT
654recommended if the device is running or has some addresses
655already configured.
656
657.TP
658.BI txqueuelen " NUMBER"
659.TP
660.BI txqlen " NUMBER"
661change the transmit queue length of the device.
662
663.TP
664.BI mtu " NUMBER"
665change the
666.I MTU
667of the device.
668
669.TP
670.BI address " LLADDRESS"
671change the station address of the interface.
672
673.TP
674.BI broadcast " LLADDRESS"
675.TP
676.BI brd " LLADDRESS"
677.TP
678.BI peer " LLADDRESS"
679change the link layer broadcast address or the peer address when
680the interface is
681.IR "POINTOPOINT" .
682
683.TP
36324eba 684.BI netns " NETNSNAME " \fR| " PID"
761a1e60 685move the device to the network namespace associated with name
36324eba
VK
686.IR "NETNSNAME " or
687.RI process " PID".
688
689Some devices are not allowed to change network namespace: loopback, bridge,
690ppp, wireless. These are network namespace local devices. In such case
691.B ip
692tool will return "Invalid argument" error. It is possible to find out if device is local
693to a single network namespace by checking
694.B netns-local
695flag in the output of the
696.BR ethtool ":"
697
698.in +8
699.B ethtool -k
700.I DEVICE
701.in -8
702
703To change network namespace for wireless devices the
704.B iw
705tool can be used. But it allows to change network namespace only for physical devices and by process
706.IR PID .
761a1e60
CT
707
708.TP
709.BI alias " NAME"
710give the device a symbolic name for easy reference.
711
712.TP
713.BI group " GROUP"
714specify the group the device belongs to.
715The available groups are listed in file
716.BR "@SYSCONFDIR@/group" .
717
718.TP
719.BI vf " NUM"
720specify a Virtual Function device to be configured. The associated PF device
721must be specified using the
722.B dev
723parameter.
724
725.in +8
726.BI mac " LLADDRESS"
727- change the station address for the specified VF. The
728.B vf
729parameter must be specified.
730
731.sp
732.BI vlan " VLANID"
733- change the assigned VLAN for the specified VF. When specified, all traffic
734sent from the VF will be tagged with the specified VLAN ID. Incoming traffic
735will be filtered for the specified VLAN ID, and will have all VLAN tags
736stripped before being passed to the VF. Setting this parameter to 0 disables
737VLAN tagging and filtering. The
738.B vf
739parameter must be specified.
740
741.sp
742.BI qos " VLAN-QOS"
743- assign VLAN QOS (priority) bits for the VLAN tag. When specified, all VLAN
744tags transmitted by the VF will include the specified priority bits in the
745VLAN tag. If not specified, the value is assumed to be 0. Both the
746.B vf
747and
748.B vlan
749parameters must be specified. Setting both
750.B vlan
751and
752.B qos
753as 0 disables VLAN tagging and filtering for the VF.
754
755.sp
756.BI rate " TXRATE"
f89a2a05
SC
757-- change the allowed transmit bandwidth, in Mbps, for the specified VF.
758Setting this parameter to 0 disables rate limiting.
759.B vf
760parameter must be specified.
761Please use new API
762.B "max_tx_rate"
763option instead.
764
765.sp
766.BI max_tx_rate " TXRATE"
767- change the allowed maximum transmit bandwidth, in Mbps, for the specified VF.
768.B vf
769parameter must be specified.
770
771.sp
772.BI min_tx_rate " TXRATE"
773- change the allowed minimum transmit bandwidth, in Mbps, for the specified VF.
774Minimum TXRATE should be always <= Maximum TXRATE.
761a1e60
CT
775.B vf
776parameter must be specified.
777
778.sp
779.BI spoofchk " on|off"
780- turn packet spoof checking on or off for the specified VF.
63f60e3a
OG
781.sp
782.BI state " auto|enable|disable"
783- set the virtual link state as seen by the specified VF. Setting to auto means a
784reflection of the PF link state, enable lets the VF to communicate with other VFs on
785this host even if the PF link state is down, disable causes the HW to drop any packets
786sent by the VF.
761a1e60
CT
787.in -8
788
789.TP
790.BI master " DEVICE"
791set master device of the device (enslave device).
792
793.TP
794.BI nomaster
795unset master device of the device (release device).
796
797.PP
798.B Warning:
799If multiple parameter changes are requested,
800.B ip
801aborts immediately after any of the changes have failed.
802This is the only case when
803.B ip
a89d5329 804can move the system to an unpredictable state. The solution
761a1e60
CT
805is to avoid changing several parameters with one
806.B ip link set
807call.
808
809.SS ip link show - display device attributes
810
811.TP
812.BI dev " NAME " (default)
813.I NAME
814specifies the network device to show.
815If this argument is omitted all devices in the default group are listed.
816
817.TP
818.BI group " GROUP "
819.I GROUP
820specifies what group of devices to show.
821
822.TP
823.B up
824only display running interfaces.
825
1b944148
VK
826.TP
827.BI master " DEVICE "
828.I DEVICE
829specifies the master device which enslaves devices to show.
830
712249d8
VK
831.TP
832.BI type " TYPE "
833.I TYPE
834specifies the type of devices to show.
835
8322d28d 836.TP
1e264abc
SH
837The show command has additional formatting options:
838
8322d28d 839.RS
1e264abc
SH
840.TP
841.BR "\-s" , " \-stats", " \-statistics"
842output more statistics about packet usage.
843
844.TP
845.BR "\-d", " \-details"
846output more detailed information.
847
848.TP
849.BR "\-h", " \-human", " \-human-readble"
850output statistics with human readable values number followed by suffix
851
852.TP
853.BR "\-iec"
854print human readable rates in IEC units (ie. 1K = 1024).
8322d28d 855.RE
b68d9837 856
1f299e92 857.SS ip link help - display help
858
859.PP
860.I "TYPE"
861specifies which help of link type to dislpay.
862
032b4f4d
VK
863.SS
864.I GROUP
865may be a number or a string from the file
866.B /etc/iproute2/group
867which can be manually filled.
868
761a1e60
CT
869.SH "EXAMPLES"
870.PP
871ip link show
872.RS 4
873Shows the state of all network interfaces on the system.
874.RE
875.PP
712249d8
VK
876ip link show type bridge
877.RS 4
878Shows the bridge devices.
879.RE
880.PP
881ip link show type vlan
882.RS 4
883Shows the vlan devices.
884.RE
885.PP
417b2180
VK
886ip link show master br0
887.RS 4
888Shows devices enslaved by br0
889.RE
890.PP
761a1e60
CT
891ip link set dev ppp0 mtu 1400
892.RS 4
893Change the MTU the ppp0 device.
894.RE
895.PP
896ip link add link eth0 name eth0.10 type vlan id 10
897.RS 4
898Creates a new vlan device eth0.10 on device eth0.
899.RE
900.PP
901ip link delete dev eth0.10
902.RS 4
903Removes vlan device.
904.RE
905
1f299e92 906ip link help gre
907.RS 4
908Display help for the gre link type.
90f1df71
TH
909.RE
910.PP
911ip link add name tun1 type ipip remote 192.168.1.1
912local 192.168.1.2 ttl 225 encap gue encap-sport auto
913encap-dport 5555 encap-csum encap-remcsum
914.RS 4
915Creates an IPIP that is encapsulated with Generic UDP Encapsulation,
916and the outer UDP checksum and remote checksum offload are enabled.
917
1f299e92 918.RE
919
761a1e60
CT
920.SH SEE ALSO
921.br
d5910297
VK
922.BR ip (8),
923.BR ip-netns (8)
761a1e60
CT
924
925.SH AUTHOR
926Original Manpage by Michail Litvak <mci@owl.openwall.com>