Name der Mobilfunk-Gegenstelle und des Mobilfunk-Profil unabhängig voneinander?

Forum zu LANCOM Mobilfunk Router/Gateways

Moderator: Lancom-Systems Moderatoren

Antworten
JensK
Beiträge: 12
Registriert: 25 Okt 2019, 09:56

Name der Mobilfunk-Gegenstelle und des Mobilfunk-Profil unabhängig voneinander?

Beitrag von JensK »

Hallo,

auf einem LANCOM 1781VA-4G sind eine VDSL-Verbindung uns eine Mobilfunkverbindung eingerichtet. Die Namen der Gegenstellen sind allerdings manuell vergeben worden. Unser Problem ist, dass die Backup-Verbindung nicht aufgebaut wird, wenn DSL ausfällt. Mit einem Testgerät habe ich die Konfiguration auf ein Minimum verringert und bin nun auf die Ursache gestoßen - allerdings fehlt mir eine Erklärung.

Speziell zur Mobilfunkverbindung:
Ich bin bisher davon ausgegangen, dass der Name der Gegenstelle, die entsprechend unter /Setup/WAN/Dialup-Peers und /Setup/WAN/PPP verwendet wird, unabhängig vom Namen des Mobilfunkprofils unter /Setup/Interfaces/Mobile/Profiles ist. Auch LANconfig deutet keine derartige Abhängigkeit an. Konfiguriere ich den Router ausschließlich mit LTE - also ohne eine VDSL-Verbindung - funktioniert alles wie gewünscht. Es wird eine Internetverbindung zur Gegenstelle "LTE_T-MOBILE" mit dem Profil "T-MOBILE-SIM1" aufgebaut:

Code: Alles auswählen

# Script (10.34.0305 / 25.03.2021) (0x0020011c,IDs:2,3,4,8,15,2b;0x000000e3)

lang English
flash No

