欺骗模式下的 Cisco 899G-LTE Cellular 0 接口

网络工程 思科 路由 ip 无线的 网络
2021-07-16 09:01:08

我有个问题。重置路由器配置后,它无法从 LTE SIM 卡获取 IP。似乎我的 cellullar0 接口处于欺骗模式。

> Router#show interfaces cellular 0     Cellular0 is up (spoofing), line
> protocol is up (spoofing)   Hardware is 4G WWAN Modem - Global (Europe
> & Australia) Multimode LTE/DC-HSPA+/HSPA+/HSPA/U   Internet address
> will be assigned dynamically by the network   MTU 1500 bytes, BW 50000
> Kbit/sec, DLY 100000 usec, 
>      reliability 255/255, txload 1/255, rxload 1/255   Encapsulation SLIP, loopback not set   Keepalive not supported    Last input never,
> output never, output hang never   Last clearing of "show interface"
> counters never   Input queue: 0/75/0/0 (size/max/drops/flushes); Total
> output drops: 0   Queueing strategy: fifo   Output queue: 0/10
> (size/max)   5 minute input rate 0 bits/sec, 0 packets/sec   5 minute
> output rate 0 bits/sec, 0 packets/sec
>      0 packets input, 0 bytes, 0 no buffer
>      Received 0 broadcasts (0 IP multicasts)
>      0 runts, 0 giants, 0 throttles 
>      0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
>      0 packets output, 0 bytes, 0 underruns
>      0 output errors, 0 collisions, 0 interface resets
>      0 unknown protocol drops
>      0 output buffer failures, 0 output buffers swapped out

我的配置如下:

Router#show running-config 
Building configuration...

Current configuration : 2733 bytes
!
! Last configuration change at 12:30:58 UTC Thu Jan 31 2019 by root
!
version 15.6
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
!
!
!
!
!         
!
!
!
!
!
!
!
!
!
!
!


!
!
!
!
ip cef
no ipv6 cef
!
!
!
!         
!
multilink bundle-name authenticated
!
!
chat-script lte "" "AT!CALL" TIMEOUT 20 "OK"
!
!
!
!
!
license udi pid C899G-LTE-GA-K9 sn FCZ2124E2E6
!
!
!
redundancy
!
!
!
!
!
controller Cellular 0
 lte modem link-recovery rssi onset-threshold -110
 lte modem link-recovery monitor-timer 20
 lte modem link-recovery wait-timer 10
 lte modem link-recovery debounce-count 6
!
! 
!
!
!
!
!
!
!
!
!
interface Cellular0
 ip address negotiated
 encapsulation slip
 history BPS
 dialer in-band
 dialer string lte
 dialer-group 1
!
interface Cellular1
 no ip address
 encapsulation slip
!
interface GigabitEthernet0
 no ip address
!
interface GigabitEthernet1
 no ip address
!
interface GigabitEthernet2
 no ip address
!
interface GigabitEthernet3
 no ip address
!
interface GigabitEthernet4
 no ip address
!
interface GigabitEthernet5
 no ip address
!
interface GigabitEthernet6
 no ip address
!
interface GigabitEthernet7
 no ip address
!
interface GigabitEthernet8
 duplex auto
 speed auto
!
interface GigabitEthernet9
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!         
ip ssh server algorithm encryption aes128-ctr aes192-ctr aes256-ctr
ip ssh client algorithm encryption aes128-ctr aes192-ctr aes256-ctr
!
ip sla 1
 icmp-echo 1.1.1.1 source-interface Cellular0
 tag ###-- ping cloudflare dns to keep LTE up
 frequency 10
ip sla schedule 1 life forever start-time now
ipv6 ioam timestamp
!
!
control-plane
!
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!         
!
!
!
!
!
!
line con 0
 privilege level 15
 login local
 no modem enable
line aux 0
 privilege level 15
 login local
line 2
 privilege level 15
 login local
 no activation-character
 no exec
 transport preferred none
 transport input all
 stopbits 1
line 3
 script dialer lte
 login local
 no exec
 rxspeed 100000000
 txspeed 50000000
line 8
 privilege level 15
 login local
 no exec
line vty 0 4
 access-class login-acl in vrf-also
 privilege level 15
 login local
 transport preferred ssh
 transport input telnet ssh
!
scheduler allocate 20000 1000
!
end

重置前它工作正常,你能告诉我问题出在哪里吗?

2个回答

您需要在 Cellular0 接口下设置您的 SIM 公司/ISP 指定的 APN。

只是为了澄清:欺骗这个词表明线路确实没有启动,但拨号器正在迫使线路伪装成“启动”,以便上层协议将继续按预期运行。欺骗是为了允许按需拨号 (DDR) 工作而添加的一种状态。但是因为没有数据包被路由到一个“关闭”的接口,它必须假装正常(欺骗)所以即使它没有连接,数据包也会被路由到它。Spoofing 是拨号界面的正常状态。

或者,下面是 899G 路由器的完整配置指南。 https://wannabelab.blogspot.com/2016/04/cisco-899-4g-lte-router-configuration.html

我们将拨号器配置为在丢失的路由上拨号,这样我们就不必用 ping 来消耗我们的数据计划来保持链接:

dialer watch-list 1 ip 66.66.66.66 255.255.255.255

因为该路由 (66.66.66.66/32) 永远不会出现在路由表中,所以即使没有要发送的数据,拨号器也会始终建立连接。

LAB-819#sh dialer

Ce0 - dialer type = IN-BAND ASYNC NO-PARITY
Idle timer (never), Fast idle timer (20 secs)
Wait for carrier (30 secs), Re-enable (15 secs)
Dialer state is data link layer up
Dial reason: Dialing on watched route loss
Time until disconnect never
Current call connected 1d10h
Connected to lte

Dial String      Successes   Failures    Last DNIS   Last status
lte                     14          7    1d10h          successful   Default