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