set /Setup/Name "gs-gw"
# WAN
cd /Setup/WAN/Dialup-Peers 
del *
#    Peer              Dialup-remote                    B1-DT  B2-DT  WAN-layer  Callback  IPv6            
#    ==================------------------------------------------------------------------------------------
add  "DEFAULT"        {Dialup-remote}  ""                              {B1-DT}  20    {B2-DT}  20    {WAN-layer}  ""        {Callback}  No       {IPv6}  "DEFAULT"
add  "LTE_T-MOBILE"   {Dialup-remote}  "*99#"                          {B1-DT}  9999  {B2-DT}  20    {WAN-layer}  "WWAN"    {Callback}  No       {IPv6}  ""
cd /
cd /Setup/WAN/PPP 
del *
#    Peer              Authent.request             Authent-response            Key       Time  Try   Conf  Fail  Term  Username                                                          Rights         
#    ==================---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "DEFAULT"        {Authent.request}  MS-CHAPv2,MS-CHAP,CHAP,PAP {Authent-response}  MS-CHAPv2,MS-CHAP,CHAP,PAP {Key}  ""       {Time}  0    {Try}  5    {Conf}  10   {Fail}  5    {Term}  2    {Username}  ""                                                               {Rights}  none           
add  "LTE_T-MOBILE"   {Authent.request}  none                       {Authent-response}  MS-CHAPv2,MS-CHAP,CHAP,PAP {Key}  "tm"     {Time}  0    {Try}  5    {Conf}  10   {Fail}  5    {Term}  2    {Username}  "tm"                                                             {Rights}  IP             
cd /
cd /Setup/WAN/DSL-Broadband-Peers 
del *
cd /
cd /Setup/WAN/Backup-Peers 
del *
cd /
cd /Setup/Charges/Volume-Budgets 
del *
#    Peer              Limit-MB         Action                     
#    ==================--------------------------------------------
add  "LTE_T-MOBILE"   {Limit-MB}  0               {Action}  none
cd /
cd /Setup/TCP-IP/Network-list 
del *
#    Network-name      IP-Address       IP-Netmask       VLAN-ID  Interface           Src-check      Type      Rtg-tag  Comment                                                         
#    ==================-----------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "INTRANET"       {IP-Address}  192.168.46.1    {IP-Netmask}  255.255.255.0   {VLAN-ID}  0       {Interface}  LAN-1              {Src-check}  loose         {Type}  Intranet {Rtg-tag}  0       {Comment}  ""
add  "DMZ"            {IP-Address}  0.0.0.0         {IP-Netmask}  255.255.255.0   {VLAN-ID}  0       {Interface}  LAN-2              {Src-check}  loose         {Type}  DMZ      {Rtg-tag}  0       {Comment}  ""
cd /
cd /Setup/IP-Router/IP-Routing-Table 
del *
#    IP-Address       IP-Netmask       Rtg-tag  Peer-or-IP        Distance  Masquerade  Active   Comment                                                         
#    ===========================================-----------------------------------------------------------------------------------------------------------------
add  255.255.255.255  0.0.0.0          0       {Peer-or-IP}  "LTE_T-MOBILE"   {Distance}  0        {Masquerade}  on         {Active}  Yes     {Comment}  ""
cd /
# DHCP
cd /Setup/DHCP/Network-list 
del *
#    Network-name      Start-Address-Pool  End-Address-Pool    Netmask             Broadcast-Address   Gateway-Address     DNS-Default      DNS-Backup       NBNS-Default     NBNS-Backup      Operating  Broadcast-Bit  Master-Server    2nd-Master-Server   3rd-Master-Server   4th-Master-Server   Loopback-Address  Cache   Adaption   Cluster  Max.-Lease        Def.-Lease        Suppress-ARP-check
#    ==================-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "INTRANET"       {Start-Address-Pool}  0.0.0.0            {End-Address-Pool}  0.0.0.0            {Netmask}  0.0.0.0            {Broadcast-Address}  0.0.0.0            {Gateway-Address}  0.0.0.0            {DNS-Default}  0.0.0.0         {DNS-Backup}  0.0.0.0         {NBNS-Default}  0.0.0.0         {NBNS-Backup}  0.0.0.0         {Operating}  Yes       {Broadcast-Bit}  No            {Master-Server}  0.0.0.0         {2nd-Master-Server}  0.0.0.0            {3rd-Master-Server}  0.0.0.0            {4th-Master-Server}  0.0.0.0            {Loopback-Address}  ""               {Cache}  No     {Adaption}  No        {Cluster}  No      {Max.-Lease}  0                {Def.-Lease}  0                {Suppress-ARP-check}  No
add  "DMZ"            {Start-Address-Pool}  0.0.0.0            {End-Address-Pool}  0.0.0.0            {Netmask}  0.0.0.0            {Broadcast-Address}  0.0.0.0            {Gateway-Address}  0.0.0.0            {DNS-Default}  0.0.0.0         {DNS-Backup}  0.0.0.0         {NBNS-Default}  0.0.0.0         {NBNS-Backup}  0.0.0.0         {Operating}  No        {Broadcast-Bit}  No            {Master-Server}  0.0.0.0         {2nd-Master-Server}  0.0.0.0            {3rd-Master-Server}  0.0.0.0            {4th-Master-Server}  0.0.0.0            {Loopback-Address}  ""               {Cache}  No     {Adaption}  No        {Cluster}  No      {Max.-Lease}  0                {Def.-Lease}  0                {Suppress-ARP-check}  No
cd /
set /Setup/Config/Telnet-Operating No
set /Setup/Config/Telnet-SSL/Operating No
cd /Setup/Interfaces/Mobile/Profiles 
del *
#    Profile          PIN       APN                                              Network           Select     Mode       QoS-downstream-data-rate  QoS-upstream-data-rate  PDP-type  LTE-bands                                                                                                                      LTE-Attach     SIM-Slot    
#    =================-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "T-MOBILE-SIM1" {PIN}  "1234"  {APN}  "internet.t-d1.de"                              {Network}  ""               {Select}  Auto      {Mode}  Auto      {QoS-downstream-data-rate}  0                        {QoS-upstream-data-rate}  0                      {PDP-type}  IPv4     {LTE-bands}  All                                                                                                                           {LTE-Attach}  Immediate     {SIM-Slot}  Slot_1
cd /
cd /Setup/Interfaces/Modem-Mobile
#    Ifc       Operating        Data-Rate   Profile         
#    ==========---------------------------------------------
set  Modem    {Operating}  WWAN            {Data-Rate}  115200     {Profile}  "T-MOBILE-SIM1" 
cd /
set /Setup/LMC/Operating No
cd /Setup/COM-Ports/Devices 
del *
#    Device-Type                 Service              
#    ============================---------------------
add  Qualcomm-DM                {Service}  COM-Port-Server
add  Sierra-MiniCard-7710       {Service}  WAN
cd /
cd /Setup/COM-Ports/WAN/Devices 
del *
#    Device-Type                 Operating 
#    ============================----------
add  Sierra-MiniCard-7710       {Operating}  Yes
cd /
set /Setup/LLDP/Operating Yes
set /Setup/Automatic-Firmware-Update/Mode manual
set /Setup/CWMP/Data-Model TR-181
flash Yes

