Cisco EEM 未启动所有步骤

Cisco EEM 未启动所有步骤

我有一个 Cisco 887 作为我们的主路由器;它配置为双栈。但是我们的 ISP 的 IPv6 配置有一个小“问题”;建立连接后,我们必须为前缀委派执行 DHCPv6,以告知 ISP 的网络将我们的分配 /56 路由到哪里。

一切正常,除非连接断开并重新建立:

Feb  5 08:54:15.194 ACST: Vi2 LCP: I TERMREQ [Open] id 3 len 4
Feb  5 08:54:15.194 ACST: Vi2 PPP DISC: Received LCP TERMREQ from peer
Feb  5 08:54:15.194 ACST: PPP: NET STOP send to AAA.
Feb  5 08:54:15.194 ACST: Vi2 PPP: Phase is TERMINATING

对于 IPv4 来说这不是问题(仅需约 3 秒钟即可恢复,且并不频繁),但对于 IPv6,Cisco 无法发送新的 PD 请求,这意味着 IPv6 停止路由,直到 Cisco 决定是时候发送另一个 PD 请求为止。

我们的 ISP 已确定了问题所在,并编写了 EEM 来处理这种情况(虽然是权宜之计)。请参阅 [1]。我们的 887 中有 EEM:

event manager applet MONITOR-IPV6-DHCP-APP 
event syslog pattern "DIALER-6-BIND"
action 1.0 cli command "enable"
action 1.1 cli command "clear ipv6 dhcp client Dialer1"
action 2.0 syslog priority debugging msg "Refreshed IPv6 DHCP PD lease (Dialer rebind)"
!

但是似乎只有第一个命令(“启用”)被执行:

