If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.
Property:l2tp (lincmd)
| BoxMatrix >> Shell-Commands >> l2tp (lincmd) | @ BoxMatrix - IRC-Chat - Translate: de es fr it nl pl | 
| News | Selectors | Models | Accessories | Components | Environment | Config | Commands | System | Webif | Software | Develop | Lexicon | Community | Project | Media | 
| Startup-Scr | Hotplug-Scr | BusyBox-Cmds | Bash-Cmds | AVM-Cmds | Chipset-Cmds | Linux-Cmds | Shared-Libs | Kernel-Mods | Research | 
| Name-Collision - multiple objects in this wiki use the name l2tp! 
 | 
Linux-Command
| Command: | l2tp (lincmd) - type Exec | Wiki | Freetz | IPPF | whmf | AVM | Web | 
| Location: | Shell-Commands >> Linux-Commands - Origin: Linux | ||||||
| Path: | Release: /sbin Lab+Rel: /sbin | ||||||
| Properties: | Size: 26.2k - 45.5k - Firmware: 5.58 - 7.32 | ||||||
| Function: | L2TPv3 static unmanaged tunnel configuration. | ||||||
Goto: Examples - Dependencies - Model-Matrix - Symbols - SMW-Browser
Details
l2tp is a L2TPv3 static unmanaged tunnel configurator, a standalone version of ip l2tp and a part of the iproute2 package.
It is used by l2tpv3d and supportdata.
See also the ip-l2tp(8) man page.
Fw 7.29 help:
root@fritz1:/var/mod/root# l2tp help
Usage: ip l2tp add tunnel
          remote ADDR local ADDR
          tunnel_id ID peer_tunnel_id ID
          [ encap { ip | udp } ]
          [ udp_sport PORT ] [ udp_dport PORT ]
          [ debug MASK ]
Usage: ip l2tp add session [ name NAME ]
          tunnel_id ID
          session_id ID peer_session_id ID
          [ cookie HEXSTR ] [ peer_cookie HEXSTR ]
          [ offset OFFSET ] [ peer_offset OFFSET ]
          [ l2spec_type L2SPEC ]
       ip l2tp del tunnel tunnel_id ID
       ip l2tp del session tunnel_id ID session_id ID
       ip l2tp show tunnel [ tunnel_id ID ]
       ip l2tp show session [ tunnel_id ID ] [ session_id ID ]
Where: NAME   := STRING
       ADDR   := { IP_ADDRESS | any }
       PORT   := { 0..65535 }
       ID     := { 1..4294967295 }
       HEXSTR := { 8 or 16 hex digits (4 / 8 bytes) }
       L2SPEC := { none | default }
 Examples