# done
exit

Ergänze ich nun noch eine VDSL-Verbindung und konfiguriere die Mobilfunk-Verbindung als Backup für's DSL, sieht die Konfiguration so aus

Code: Alles auswählen

# Script (10.34.0305 / 25.03.2021) (0x0020011c,IDs:2,3,4,8,15,2b;0x000000e3)

lang English
flash No

set /Setup/Name "gs-gw"
# WAN
cd /Setup/WAN/Dialup-Peers 
del *
#    Peer              Dialup-remote                    B1-DT  B2-DT  WAN-layer  Callback  IPv6            
#    ==================------------------------------------------------------------------------------------
add  "DEFAULT"        {Dialup-remote}  ""                              {B1-DT}  20    {B2-DT}  20    {WAN-layer}  ""        {Callback}  No       {IPv6}  "DEFAULT"
add  "LTE_T-MOBILE"   {Dialup-remote}  "*99#"                          {B1-DT}  9999  {B2-DT}  20    {WAN-layer}  "WWAN"    {Callback}  No       {IPv6}  ""
cd /
cd /Setup/WAN/PPP 
del *
#    Peer              Authent.request             Authent-response            Key       Time  Try   Conf  Fail  Term  Username                                                          Rights         
#    ==================---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "DEFAULT"        {Authent.request}  MS-CHAPv2,MS-CHAP,CHAP,PAP {Authent-response}  MS-CHAPv2,MS-CHAP,CHAP,PAP {Key}  ""       {Time}  0    {Try}  5    {Conf}  10   {Fail}  5    {Term}  2    {Username}  ""                                                               {Rights}  none           
add  "LTE_T-MOBILE"   {Authent.request}  none                       {Authent-response}  MS-CHAPv2,MS-CHAP,CHAP,PAP {Key}  "tm"     {Time}  0    {Try}  5    {Conf}  10   {Fail}  5    {Term}  2    {Username}  "tm"                                                             {Rights}  IP             
add  "VDSL_DNSNET"    {Authent.request}  none                       {Authent-response}  MS-CHAPv2,MS-CHAP,CHAP,PAP {Key}  "mypassword" {Time}  5    {Try}  5    {Conf}  10   {Fail}  5    {Term}  2    {Username}  "myusername"                                                     {Rights}  IP             
cd /
cd /Setup/WAN/DSL-Broadband-Peers 
del *
#    Peer              SH-Time  AC-name                                                           Servicename                       WAN-layer  ATM-VPI  ATM-VCI  MAC-Type   user-def.-MAC  DSL-ifc(s)                                                       VLAN-ID  Prio-Mapping  IPv6            
#    ==================----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "VDSL_DNSNET"    {SH-Time}  9999    {AC-name}  ""                                                               {Servicename}  ""                               {WAN-layer}  "IPOEOV"  {ATM-VPI}  0       {ATM-VCI}  0       {MAC-Type}  local     {user-def.-MAC}  000000000000  {DSL-ifc(s)}  ""                                                              {VLAN-ID}  0       {Prio-Mapping}  off          {IPv6}  ""
cd /
cd /Setup/WAN/Backup-Peers 
del *
#    Peer                Alternative-Peers                                      Head     Fallback-minutes 
#    ====================---------------------------------------------------------------------------------
add  "VDSL_DNSNET"      {Alternative-Peers}  "LTE_T-MOBILE"                                        {Head}  First   {Fallback-minutes}  0
cd /
cd /Setup/Charges/Volume-Budgets 
del *
#    Peer              Limit-MB         Action                     
#    ==================--------------------------------------------
add  "LTE_T-MOBILE"   {Limit-MB}  0               {Action}  none
add  "VDSL_DNSNET"    {Limit-MB}  0               {Action}  none
cd /
cd /Setup/TCP-IP/Network-list 
del *
#    Network-name      IP-Address       IP-Netmask       VLAN-ID  Interface           Src-check      Type      Rtg-tag  Comment                                                         
#    ==================-----------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "INTRANET"       {IP-Address}  192.168.46.1    {IP-Netmask}  255.255.255.0   {VLAN-ID}  0       {Interface}  LAN-1              {Src-check}  loose         {Type}  Intranet {Rtg-tag}  0       {Comment}  ""
add  "DMZ"            {IP-Address}  0.0.0.0         {IP-Netmask}  255.255.255.0   {VLAN-ID}  0       {Interface}  LAN-2              {Src-check}  loose         {Type}  DMZ      {Rtg-tag}  0       {Comment}  ""
cd /
cd /Setup/IP-Router/IP-Routing-Table 
del *
#    IP-Address       IP-Netmask       Rtg-tag  Peer-or-IP        Distance  Masquerade  Active   Comment                                                         
#    ===========================================-----------------------------------------------------------------------------------------------------------------
add  255.255.255.255  0.0.0.0          0       {Peer-or-IP}  "VDSL_DNSNET"    {Distance}  0        {Masquerade}  on         {Active}  Yes     {Comment}  ""
cd /
# DHCP
cd /Setup/DHCP/Network-list 
del *
#    Network-name      Start-Address-Pool  End-Address-Pool    Netmask             Broadcast-Address   Gateway-Address     DNS-Default      DNS-Backup       NBNS-Default     NBNS-Backup      Operating  Broadcast-Bit  Master-Server    2nd-Master-Server   3rd-Master-Server   4th-Master-Server   Loopback-Address  Cache   Adaption   Cluster  Max.-Lease        Def.-Lease        Suppress-ARP-check
#    ==================-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "INTRANET"       {Start-Address-Pool}  0.0.0.0            {End-Address-Pool}  0.0.0.0            {Netmask}  0.0.0.0            {Broadcast-Address}  0.0.0.0            {Gateway-Address}  0.0.0.0            {DNS-Default}  0.0.0.0         {DNS-Backup}  0.0.0.0         {NBNS-Default}  0.0.0.0         {NBNS-Backup}  0.0.0.0         {Operating}  Yes       {Broadcast-Bit}  No            {Master-Server}  0.0.0.0         {2nd-Master-Server}  0.0.0.0            {3rd-Master-Server}  0.0.0.0            {4th-Master-Server}  0.0.0.0            {Loopback-Address}  ""               {Cache}  No     {Adaption}  No        {Cluster}  No      {Max.-Lease}  0                {Def.-Lease}  0                {Suppress-ARP-check}  No
add  "DMZ"            {Start-Address-Pool}  0.0.0.0            {End-Address-Pool}  0.0.0.0            {Netmask}  0.0.0.0            {Broadcast-Address}  0.0.0.0            {Gateway-Address}  0.0.0.0            {DNS-Default}  0.0.0.0         {DNS-Backup}  0.0.0.0         {NBNS-Default}  0.0.0.0         {NBNS-Backup}  0.0.0.0         {Operating}  No        {Broadcast-Bit}  No            {Master-Server}  0.0.0.0         {2nd-Master-Server}  0.0.0.0            {3rd-Master-Server}  0.0.0.0            {4th-Master-Server}  0.0.0.0            {Loopback-Address}  ""               {Cache}  No     {Adaption}  No        {Cluster}  No      {Max.-Lease}  0                {Def.-Lease}  0                {Suppress-ARP-check}  No
cd /
set /Setup/Config/Telnet-Operating No
set /Setup/Config/Telnet-SSL/Operating No
cd /Setup/Interfaces/Mobile/Profiles 
del *
#    Profile          PIN       APN                                              Network           Select     Mode       QoS-downstream-data-rate  QoS-upstream-data-rate  PDP-type  LTE-bands                                                                                                                      LTE-Attach     SIM-Slot    
#    =================-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
add  "T-MOBILE-SIM1" {PIN}  "1234"  {APN}  "internet.t-d1.de"                              {Network}  ""               {Select}  Auto      {Mode}  Auto      {QoS-downstream-data-rate}  0                        {QoS-upstream-data-rate}  0                      {PDP-type}  IPv4     {LTE-bands}  All                                                                                                                           {LTE-Attach}  Immediate     {SIM-Slot}  Slot_1
cd /
cd /Setup/Interfaces/Modem-Mobile
#    Ifc       Operating        Data-Rate   Profile         
#    ==========---------------------------------------------
set  Modem    {Operating}  WWAN            {Data-Rate}  115200     {Profile}  "T-MOBILE-SIM1" 
cd /
set /Setup/LMC/Operating No
cd /Setup/COM-Ports/Devices 
del *
#    Device-Type                 Service              
#    ============================---------------------
add  Qualcomm-DM                {Service}  COM-Port-Server
add  Sierra-MiniCard-7710       {Service}  WAN
cd /
cd /Setup/COM-Ports/WAN/Devices 
del *
#    Device-Type                 Operating 
#    ============================----------
add  Sierra-MiniCard-7710       {Operating}  Yes
cd /
set /Setup/LLDP/Operating Yes
set /Setup/Automatic-Firmware-Update/Mode manual
set /Setup/CWMP/Data-Model TR-181
flash Yes