Feb  5 08:54:15.194 ACST: Vi2 LCP: I TERMREQ [Open] id 3 len 4
Feb  5 08:54:15.194 ACST: Vi2 PPP DISC: Received LCP TERMREQ from peer
Feb  5 08:54:15.194 ACST: PPP: NET STOP send to AAA.
Feb  5 08:54:15.194 ACST: Vi2 PPP: Phase is TERMINATING
Feb  5 08:54:15.194 ACST: Vi2 IPCP: Event[DOWN] State[Open to Starting]
Feb  5 08:54:15.194 ACST: Vi2 IPCP: Event[CLOSE] State[Starting to Initial]
Feb  5 08:54:15.198 ACST: Vi2 IPV6CP: Event[DOWN] State[Open to Starting]
Feb  5 08:54:15.198 ACST: Vi2 IPV6CP: Event[CLOSE] State[Starting to Initial]
Feb  5 08:54:15.198 ACST: Vi2 LCP: O TERMACK [Open] id 3 len 4
Feb  5 08:54:15.198 ACST: Vi2 LCP: Event[Receive TermReq] State[Open to Stopping]
Feb  5 08:54:15.198 ACST: Di1 Deleted neighbor route from AVL tree: topoid 0, address 150.101.xxx.xxx
Feb  5 08:54:15.198 ACST: Di1 IPCP: Remove route to 150.101.212.45
Feb  5 08:54:16.110 ACST: Vi2 PPP: Outbound ip packet dropped, line protocol not up
Feb  5 08:54:17.182 ACST: Vi2 PPP: No remote authentication for call-out
Feb  5 08:54:17.182 ACST: Vi2 LCP: Event[Timeout-] State[Stopping to Stopped]
Feb  5 08:54:17.182 ACST: Vi2 LCP: Event[DOWN] State[Stopped to Starting]
Feb  5 08:54:17.182 ACST: Vi2 PPP: Phase is DOWN
Feb  5 08:54:17.186 ACST: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to down
Feb  5 08:54:18.182 ACST: PPP: Alloc Context [85878D10]
Feb  5 08:54:18.182 ACST: ppp13 PPP: Phase is ESTABLISHING
Feb  5 08:54:18.182 ACST: Vi2 PPP: Using dialer call direction
Feb  5 08:54:18.182 ACST: Vi2 PPP: Treating connection as a callout
Feb  5 08:54:18.182 ACST: Vi2 PPP: Session handle[B3000015] Session id[13]
Feb  5 08:54:18.182 ACST: Vi2 LCP: Event[OPEN] State[Initial to Starting]
Feb  5 08:54:18.182 ACST: Vi2 PPP: No remote authentication for call-out
Feb  5 08:54:18.182 ACST: Vi2 LCP: O CONFREQ [Starting] id 1 len 10
Feb  5 08:54:18.182 ACST: Vi2 LCP:    MagicNumber 0x3640E9BC (0x05063640E9BC)
Feb  5 08:54:18.182 ACST: Vi2 LCP: Event[UP] State[Starting to REQsent]
Feb  5 08:54:18.234 ACST: Vi2 PPP: Outbound ip packet dropped, line protocol not up
Feb  5 08:54:18.378 ACST: Vi2 LCP: I CONFREQ [REQsent] id 83 len 15
Feb  5 08:54:18.378 ACST: Vi2 LCP:    AuthProto CHAP (0x0305C22305)
Feb  5 08:54:18.378 ACST: Vi2 LCP:    MagicNumber 0x36FC641E (0x050636FC641E)
Feb  5 08:54:18.378 ACST: Vi2 LCP: O CONFACK [REQsent] id 83 len 15
Feb  5 08:54:18.378 ACST: Vi2 LCP:    AuthProto CHAP (0x0305C22305)
Feb  5 08:54:18.378 ACST: Vi2 LCP:    MagicNumber 0x36FC641E (0x050636FC641E)
Feb  5 08:54:18.378 ACST: Vi2 LCP: Event[Receive ConfReq+] State[REQsent to ACKsent]
Feb  5 08:54:18.378 ACST: Vi2 LCP: I CONFACK [ACKsent] id 1 len 10
Feb  5 08:54:18.378 ACST: Vi2 LCP:    MagicNumber 0x3640E9BC (0x05063640E9BC)
Feb  5 08:54:18.378 ACST: Vi2 LCP: Event[Receive ConfAck] State[ACKsent to Open]
Feb  5 08:54:18.398 ACST: Vi2 PPP: Phase is AUTHENTICATING, by the peer
Feb  5 08:54:18.398 ACST: Vi2 LCP: State is Open
Feb  5 08:54:18.398 ACST: Vi2 CHAP: I CHALLENGE id 140 len 33 from "vwzp-windsor"
Feb  5 08:54:18.398 ACST: Vi2 CHAP: Using hostname from interface CHAP
Feb  5 08:54:18.398 ACST: Vi2 CHAP: Using password from interface CHAP
Feb  5 08:54:18.398 ACST: Vi2 CHAP: O RESPONSE id 140 len 59 from "[email protected]"
Feb  5 08:54:18.682 ACST: Vi2 LCP: I CONFREQ [Open] id 1 len 19
Feb  5 08:54:18.682 ACST: Vi2 LCP:    MRU 1492 (0x010405D4)
Feb  5 08:54:18.682 ACST: Vi2 LCP:    AuthProto CHAP (0x0305C22305)
Feb  5 08:54:18.682 ACST: Vi2 LCP:    MagicNumber 0xA38A8FBC (0x0506A38A8FBC)
Feb  5 08:54:18.682 ACST: Vi2 PPP DISC: PPP Renegotiating
Feb  5 08:54:18.682 ACST: PPP: NET STOP send to AAA.
Feb  5 08:54:18.686 ACST: Vi2 LCP: Event[LCP Reneg] State[Open to Open]
Feb  5 08:54:18.686 ACST: Vi2 LCP: Event[DOWN] State[Open to Starting]
Feb  5 08:54:18.686 ACST: Vi2 PPP: Phase is DOWN
Feb  5 08:54:18.686 ACST: PPP: Alloc Context [85878B48]
Feb  5 08:54:18.686 ACST: ppp13 PPP: Phase is ESTABLISHING
Feb  5 08:54:18.686 ACST: Vi2 PPP: Using dialer call direction
Feb  5 08:54:18.690 ACST: Vi2 PPP: Treating connection as a callout
Feb  5 08:54:18.690 ACST: Vi2 PPP: Session handle[59000016] Session id[13]
Feb  5 08:54:18.690 ACST: Vi2 LCP: Event[OPEN] State[Initial to Starting]
Feb  5 08:54:18.690 ACST: Vi2 PPP: No remote authentication for call-out
Feb  5 08:54:18.690 ACST: Vi2 LCP: O CONFREQ [Starting] id 1 len 10
Feb  5 08:54:18.690 ACST: Vi2 LCP:    MagicNumber 0x3640EBB9 (0x05063640EBB9)
Feb  5 08:54:18.690 ACST: Vi2 LCP: Event[UP] State[Starting to REQsent]
Feb  5 08:54:18.690 ACST: Vi2 LCP: I CONFREQ [REQsent] id 1 len 19
Feb  5 08:54:18.690 ACST: Vi2 LCP:    MRU 1492 (0x010405D4)
Feb  5 08:54:18.690 ACST: Vi2 LCP:    AuthProto CHAP (0x0305C22305)
Feb  5 08:54:18.690 ACST: Vi2 LCP:    MagicNumber 0xA38A8FBC (0x0506A38A8FBC)
Feb  5 08:54:18.690 ACST: Vi2 LCP: O CONFNAK [REQsent] id 1 len 8
Feb  5 08:54:18.690 ACST: Vi2 LCP:    MRU 1500 (0x010405DC)
Feb  5 08:54:18.690 ACST: Vi2 LCP: Event[Receive ConfReq-] State[REQsent to REQsent]
Feb  5 08:54:18.710 ACST: Vi2 LCP: I CONFACK [REQsent] id 1 len 10
Feb  5 08:54:18.710 ACST: Vi2 LCP:    MagicNumber 0x3640EBB9 (0x05063640EBB9)
Feb  5 08:54:18.710 ACST: Vi2 LCP: Event[Receive ConfAck] State[REQsent to ACKrcvd]
Feb  5 08:54:18.710 ACST: Vi2 LCP: I CONFREQ [ACKrcvd] id 2 len 19
Feb  5 08:54:18.710 ACST: Vi2 LCP:    MRU 1500 (0x010405DC)
Feb  5 08:54:18.710 ACST: Vi2 LCP:    AuthProto CHAP (0x0305C22305)
Feb  5 08:54:18.710 ACST: Vi2 LCP:    MagicNumber 0xA38A8FBC (0x0506A38A8FBC)
Feb  5 08:54:18.710 ACST: Vi2 LCP: O CONFACK [ACKrcvd] id 2 len 19
Feb  5 08:54:18.710 ACST: Vi2 LCP:    MRU 1500 (0x010405DC)
Feb  5 08:54:18.710 ACST: Vi2 LCP:    AuthProto CHAP (0x0305C22305)
Feb  5 08:54:18.710 ACST: Vi2 LCP:    MagicNumber 0xA38A8FBC (0x0506A38A8FBC)
Feb  5 08:54:18.710 ACST: Vi2 LCP: Event[Receive ConfReq+] State[ACKrcvd to Open]
Feb  5 08:54:18.718 ACST: Vi2 PPP: Phase is AUTHENTICATING, by the peer
Feb  5 08:54:18.718 ACST: Vi2 LCP: State is Open
Feb  5 08:54:18.758 ACST: Vi2 CHAP: I CHALLENGE id 141 len 31 from "lns20.mel4"
Feb  5 08:54:18.758 ACST: Vi2 CHAP: Using hostname from interface CHAP
Feb  5 08:54:18.758 ACST: Vi2 CHAP: Using password from interface CHAP
Feb  5 08:54:18.758 ACST: Vi2 CHAP: O RESPONSE id 141 len 59 from "[email protected]"
Feb  5 08:54:18.926 ACST: Vi2 CHAP: I SUCCESS id 141 len 4
Feb  5 08:54:18.926 ACST: Vi2 PPP: Phase is FORWARDING, Attempting Forward
Feb  5 08:54:18.926 ACST: Vi2 PPP: Queue IPCP code[1] id[1]
Feb  5 08:54:18.930 ACST: Vi2 PPP: Phase is ESTABLISHING, Finish LCP
Feb  5 08:54:18.930 ACST: Vi2 PPP: Phase is UP
Feb  5 08:54:18.930 ACST: Vi2 IPCP: Protocol configured, start CP. state[Initial]
Feb  5 08:54:18.930 ACST: Vi2 IPCP: Event[OPEN] State[Initial to Starting]
Feb  5 08:54:18.930 ACST: Vi2 IPCP: O CONFREQ [Starting] id 1 len 10
Feb  5 08:54:18.930 ACST: Vi2 IPCP:    Address 0.0.0.0 (0x030600000000)
Feb  5 08:54:18.930 ACST: Vi2 IPCP: Event[UP] State[Starting to REQsent]
Feb  5 08:54:18.930 ACST: Vi2 IPV6CP: Protocol configured, start CP. state[Initial]
Feb  5 08:54:18.930 ACST: Vi2 IPV6CP: Event[OPEN] State[Initial to Starting]
Feb  5 08:54:18.930 ACST: Vi2 IPV6CP: O CONFREQ [Starting] id 1 len 14
Feb  5 08:54:18.930 ACST: Vi2 IPV6CP:    Interface-Id CEEF:48FF:xxxx:xxxx (0x010ACEEF48FFxxxxxxxx)
Feb  5 08:54:18.930 ACST: Vi2 IPV6CP: Event[UP] State[Starting to REQsent]
Feb  5 08:54:18.930 ACST: Vi2 PPP: Process pending ncp packets
Feb  5 08:54:18.930 ACST: Vi2 IPCP: Redirect packet to Vi2
Feb  5 08:54:18.930 ACST: Vi2 IPCP: I CONFREQ [REQsent] id 1 len 10
Feb  5 08:54:18.930 ACST: Vi2 IPCP:    Address 150.101.xxx.xxx (0x03069665D42C)
Feb  5 08:54:18.930 ACST: Vi2 IPCP: O CONFACK [REQsent] id 1 len 10
Feb  5 08:54:18.930 ACST: Vi2 IPCP:    Address 150.101.xxx.xxx (0x03069665D42C)
Feb  5 08:54:18.930 ACST: Vi2 IPCP: Event[Receive ConfReq+] State[REQsent to ACKsent]
Feb  5 08:54:18.934 ACST: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to up
Feb  5 08:54:18.950 ACST: Vi2 IPCP: I CONFNAK [ACKsent] id 1 len 10
Feb  5 08:54:18.950 ACST: Vi2 IPCP:    Address 59.167.xxx.xxx (0x03063BA7B47D)
Feb  5 08:54:18.950 ACST: Vi2 IPCP: O CONFREQ [ACKsent] id 2 len 10
Feb  5 08:54:18.950 ACST: Vi2 IPCP:    Address 59.167.xxx.xxx (0x03063BA7B47D)
Feb  5 08:54:18.950 ACST: Vi2 IPCP: Event[Receive ConfNak/Rej] State[ACKsent to ACKsent]
Feb  5 08:54:18.950 ACST: Vi2 IPV6CP: I CONFREQ [REQsent] id 1 len 14
Feb  5 08:54:18.950 ACST: Vi2 IPV6CP:    Interface-Id 0224:14FF:FE9A:9A00 (0x010A022414FFFE9A9A00)
Feb  5 08:54:18.950 ACST: Vi2 IPV6CP: O CONFACK [REQsent] id 1 len 14
Feb  5 08:54:18.950 ACST: Vi2 IPV6CP:    Interface-Id 0224:14FF:FE9A:9A00 (0x010A022414FFFE9A9A00)
Feb  5 08:54:18.950 ACST: Vi2 IPV6CP: Event[Receive ConfReq+] State[REQsent to ACKsent]
Feb  5 08:54:18.950 ACST: Vi2 IPV6CP: I CONFACK [ACKsent] id 1 len 14
Feb  5 08:54:18.950 ACST: Vi2 IPV6CP:    Interface-Id CEEF:48FF:xxxx:xxxx (0x010ACEEF48FFxxxxxxxx)
Feb  5 08:54:18.950 ACST: Vi2 IPV6CP: Event[Receive ConfAck] State[ACKsent to Open]
Feb  5 08:54:18.970 ACST: Vi2 IPCP: I CONFACK [ACKsent] id 2 len 10
Feb  5 08:54:18.970 ACST: Vi2 IPCP:    Address 59.167.xxx.xxx (0x03063BA7B47D)
Feb  5 08:54:18.970 ACST: Vi2 IPCP: Event[Receive ConfAck] State[ACKsent to Open]
Feb  5 08:54:18.974 ACST: Vi2 IPV6CP: State is Open
Feb  5 08:54:18.974 ACST: Vi2 IPCP: State is Open
Feb  5 08:54:18.974 ACST: Vi2 DDR: dialer protocol up
Feb  5 08:54:18.974 ACST: Di1 IPCP: Install negotiated IP interface address 59.167.xxx.xxx
Feb  5 08:54:18.974 ACST: Di1 Added to neighbor route AVL tree: topoid 0, address 150.101.xxx.xxx
Feb  5 08:54:18.978 ACST: Di1 IPCP: Install route to 150.101.xxx.xxx
Feb  5 08:54:18.978 ACST: Vi2 DDR: dialer protocol up
Feb  5 08:59:18.342 ACST: %PARSER-5-CFGLOG_LOGGEDCMD: User:admin  logged command:!exec: enable

清除 Dialer1 上的 dhcp 客户端的(重要)部分和 syslog 命令从未发生。我已与 ISP 交谈过,他们“不支持”思科,尽管我们从他们那里购买了路由器,并且他们对其进行了初始配置。

[1]http://www.internode.on.net/support/guides/internet_access/ipv6/cisco_routers/

答案1

从日志来看,EEM 脚本似乎根本没有执行过。

它等待字符串,DIALER-6-BIND但似乎没有出现。但是,您可以修改 EEM 脚本以匹配此日志行:

%LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access2, changed state to up

EEM 脚本如下所示:

event manager applet MONITOR-IPV6-DHCP-APP 
event syslog pattern "Virtual-Access2, changed state to up"
action 1.0 cli command "enable"
action 1.1 cli command "clear ipv6 dhcp client Dialer1"
action 2.0 syslog priority debugging msg "Refreshed IPv6 DHCP PD lease (Dialer rebind)"

相关内容