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