# done
exit
Fällt nun die VDSL-Verbinung aus, wird allerdings keine Mobilfunkverbindung hergestellt. Der Router logt unter anderem dieses:
36 2021-08-08 14:05:27 KERN Fehler WWAN: Can not find profile 'LTE_T-MOBILE'.
37 2021-08-08 14:05:26 AUTH Info Disconnected from peer VDSL_DNSNET: DSL layer 1
38 2021-08-08 14:05:26 AUTH Info Disconnected from peer VDSL_DNSNET: DSL layer 1
39 2021-08-08 14:05:25 KERN Hinweis [xDSL] link down
Ganz offensichtlich sucht der Router nun ein Mobilfunkprofil "LTE_T-MOBILE". Klar, das kann ich anlegen. Aber wo ist der Denkfehler? Müssen die Namen des Mobilfunkprofils und der Gegenstelle doch identisch sein? Warum geht das aber bei einer reinen Mobilfunkverbindung, ohne DSL?

Das Problem haben wir auf diversen 1781VA-4G mit der Version 10.34. Ich meine, dass wir es aber auch schon in früheren Versionen, wie z.B. der 10.12 hatten.

Viele Grüße
Jens
5624
Beiträge: 865
Registriert: 14 Mär 2012, 12:36

Re: Name der Mobilfunk-Gegenstelle und des Mobilfunk-Profil unabhängig voneinander?

