VRF (LTE) 中的蜂窝接口

网络工程 思科 虚拟现实 ios-xe lte
2021-07-22 11:14:30

我们正在使用 Cisco C1113-8PLTEEA 路由器测试 LTE 配置。我们已经在称为 DSL 的特定 VRF 中建立了有线互联网连接。据我了解 LTE 备份,我们必须在同一个 VRF 中使用蜂窝接口,以便路由(跟踪对象)从有线连接切换到无线连接。这就是我的问题。一旦我将它放入 vrf,蜂窝就停止工作。让我们来看看工作配置:

 controller Cellular 0/2/0
 lte sim data-profile 16 attach-profile 2 slot 0
 lte modem link-recovery wait-timer 5
 profile id 16 apn corporate.provider.ch authentication pap_chap username abc password def

 interface Cellular0/2/0
   ip address negotiated
   dialer in-band
   dialer idle-timeout 0
   dialer watch-group 2
   dialer-group 2
   ipv6 enable
   pulse-time 1

ip access-list standard 2
 10 permit any
dialer-list 2 protocol ip permit

ip route 0.0.0.0 0.0.0.0 Cellular0/2/0

因此,如果我在 Layer3 接口添加 vrf,则连接永远不会出现。这是调整后的配置,我用箭头标记了更改的行。

 controller Cellular 0/2/0
 lte sim data-profile 16 attach-profile 2 slot 0
 lte modem link-recovery wait-timer 5
 profile id 16 apn corporate.provider.ch authentication pap_chap username abc password def

 interface Cellular0/2/0
   ip vrf forwarding DSL <-----------new
   ip address negotiated
   dialer in-band
   dialer idle-timeout 0
   dialer watch-group 2
   dialer-group 2
   ipv6 enable
   pulse-time 1

ip access-list standard 2
 10 permit any
dialer-list 2 protocol ip permit

ip route vrf DSL 0.0.0.0 0.0.0.0 Cellular0/2/0 <-----------adjusted

我还没有在其他区域找到任何 VRF 命令。我找到的所有手册都不适用于 VRF,所以我有点迷失了。有没有人做过这个?我错过了什么?

这是没有 VRF 的日志输出。我确实有 2 个 IP SLA 可以 ping google 并在连接建立后立即显示。

Oct 26 10:57:11.377: %PARSER-5-CFGLOG_LOGGEDCMD: User:admjos  logged command:shutdown 
Oct 26 10:57:38.657: %PARSER-5-CFGLOG_LOGGEDCMD: User:admjos  logged command:no shutdown 
Oct 26 10:57:40.653: %LINK-3-UPDOWN: Interface Cellular0/2/0, changed state to down
Oct 26 10:58:04.586: %LINK-3-UPDOWN: Interface Cellular0/2/0, changed state to up
Oct 26 10:58:05.584: %LINEPROTO-5-UPDOWN: Line protocol on Interface Cellular0/2/0, changed state to up
Oct 26 10:58:08.378: %TRACK-6-STATE: 100 ip sla 100 reachability Down -> Up
Oct 26 10:58:08.378: %TRACK-6-STATE: 200 ip sla 200 reachability Down -> Up

如果我配置 VRF,这里是输出:

Oct 26 10:29:12.180: %PARSER-5-CFGLOG_LOGGEDCMD: User:admjos  logged command:no shutdown 
Oct 26 10:29:12.954: %SYS-5-CONFIG_I: Configured from console by admjos on vty0 (172.16.225.82)
Oct 26 10:29:14.178: %LINK-3-UPDOWN: Interface Cellular0/2/0, changed state to down

界面基本上只是停留在down状态。

1个回答

刚刚开始工作。诀窍是让一些东西产生流量并触发蜂窝接口连接。没想到我在全局 vrf 上配置的 IP SLA 使连接对我有用。所以基本上这为我修复了它:

ip sla 1000
 icmp-echo 8.8.8.8
  vrf DSL
  threshold 500
  timeout 1000
  frequency 4
ip sla schedule 1000 life forever start-time now

您可以通过查看 show dialer 命令中的原因来验证这一点:

roTST01#show dialer                  

Ce0/2/0 - dialer type = DIALER CWAN
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: ip (s=172.20.220.1, d=8.8.8.8)
Time until disconnect never
Current call connected 00:45:41
Connected to lte

Dial String      Successes   Failures    Last DNIS   Last status
lte                      2          0    00:45:41       successful   Default

在这种情况下,发送手动 ping 通常不起作用,因为路由器还没有有价值的 IP。

roTST01#ping vrf DSL 8.8.8.8
% VRF DSL does not have a usable source address 

所以本质上,IP SLA 只是从它可以找到的任何其他接口获取源 IP。就我而言,界面甚至不在同一个 VRF 中。