From supportdata fw 7.29:
l2tp show tunnel l2tp show session
From l2tpv3d fw 7.29:
l2tp del tunnel tunnel_id %lu l2tp add tunnel tunnel_id %lu peer_tunnel_id %lu encap ip fd %d l2tp del session tunnel_id %lu session_id %lu l2tp add session name %s tunnel_id %lu session_id %lu peer_session_id %lu offset %hu
Mesh-Master
root@fritz1:/var/mod/root# l2tp show tunnel Tunnel 1003, encap IP From 192.168.178.1 to 192.168.178.2 Peer tunnel 1 Tunnel 1002, encap IP From 192.168.178.1 to 192.168.178.4 Peer tunnel 1 Tunnel 1001, encap IP From 192.168.178.1 to 192.168.178.3 Peer tunnel 1 root@fritz1:/var/mod/root# l2tp show session Session 1003 in tunnel 1003 Peer session 1, tunnel 1 interface name: guest_st3 offset 0, peer offset 0 RX packets:1562 errors:0 TX packets:1130 errors:0 RX bytes:189752 (185.3 Kb) TX bytes:202530 (197.7 Kb) Session 1002 in tunnel 1002 Peer session 1, tunnel 1 interface name: guest_st2 offset 0, peer offset 0 RX packets:0 errors:0 TX packets:6217 errors:0 RX bytes:0 (0.0 b) TX bytes:369325 (360.6 Kb) Session 1001 in tunnel 1001 Peer session 1, tunnel 1 interface name: guest_st1 offset 0, peer offset 0 RX packets:0 errors:0 TX packets:24219 errors:0 RX bytes:0 (0.0 b) TX bytes:1547312 (1.4 Mb)
Mesh-Repeater
root@fritz2:/var/mod/root# l2tp show tunnel Tunnel 1, encap IP From 192.168.178.2 to 192.168.178.1 Peer tunnel 1003 root@fritz2:/var/mod/root# l2tp show session Session 1 in tunnel 1 Peer session 1003, tunnel 1003 interface name: guest_ct1 offset 0, peer offset 0 RX packets:2101 errors:0 TX packets:1570 errors:0 RX bytes:696739 (680.4 Kb) TX bytes:192304 (187.7 Kb)
Dependencies
Daily updated index of all dependencies of this command. Last update: 2025-05-26 06:16 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
| Relation | Typ | Object | Mod | Firmware | Info | Origin | 
|---|---|---|---|---|---|---|
| Depends on | lib | ld.so | 40 | 7.08 - 7.32 | Dynamic linker / loader | Linux | 
| Depends on | lib | libboxnotify.so | 1 | 6.35 | boxnotifyd client API (old) | AVM | 
| Depends on | lib | libc.so | 80 | 5.55 - 7.32 | Standard C library | Linux | 
| Depends on | lib | libgcc_s.so | 43 | 5.55 - 6.93 | GCC low-level runtime library | Linux | 
| Depends on | lib | libz.so | 2 | 7.19 | Zlib compressor / decompressor | Linux | 
| 5 dependencies for this command | ||||||
Model-Matrix
Daily updated index of the presence, path and size of this command for each model. Last update: 2025-05-26 04:32 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.
| Model | Firmware | Path | Size | 
|---|---|---|---|
| FRITZ!Box 3272 (main) | 5.59 - 6.89 | /sbin | 45.2k - 45.5k | 
| FRITZ!Box 3390 (main) | 5.59 - 6.56 | /sbin | 43.3k - 45.4k | 
| FRITZ!Box 3490 (main) | 6.20 - 7.30 | /sbin | 40.9k - 45.4k | 
| FRITZ!Box 4020 | /sbin | 40.9k - 43.3k | |
| FRITZ!Box 4040 | 6.69 - 7.29 | /sbin | 26.2k - 33.3k | 
| FRITZ!Box 4060 | 7.29 - 7.30 | /sbin | 33.3k | 
| FRITZ!Box 5490 (main) | 6.51 - 7.29 | /sbin | 40.9k - 44.9k | 
| FRITZ!Box 5491 (main) | 7.01 - 7.29 | /sbin | 40.9k - 44.9k | 
| FRITZ!Box 5530 Fiber (main) | 7.21 - 7.30 | /sbin | 44.7k | 
| FRITZ!Box 5590 Fiber (main) | 7.29 - 7.30 | /sbin | 33.3k | 
| FRITZ!Box 6320 Cable v1 | 6.03 - 6.04 | /sbin | 32.4k | 
| FRITZ!Box 6320 Cable v2 | 6.21 | /sbin | 32.4k | 
| FRITZ!Box 6360 Cable | 6.04 - 6.51 | /sbin | 32.4k - 32.6k | 
| FRITZ!Box 6430 Cable (atom) | 6.87 - 7.29 | /sbin | 28.0k - 33.2k | 
| FRITZ!Box 6490 Cable (arm) | 6.20 - 6.64 | /sbin | 32.4k - 32.6k | 
| FRITZ!Box 6490 Cable (atom) | 6.20 - 7.24 | /sbin | 28.0k - 33.2k | 
| FRITZ!Box 6590 Cable (atom) | 6.83 - 7.29 | /sbin | 28.0k - 33.2k | 
| FRITZ!Box 6591 Cable (arm) | 7.04 - 7.08 | /sbin | 28.7k - 33.3k | 
| FRITZ!Box 6591 Cable (atom) | 7.04 - 7.29 | /sbin | 28.7k - 33.3k | 
| FRITZ!Box 6660 Cable (atom) | 7.14 - 7.29 | /sbin | 29.5k - 33.3k | 
| FRITZ!Box 6690 Cable (atom) | 7.28 - 7.29 | /sbin | 33.3k | 
| FRITZ!Box 6810 LTE | 6.35 | /sbin | 45.2k - 45.4k | 
| FRITZ!Box 6820 LTE v1 (main) | 6.40 - 7.30 | /sbin | 40.9k - 45.5k | 
| FRITZ!Box 6820 LTE v2 (main) | 6.40 - 7.30 | /sbin | 40.9k - 45.5k | 
| FRITZ!Box 6820 LTE v3 (main) | 7.19 - 7.29 | /sbin | 44.9k | 
| FRITZ!Box 6840 LTE (main) | 6.01 - 6.88 | /sbin | 43.3k - 45.4k | 
| FRITZ!Box 6842 LTE | /sbin | 45.2k - 45.4k | |
| FRITZ!Box 6850 5G | 7.24 - 7.30 | /sbin | 33.3k | 
| FRITZ!Box 6850 LTE | 7.21 - 7.29 | /sbin | 33.3k - 44.7k | 
| FRITZ!Box 6890 LTE (main) | 6.84 - 7.29 | /sbin | 40.8k - 44.8k | 
| FRITZ!Box 6890 LTE v1 (main) | 6.84 - 7.29 | /sbin | 40.8k - 44.8k | 
| FRITZ!Box 6890 LTE v2 (main) | 6.84 - 7.29 | /sbin | 40.8k - 44.8k | 
| FRITZ!Box 7272 (main) | 5.59 - 6.88 | /sbin | 45.2k - 45.5k | 
| FRITZ!Box 7312 | 6.01 - 6.30 | /sbin | 45.2k - 45.4k | 
| FRITZ!Box 7330 | 5.59 - 6.30 | /sbin | 45.2k - 45.4k | 
| FRITZ!Box 7330 SL | 5.59 - 6.30 | /sbin | 45.2k - 45.4k | 
| FRITZ!Box 7362 SL (main) | 5.60 - 7.18 | /sbin | 40.9k - 45.4k | 
| FRITZ!Box 7369 (main) | 6.30 - 6.32 | /sbin | 45.4k | 
| FRITZ!Box 7412 (main) | 6.21 - 6.88 | /sbin | 43.3k - 45.4k | 
| FRITZ!Box 7430 (main) | 6.26 - 7.31 | /sbin | 40.9k - 45.5k | 
| FRITZ!Box 7490 (main) | 5.58 - 7.29 | /sbin | 40.9k - 45.5k | 
| FRITZ!Box 7510 | 7.30 | /sbin | 33.3k | 
| FRITZ!Box 7520 | 6.98 - 7.29 | /sbin | 26.2k - 33.3k | 
| FRITZ!Box 7520 v2 (main) | 7.30 - 7.31 | /sbin | 33.3k | 
| FRITZ!Box 7530 | 6.98 - 7.29 | /sbin | 26.2k - 33.3k | 
| FRITZ!Box 7530 AX | 7.20 - 7.31 | /sbin | 37.4k | 
| FRITZ!Box 7560 (main) | 6.51 - 7.30 | /sbin | 40.8k - 44.8k | 
| FRITZ!Box 7580 (main) | 6.53 - 7.30 | /sbin | 40.8k - 44.8k | 
| FRITZ!Box 7581 | 7.18 | /sbin | 28.9k - 37.4k | 
| FRITZ!Box 7582 | 7.15 - 7.18 | /sbin | 28.9k - 37.4k | 
| FRITZ!Box 7583 (main) | 7.01 - 7.31 | /sbin | 40.9k - 44.8k | 
| FRITZ!Box 7583 VDSL (main) | 7.19 - 7.31 | /sbin | 44.7k | 
| FRITZ!Box 7590 (main) | 6.83 - 7.29 | /sbin | 40.8k - 44.8k | 
| FRITZ!Box 7590 AX (main) | 7.19 - 7.31 | /sbin | 44.7k | 
| FRITZ!Box Fon WLAN 7240 | 6.01 - 6.04 | /sbin | 45.2k | 
| FRITZ!Box Fon WLAN 7270 v2 | 5.59 - 6.04 | /sbin | 45.2k | 
| FRITZ!Box Fon WLAN 7270 v3 | 5.59 - 6.04 | /sbin | 45.2k | 
| FRITZ!Box Fon WLAN 7320 | 6.01 - 6.35 | /sbin | 45.2k - 45.4k | 
| FRITZ!Box Fon WLAN 7340 | /sbin | 45.3k - 45.4k | |
| FRITZ!Box Fon WLAN 7360 SL | 5.60 - 6.34 | /sbin | 45.2k - 45.4k | 
| FRITZ!Box Fon WLAN 7360 v1 | 5.60 - 6.36 | /sbin | 45.2k - 45.4k | 
| FRITZ!Box Fon WLAN 7360 v2 | 5.59 - 6.88 | /sbin | 43.3k - 45.4k | 
| FRITZ!Box Fon WLAN 7390 | /sbin | 45.3k - 45.5k | |
| FRITZ!Box WLAN 3370 (main) | 5.59 - 6.56 | /sbin | 43.3k - 45.4k | 
| FRITZ!Powerline 1240E | 6.33 - 7.16 | /sbin | 41.0k - 44.8k | 
| FRITZ!Powerline 1260 | 7.27 - 7.29 | /sbin | 33.3k | 
| FRITZ!Powerline 1260E | 6.90 - 7.29 | /sbin | 26.2k - 33.3k | 
| FRITZ!Powerline 540E | 5.58 - 7.15 | /sbin | 40.9k - 45.5k | 
| FRITZ!Powerline 546E | 6.02 - 7.15 | /sbin | 40.9k - 45.5k | 
| FRITZ!Repeater 1200 | 7.11 - 7.29 | /sbin | 33.3k | 
| FRITZ!Repeater 1200 AX | 7.30 - 7.31 | /sbin | 33.3k | 
| FRITZ!Repeater 2400 | 7.12 - 7.29 | /sbin | 40.9k - 44.8k | 
| FRITZ!Repeater 3000 | 6.98 - 7.29 | /sbin | 26.2k - 33.3k | 
| FRITZ!Repeater 600 | 7.11 - 7.29 | /sbin | 40.9k - 44.8k | 
| FRITZ!Repeater 600 v2 | 7.27 - 7.30 | /sbin | 40.9k | 
| FRITZ!Repeater 6000 | 7.19 - 7.31 | /sbin | 33.3k | 
| FRITZ!WLAN Repeater 1160 | 6.51 - 7.15 | /sbin | 41.0k - 44.8k | 
| FRITZ!WLAN Repeater 1750E | 6.12 - 7.32 | /sbin | 40.9k - 45.5k | 
| FRITZ!WLAN Repeater 300E | 6.00 - 6.34 | /sbin | 45.2k - 45.5k | 
| FRITZ!WLAN Repeater 310 A | 6.00 - 7.16 | /sbin | 40.9k - 45.5k | 
| FRITZ!WLAN Repeater 310 B | 6.30 - 7.16 | /sbin | 41.0k - 44.8k | 
| FRITZ!WLAN Repeater 450E | 6.00 - 7.15 | /sbin | 40.9k - 45.5k | 
| FRITZ!WLAN Repeater DVB-C | 6.12 - 7.04 | /sbin | 40.9k - 45.5k | 
| 83 models use this command | |||
Symbols
Daily updated index of all symbols of this command. Last update: 2025-05-26 06:16 GMT.
| Firmware | Symbol | 
|---|---|
| 5.58 - 7.32 | addattr | 
| 5.58 - 7.32 | addattr16 | 
| 5.58 - 7.32 | addattr32 | 
| 5.58 - 7.32 | addattr64 | 
| 5.58 - 7.32 | addattr8 | 
| 5.58 - 7.32 | addattr_l | 
| 7.08 - 7.32 | addattr_nest | 
| 7.08 - 7.32 | addattr_nest_end | 
| 5.58 - 7.32 | addattrstrz | 
| 5.58 - 7.32 | dnet_ntop | 
| 5.58 - 7.32 | dnet_pton | 
| 5.58 - 7.32 | genl_resolve_family | 
| 5.58 - 7.32 | get_addr | 
| 7.08 - 7.32 | get_addr_1 | 
| 7.08 - 7.32 | get_prefix_1 | 
| 5.58 - 7.32 | get_u16 | 
| 5.58 - 7.32 | get_u32 | 
| 5.58 - 7.32 | get_u8 | 
| 7.19 - 7.31 | get_unsigned | 
| 5.58 - 7.32 | incomplete_command | 
| 5.58 - 7.32 | invarg | 
| 5.58 - 7.32 | ipx_ntop | 
| 5.58 - 7.32 | main | 
| 7.08 - 7.32 | mask2bits | 
| 5.58 - 7.32 | matches | 
| 5.58 - 7.32 | missarg | 
| 5.58 - 7.32 | parse_rtattr | 
| 7.08 - 7.32 | parse_rtattr_flags | 
| 7.08 - 7.32 | rt_addr_n2a | 
| 5.58 - 7.32 | rtnl_dump_filter | 
| 7.08 - 7.32 | rtnl_dump_filter_l | 
| 5.58 - 7.32 | rtnl_open_byproto | 
| 5.58 - 7.32 | rtnl_send | 
| 5.58 - 7.32 | rtnl_talk | 
| 7.08 - 7.32 | rtnl_wilddump_req_filter | 
| 35 symbols for this command | |