Beitrag von 5624 »

Es gab in der 10.32Rel ein entsprechendes, gelöstes Problem.

Ich weiß aber, dass ich es schon mit abweichenden Namen laufen hatte.

Ob es bei mir aktuell funktionieren würde, kann ich nicht sagen, da ich über die Aktionstabelle die WWAN-Verbindung aktiv verbinde, wenn DSL einen Aufbaufehler oder Abbruch hat. Bei einem Verbindungsaufbau der DSL-Verbindung trenne ich die WWAN-Verbindung auch aktiv wieder.
LCS NC/WLAN
JensK
Beiträge: 12
Registriert: 25 Okt 2019, 09:56

Re: Name der Mobilfunk-Gegenstelle und des Mobilfunk-Profil unabhängig voneinander?

Beitrag von JensK »

5624 hat geschrieben: 08 Aug 2021, 20:46 Es gab in der 10.32Rel ein entsprechendes, gelöstes Problem.
Danke für den Hinweis. Das habe ich nun nachträglich auch in den Release Notes gelesen:
LCOS Release Note 10.32.Rel hat geschrieben:Waren bei einer als Backup verwendeten Mobilfunk-Verbindung die Namen von Mobilfunkprofil, Kommunikationslayer und Gegenstelle nicht identisch, konnte die Mobilfunk-Gegenstelle im Backup-Fall nicht aufgebaut werden
Ich bin außerdem auf einen Knowledgebase-Artikel gestoßen, der das Problem für die Version 10.30 beschreibt:

Troubleshooting Guide: Mobilfunk-Backup wird nach LCOS-Update auf Version 10.30 nicht mehr aufgebaut
https://support.lancom-systems.com/know ... d=32988175

Die o.g. Release Notes zur 10.32 klingen ja so, als wenn es (nach der 10.30) wieder mit abweichenden Namen funktionieren müsste.

Ich habe daraufhin die Versionen 10.32 Rel, 10.32 RU10, 10.34 SU4 und 10.42 RU5 ausprobiert. Bei keiner der Versionen scheinen unterschiedliche Namen von Mobilfunkprofil und Gegenstelle zu funktionieren. Wie daher der Punkt der Release Notes zu verstehen ist, ist mir nicht klar.

Wenn es tatsächlich einen technischen Grund dafür gibt, dass die Namen identisch sein müssen, wäre es natürlich schön, wenn in LANconfig eine entsprechende Abhängigkeit dieser beiden Felder herstellt werden würde und statt eines Freitextfeldes ein Auswahlmenü angeboten werden würde. Naja, es hat mich einige Stunden gekostet, nun werde ich die Einträge auf unseren Routern anpassen :)

Jens
Antworten