AR1200串口經(jīng)協(xié)議轉(zhuǎn)換器和友商路由器對(duì)接協(xié)議不UP
2014/10/12 13:42:32點(diǎn)擊:
問(wèn)題描述
版本信息:
AR1200版本為Version 5.110 (AR1200 V200R002C01SPC200)。
組網(wǎng)描述:
AR1200的串口通過(guò)協(xié)議轉(zhuǎn)換器和中間傳輸鏈路和對(duì)端路由器的串口互聯(lián)。
故障現(xiàn)象:
用AR1220路由器替換友商路由器,AR1220串口物理狀態(tài)UP,協(xié)議狀態(tài)DOWN;串口連線回退連接到友商路由器,串口物理狀態(tài)UP,協(xié)議狀態(tài)UP。
AR1200版本為Version 5.110 (AR1200 V200R002C01SPC200)。
組網(wǎng)描述:
AR1200的串口通過(guò)協(xié)議轉(zhuǎn)換器和中間傳輸鏈路和對(duì)端路由器的串口互聯(lián)。
故障現(xiàn)象:
用AR1220路由器替換友商路由器,AR1220串口物理狀態(tài)UP,協(xié)議狀態(tài)DOWN;串口連線回退連接到友商路由器,串口物理狀態(tài)UP,協(xié)議狀態(tài)UP。
告警信息
(1)在AR1220上通過(guò)命令display interface serial1/0/1查看,發(fā)現(xiàn)串口物理狀態(tài)UP,協(xié)議狀態(tài)DOWN,鏈路LCP狀態(tài)為reqsent。
[SX1_EP_AR_06-Serial1/0/1]dis int s1/0/1
Serial1/0/1 current state : UP
Line protocol current state : DOWN
Description:to-WuXinPOS (YiDong)
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 211.142.27.74/30
Link layer protocol is PPP
LCP reqsent
Last physical up time : 2013-08-03 01:34:17
Last physical down time : 2013-08-03 01:34:14
Current system time: 2013-08-03 01:34:22
Physical layer is synchronous, Virtualbaudrate is 64000 bps
Interface is DTE, Cable type is V35, Clock mode is TC
(2)打開(kāi)debugging開(kāi)關(guān),關(guān)閉串口后再打開(kāi),發(fā)現(xiàn):串口LCP協(xié)議從initial,經(jīng)starting,只能到達(dá)reqsent,不能到達(dá)opened狀態(tài),LCP鏈路不能建立。
debugging ppp lcp all
[SX1_EP_AR_06-Serial1/0/1]shutdown
[SX1_EP_AR_06-Serial1/0/1]undo shutdown
[SX1_EP_AR_06-Serial1/0/1]
Aug 3 2013 01:35:02.260.3+00:00 SX1_EP_AR_06 PPP/7/debug2:
PPP Event:
Serial1/0/1 LCP Open Event
state initial
[SX1_EP_AR_06-Serial1/0/1]
Aug 3 2013 01:35:02.260.4+00:00 SX1_EP_AR_06 PPP/7/debug2:
PPP State Change:
Serial1/0/1 LCP : initial --> starting
[SX1_EP_AR_06-Serial1/0/1]
Aug 3 2013 01:35:02.260.5+00:00 SX1_EP_AR_06 PPP/7/debug2:
PPP Event:
Serial1/0/1 LCP Lower Up Event
state starting
[SX1_EP_AR_06-Serial1/0/1]
Aug 3 2013 01:35:02.260.6+00:00 SX1_EP_AR_06 PPP/7/debug2:
PPP State Change:
Serial1/0/1 LCP : starting --> reqsent
[SX1_EP_AR_06-Serial1/0/1]dis int s1/0/1
Serial1/0/1 current state : UP
Line protocol current state : DOWN
Description:to-WuXinPOS (YiDong)
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 211.142.27.74/30
Link layer protocol is PPP
LCP reqsent
Last physical up time : 2013-08-03 01:34:17
Last physical down time : 2013-08-03 01:34:14
Current system time: 2013-08-03 01:34:22
Physical layer is synchronous, Virtualbaudrate is 64000 bps
Interface is DTE, Cable type is V35, Clock mode is TC
(2)打開(kāi)debugging開(kāi)關(guān),關(guān)閉串口后再打開(kāi),發(fā)現(xiàn):串口LCP協(xié)議從initial,經(jīng)starting,只能到達(dá)reqsent,不能到達(dá)opened狀態(tài),LCP鏈路不能建立。
debugging ppp lcp all
[SX1_EP_AR_06-Serial1/0/1]shutdown
[SX1_EP_AR_06-Serial1/0/1]undo shutdown
[SX1_EP_AR_06-Serial1/0/1]
Aug 3 2013 01:35:02.260.3+00:00 SX1_EP_AR_06 PPP/7/debug2:
PPP Event:
Serial1/0/1 LCP Open Event
state initial
[SX1_EP_AR_06-Serial1/0/1]
Aug 3 2013 01:35:02.260.4+00:00 SX1_EP_AR_06 PPP/7/debug2:
PPP State Change:
Serial1/0/1 LCP : initial --> starting
[SX1_EP_AR_06-Serial1/0/1]
Aug 3 2013 01:35:02.260.5+00:00 SX1_EP_AR_06 PPP/7/debug2:
PPP Event:
Serial1/0/1 LCP Lower Up Event
state starting
[SX1_EP_AR_06-Serial1/0/1]
Aug 3 2013 01:35:02.260.6+00:00 SX1_EP_AR_06 PPP/7/debug2:
PPP State Change:
Serial1/0/1 LCP : starting --> reqsent
處理過(guò)程
LCP鏈路不能建立,需要繼續(xù)排查串口參數(shù)設(shè)置。
1, 原路由器串口封裝協(xié)議encapsulation ppp,AR1220串口下配置link-protocol ppp保持不變。
2, 修改串口校驗(yàn)碼為crc 32,測(cè)試不通過(guò),恢復(fù)為crc 16默認(rèn)狀態(tài)。
3, 修改串口時(shí)鐘為clock master,測(cè)試不通過(guò),恢復(fù)為clock slave默認(rèn)狀態(tài)。
4, 檢查本端協(xié)議轉(zhuǎn)換器接口設(shè)置,發(fā)現(xiàn)有收發(fā)信號(hào)電平設(shè)置,嘗試修改AR1220串口收發(fā)時(shí)鐘設(shè)置。
[SX1_EP_AR_06-Serial1/0/1]?
Serial1/0/1 interface view commands:
…
invert Configure Clock Invert
…
[SX1_EP_AR_06-Serial1/0/1]invert ?
receive-clock Receive-Clock
transmit-clock Transmit-Clock
[SX1_EP_AR_06-Serial1/0/1]invert receive-clock ?
Please press ENTER to execute command
串口下設(shè)置invert receive-clock后,測(cè)試發(fā)現(xiàn)串口協(xié)議up。
[SX1_EP_AR_06]dis interface Serial 1/0/1
Serial1/0/1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2013-08-03 01:58:15
Description:to-WuXinPOS (YiDong)
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 211.142.27.74/30
Link layer protocol is PPP
LCP opened, IPCP opened
Last physical up time : 2013-08-03 01:56:45
Last physical down time : 2013-08-03 01:56:20
Current system time: 2013-08-12 11:09:46
Physical layer is synchronous, Virtualbaudrate is 64000 bps
Interface is DTE, Cable type is V35, Clock mode is TC
1, 原路由器串口封裝協(xié)議encapsulation ppp,AR1220串口下配置link-protocol ppp保持不變。
2, 修改串口校驗(yàn)碼為crc 32,測(cè)試不通過(guò),恢復(fù)為crc 16默認(rèn)狀態(tài)。
3, 修改串口時(shí)鐘為clock master,測(cè)試不通過(guò),恢復(fù)為clock slave默認(rèn)狀態(tài)。
4, 檢查本端協(xié)議轉(zhuǎn)換器接口設(shè)置,發(fā)現(xiàn)有收發(fā)信號(hào)電平設(shè)置,嘗試修改AR1220串口收發(fā)時(shí)鐘設(shè)置。
[SX1_EP_AR_06-Serial1/0/1]?
Serial1/0/1 interface view commands:
…
invert Configure Clock Invert
…
[SX1_EP_AR_06-Serial1/0/1]invert ?
receive-clock Receive-Clock
transmit-clock Transmit-Clock
[SX1_EP_AR_06-Serial1/0/1]invert receive-clock ?
Please press ENTER to execute command
串口下設(shè)置invert receive-clock后,測(cè)試發(fā)現(xiàn)串口協(xié)議up。
[SX1_EP_AR_06]dis interface Serial 1/0/1
Serial1/0/1 current state : UP
Line protocol current state : UP
Last line protocol up time : 2013-08-03 01:58:15
Description:to-WuXinPOS (YiDong)
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 211.142.27.74/30
Link layer protocol is PPP
LCP opened, IPCP opened
Last physical up time : 2013-08-03 01:56:45
Last physical down time : 2013-08-03 01:56:20
Current system time: 2013-08-12 11:09:46
Physical layer is synchronous, Virtualbaudrate is 64000 bps
Interface is DTE, Cable type is V35, Clock mode is TC
根因
兩端路由器串口互聯(lián),協(xié)議不UP的可能原因有:
1, 串口兩端封裝協(xié)議ppp和hdlc配置不一致。
2, 串口兩端循環(huán)校驗(yàn)參數(shù)CRC16和CRC32設(shè)置不一致。
3, 串口兩端主備時(shí)鐘配置不一致。
4, 路由器串口互聯(lián),中間經(jīng)過(guò)協(xié)議轉(zhuǎn)換器,需要考慮路由器串口和協(xié)議轉(zhuǎn)換器接口的對(duì)接參數(shù)設(shè)置。
1, 串口兩端封裝協(xié)議ppp和hdlc配置不一致。
2, 串口兩端循環(huán)校驗(yàn)參數(shù)CRC16和CRC32設(shè)置不一致。
3, 串口兩端主備時(shí)鐘配置不一致。
4, 路由器串口互聯(lián),中間經(jīng)過(guò)協(xié)議轉(zhuǎn)換器,需要考慮路由器串口和協(xié)議轉(zhuǎn)換器接口的對(duì)接參數(shù)設(shè)置。
建議與總結(jié)
建議與總結(jié):
路由器串口互聯(lián)時(shí),不但要保持兩端串口互聯(lián)參數(shù)設(shè)置一致,還要考慮如果路由器互聯(lián)中間經(jīng)過(guò)協(xié)議轉(zhuǎn)換器,路由器和協(xié)議轉(zhuǎn)換器對(duì)接要進(jìn)行接口參數(shù)設(shè)置。
配置樣例:
友商BD2600路由器:
!
interface Serial0/3
ip address 211.142.27.74 255.255.255.252
no ip directed-broadcast
encapsulation ppp
!
AR1220 路由器:
#
interface Serial1/0/1
link-protocol ppp
description to-WuXinPOS (YiDong)
ip address 211.142.27.74 255.255.255.252
invert receive-clock //配置串口接收時(shí)鐘翻轉(zhuǎn)
#
路由器串口互聯(lián)時(shí),不但要保持兩端串口互聯(lián)參數(shù)設(shè)置一致,還要考慮如果路由器互聯(lián)中間經(jīng)過(guò)協(xié)議轉(zhuǎn)換器,路由器和協(xié)議轉(zhuǎn)換器對(duì)接要進(jìn)行接口參數(shù)設(shè)置。
配置樣例:
友商BD2600路由器:
!
interface Serial0/3
ip address 211.142.27.74 255.255.255.252
no ip directed-broadcast
encapsulation ppp
!
AR1220 路由器:
#
interface Serial1/0/1
link-protocol ppp
description to-WuXinPOS (YiDong)
ip address 211.142.27.74 255.255.255.252
invert receive-clock //配置串口接收時(shí)鐘翻轉(zhuǎn)
#
- 上一篇:AR路由器作為AC并且使用WPA或WPA2安全認(rèn)證方式時(shí)終端 2014/10/12
- 下一篇:AR G3路由器快速清除Console登錄密碼并恢復(fù)配置的步 2014/10/12