我们正在用CiscoC1113-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,这是平谷歌和显示,一旦连接是结束。
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接口基本上保持在向下的状态。
发布于 2020-10-27 10:07:49
让它开始工作了。诀窍是拥有一些能产生流量并触发蜂窝接口来连接的东西。我并没有重新意识到,我在全局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您可以通过查看“显示拨号”命令中的原因来验证这一点:
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只是从它能找到的任何其他接口中获取一个源IP。在我的例子中,接口甚至不在同一个VRF中。
https://networkengineering.stackexchange.com/questions/70661
复制相似问题