이 문서에서는 NM-AM 아날로그 모뎀 네트워크 모듈이 있는 모뎀을 사용하여 다이얼아웃을 구성하는 방법을 보여 줍니다.이 시나리오에서는 NM-8AM 모뎀 모듈이 있는 라우터가 중앙 사이트 라우터의 PRI(Primary Rate Interface)에 전화를 겁니다.
이 문서에서는 모뎀 구성과 관련된 다양한 문제를 잘 알고 있다고 가정합니다.이러한 문제에 대한 자세한 내용은 모뎀 라우터 연결 가이드를 참조하십시오.
이 문서에 대한 특정 요건이 없습니다.
이 구성은 아래의 소프트웨어 및 하드웨어 버전을 사용하여 개발 및 테스트되었습니다.
Cisco IOS® Software Release 12.1(5)T를 실행하는 NM-8AM 카드가 장착된 Cisco 3640 라우터.
문서 규칙에 대한 자세한 내용은 Cisco 기술 팁 표기 규칙을 참조하십시오.
이 섹션에는 이 문서에서 설명하는 기능을 구성하기 위한 정보가 표시됩니다.
참고: 이 문서에 사용된 명령에 대한 추가 정보를 찾으려면 명령 조회 도구(등록된 고객만 해당)를 사용합니다.
이 문서에서는 아래 다이어그램에 표시된 네트워크 설정을 사용합니다.
이 문서에서는 아래 표시된 구성을 사용합니다.
라우터 1(Cisco 3640) |
---|
Current configuration : 1676 bytes ! version 12.1 no service single-slot-reload-enable service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname router1 ! enable password ww ! username router2 password 0 ww !--- username for remote router (Router 2) and shared secret !--- shared secret(used for CHAP authentication) must be the same on both sides ip subnet-zero ! chat-script async "" "AT" OK "ATDT\T" TIMEOUT 30 CONNECT \c !--- chat script "async" used for the dialout connection ! ! interface Ethernet2/0 ip address 10.200.20.51 255.255.255.0 half-duplex ! interface Async104 !--- async interface corresponding to the modem !--- This was determined using the show line command. ip address 10.10.0.2 255.255.255.252 !--- IP address of this async interface encapsulation ppp dialer in-band dialer wait-for-carrier-time 180 dialer map ip 10.10.0.1 name router2 modem-script async 8214 !--- dialer map statements for the remote router !--- The name must match the one used by the remote router to identify itself. !--- use modem chat script "async" for this connection dialer-group 1 !--- apply interesting traffic definition from dialer-list 1 async mode dedicated !--- Place the line into dedicated asynchronous network mode. !--- This interface is now automatically configured for PPP connections. ppp authentication chap !--- use chap authentication ! ip classless ip route 10.10.0.0 255.255.0.0 10.10.0.1 !--- Traffic for the 10.10.0.0/16 network uses a next hop of 10.10.0.1 ip route 10.10.0.1 255.255.255.255 Async104 !--- the next hop for 10.10.0.1/32 (which is also the next hop for the !--- previous route) is interface Async104. ! dialer-list 1 protocol ip permit !--- All IP traffic is defined interesting. !--- This is applied to Async104 using dialer-group 1. ! ! line con 0 exec-timeout 0 0 password ww transport input none line 33 38 line 97 103 modem InOut transport input all line 104 !--- line interface configuration for Async 104 modem InOut !--- allow incoming and outgoing modem calls on this line transport input all transport output lat pad v120 lapb-ta telnet rlogin udptn flowcontrol hardware line aux 0 line vty 0 4 password ww login ! end |
이 3600 섀시에서 NM-8AM 카드는 슬롯 3에 설치됩니다. Cisco 3600 Series Routers 문서에서 비동기 라인의 번호가 매겨진 방법을 참조하여 슬롯 3에 라인 97~128이 예약되어 있는지 확인합니다.구성해야 하는 특정 비동기 인터페이스를 확인하려면 show line 명령을 사용하여 사용 가능한 행을 확인합니다.이 컨피그레이션에서는 해당 범위 내에서 97-104(8행)행만 사용할 수 있습니다.따라서 마지막 모뎀이 line/async104인 동안 카드의 첫 번째 모뎀을 구성하려면 라인 97(및 인터페이스 async97)을 구성합니다.
현재 이 구성에 대해 사용 가능한 확인 절차가 없습니다.
전화 걸기 연결을 트러블슈팅하려면 다음 단계를 완료하십시오.
모뎀 구성을 확인합니다.
모뎀 구성을 확인합니다.모뎀에 해당하는 회선 컨피그레이션 및 인터페이스 async를 모두 확인해야 합니다.
모뎀에 텔넷을 역순으로 연결하고 다이얼아웃을 시작합니다.
포트를 모뎀으로 역텔넷하고 AT 명령 집합을 사용하여 원격 장치에 다이얼하고 연결합니다.모뎀 하드웨어 및 전화 회로가 작동하는지 확인하는 데 사용할 수 있습니다.이 예에서는 모뎀 포트가 회선 104에 있으므로 텔넷을 라우터의 포트 2104로 전환합니다.역방향 텔넷에 대한 자세한 내용은 모뎀에 대한 역방향 텔넷 세션 설정을 참조하십시오.
router1#telnet 10.200.20.51 2104 Trying 10.200.20.51, 2104 ... Open User Access Verification Username: admin Password: !--- Authentication performed by local router for the reverse telnet at OK atdt 81690 !--- The modem dials (81690) and connects. !--- This takes approximately 30-45 seconds. CONNECT 31200/ARQ/V34/LAPM/V42BIS !--- Connect speed and protocols that were negotiated User Access Verification Username: admin Password: !--- Authentication performed by remote router for the incoming call router2> !--- Remote router's prompt
모뎀 설정을 확인하기 위해 다른 AT 명령을 적용할 수도 있습니다.아날로그 모뎀 모듈에 사용 가능한 AT 명령에 대한 자세한 내용은 아날로그 모뎀 네트워크 모듈에 대한 AT 명령 세트 및 등록 요약을 참조하십시오.
채팅 스크립트를 수동으로 활성화하고 다이얼을 시작합니다.
채팅 스크립트를 활성화하고 다이얼을 시작하려면 start-chat 명령을 사용합니다.start-chat 명령을 사용하려면 활성화할 채팅 스크립트의 이름, 전화를 걸 전화 번호 및 전화를 걸 모뎀 인터페이스를 지정해야 합니다.
비동기 인터페이스에 대한 경로가 있는지 확인합니다.
비동기 인터페이스에 대한 경로가 있는지 확인하려면 show ip route 명령을 사용합니다.경로가 없는 경우 고정 경로를 생성합니다.예를 들면 다음과 같습니다.
ip route 10.10.0.1 255.255.255.255 Async104
4단계에서 지정한 next-hop 네트워크로 향하는 ping을 생성합니다.
4단계에서 next-hop 네트워크를 사용하여 지정된 원격 라우터에 대한 ping은 라우터가 원격 장치에 다이얼합니다.
router1#ping 10.10.0.1
연결 문제 해결 방법에 대한 자세한 내용은 아웃바운드 통화 문제 해결을 참조하십시오.
채팅 스크립트 이름이 다이얼러 맵 문에 지정된 이름과 동일한지 확인합니다.또한 전화를 걸 전화 번호가 올바르게 지정되었는지 확인합니다.
흥미로운 트래픽이 올바르게 정의되었는지 확인합니다.흥미로운 트래픽은 dialer-list 명령으로 지정됩니다.
흥미로운 트래픽 정의가 비동기 인터페이스에 적용되었는지 확인합니다.이 작업은 dialer-group 명령을 사용하여 수행됩니다. 여기서 그룹 번호는 dialer-list 명령으로 지정된 흥미로운 트래픽 정의와 일치해야 합니다.
PAP/CHAP 인증을 위한 사용자 이름과 암호가 올바른지 확인합니다.
다이얼러 맵 문의 이름, IP 주소 및 전화 번호를 다이얼할 수 있는지 확인합니다.
debug 명령을 실행하기 전에 Debug Commands에 대한 중요 정보를 참조하십시오.
debug dialer - 다이얼러 인터페이스에서 수신된 패킷에 대한 디버깅 정보를 표시합니다.인터페이스에서 DDR(Dial on Demand Routing)을 활성화하면 통화 원인(다이얼링 원인)에 대한 정보도 표시됩니다.자세한 내용은 Debug Commands 설명서의 디버그 다이얼러 정보를 참조하십시오.
디버그 모뎀 - 라우터에 모뎀 회선 활동, 모뎀 제어 및 프로세스 활성화 메시지를 표시합니다.
디버그 채팅 - async/POTS 다이얼링이 시작될 때 채팅 스크립트의 실행을 모니터링합니다.전화 접속 기술 참조:자세한 내용은 문제 해결 기술을 참조하십시오.
debug ppp negotiation - LCP(Link Control Protocol), 인증 및 NCP(Network Control Protocol)를 비롯한 PPP 구성 요소를 협상하는 동안 PPP 트래픽 및 교환에 대한 정보를 표시합니다.성공적인 PPP 협상이 먼저 LCP 상태를 열고 인증한 다음 NCP를 협상합니다.
debug ppp authentication - CHAP(Challenge Authentication Protocol) 패킷 교환 및 PAP(Password Authentication Protocol) 교환을 비롯한 PPP 인증 프로토콜 메시지를 표시합니다.
router1#show debug General OS: Modem control/process activation debugging is on Dial on demand: Dial on demand events debugging is on Generic IP: ICMP packet debugging is on PPP: PPP protocol negotiation debugging is on Chat Scripts: Chat scripts activity debugging is on router1# router1#ping 10.10.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.10.0.1, timeout is 2 seconds: *Mar 1 00:22:58.663: As104 DDR: Dialing cause ip (s=10.10.0.2, d=10.10.0.1) !--- Dialing reason is the ping for 10.10.10.1 !--- The dialout is using Async104. *Mar 1 00:22:58.663: As104 DDR: Attempting to dial 8214 !--- Phone number to be dialed *Mar 1 00:22:58.663: CHAT104: Attempting async line dialer script *Mar 1 00:22:58.663: CHAT104: Dialing using Modem script: async & System script: none !--- Use chat script named "async" *Mar 1 00:22:58.663: CHAT104: process started *Mar 1 00:22:58.667: CHAT104: Asserting DTR *Mar 1 00:22:58.667: CHAT104: Chat script async started !--- Chat-script "async" is started. *Mar 1 00:22:58.667: CHAT104: Sending string: AT *Mar 1 00:22:58.667: CHAT104: Expecting string: OK *Mar 1 00:22:58.739: CHAT104: Completed match for expect: OK *Mar 1 00:22:58.739: CHAT104: Sending string: ATDT\T<8214> *Mar 1 00:22:58.739: CHAT104: Expecting string: CONNECT *Mar 1 00:22:58.751: Modem 3/7 Mcom: in modem state 'Dialing/Answering' *Mar 1 00:23:10.775: Modem 3/7 Mcom: in modem state 'Waiting for Carrier' *Mar 1 00:23:21.903: Modem 3/7 Mcom: in modem state 'Connected' *Mar 1 00:23:22.323: Modem 3/7 Mcom: CONNECT at 26400/24000(Tx/Rx), V34, LAPM, V42bis, Originate !--- Connect speeds, protocols and so forth, and so on negotiated for the connection !--- Note that the modem used is 3/7 which is equivalent to line 104. !--- Refer to How Async Lines are Numbered in Cisco 3600 Series Routers. *Mar 1 00:23:22.375: CHAT104: Completed match for expect: CONNECT *Mar 1 00:23:22.375: CHAT104: Sending string: \c *Mar 1 00:23:22.375: CHAT104: Chat script async finished, status = Success !--- Chat script is successful. Notice the Expect/Send attributes and the time elapsed. *Mar 1 00:23:22.375: Modem 3/7 Mcom: switching to PPP mode *Mar 1 00:23:22.379: TTY104: no timer type 1 to destroy *Mar 1 00:23:22.379: TTY104: no timer type 0 to destroy *Mar 1 00:23:22.379: As104 IPCP: Install route to 10.10.0.1 *Mar 1 00:23:24.379: %LINK-3-UPDOWN: Interface Async104, changed state to up *Mar 1 00:23:24.379: As104 DDR: Dialer statechange to up *Mar 1 00:23:24.379: As104 DDR: Dialer call has been placed *Mar 1 00:23:24.379: As104 PPP: Treating connection as a callout !--- PPP negotiation begins. *Mar 1 00:23:24.379: As104 PPP: Phase is ESTABLISHING, Active Open [0 sess, 0 load] *Mar 1 00:23:24.379: Modem 3/7 Mcom: PPP escape map: Tx map = FFFFFFFF, Rx map = 0 *Mar 1 00:23:24.379: As104 LCP: O CONFREQ [Closed] id 17 len 25 *Mar 1 00:23:24.379: As104 LCP: ACCM 0x000A0000 (0x0206000A0000) *Mar 1 00:23:24.379: As104 LCP: AuthProto CHAP (0x0305C22305) *Mar 1 00:23:24.379: As104 LCP: MagicNumber 0x1090720F (0x05061090720F) *Mar 1 00:23:24.379: As104 LCP: PFC (0x0702) *Mar 1 00:23:24.379: As104 LCP: ACFC (0x0802) *Mar 1 00:23:24.543: As104 LCP: I CONFREQ [REQsent] id 1 len 25 *Mar 1 00:23:24.543: As104 LCP: ACCM 0x000A0000 (0x0206000A0000) *Mar 1 00:23:24.543: As104 LCP: AuthProto CHAP (0x0305C22305) *Mar 1 00:23:24.543: As104 LCP: MagicNumber 0x41B616FF (0x050641B616FF) *Mar 1 00:23:24.543: As104 LCP: PFC (0x0702) *Mar 1 00:23:24.543: As104 LCP: ACFC (0x0802) *Mar 1 00:23:24.543: As104 LCP: O CONFACK [REQsent] id 1 len 25 *Mar 1 00:23:24.543: As104 LCP: ACCM 0x000A0000 (0x0206000A0000) *Mar 1 00:23:24.543: As104 LCP: AuthProto CHAP (0x0305C22305) *Mar 1 00:23:24.543: As104 LCP: MagicNumber 0x41B616FF (0x050641B616FF) *Mar 1 00:23:24.543: As104 LCP: PFC (0x0702) *Mar 1 00:23:24.543: As104 LCP: ACFC (0x0802) *Mar 1 00:23:24.555: As104 LCP: I CONFACK [ACKsent] id 17 len 25 *Mar 1 00:23:24.555: As104 LCP: ACCM 0x000A0000 (0x0206000A0000) *Mar 1 00:23:24.555: As104 LCP: AuthProto CHAP (0x0305C22305) *Mar 1 00:23:24.559: As104 LCP: MagicNumber 0x1090720F (0x05061090720F) *Mar 1 00:23:24.559: As104 LCP: PFC (0x0702) *Mar 1 00:23:24.559: As104 LCP: ACFC (0x0802) *Mar 1 00:23:24.559: As104 LCP: State is Open !--- LCP negotiation is complete. *Mar 1 00:23:24.559: Modem 3/7 Mcom: PPP escape map: Tx map = A0000, Rx map = 0 *Mar 1 00:23:24.559: As104 PPP: Phase is AUTHENTICATING, by both [0 sess, 0 load] !--- Two-way PPP authentication begins. *Mar 1 00:23:24.559: As104 CHAP: O CHALLENGE id 4 len 28 from "router1" *Mar 1 00:23:24.691: As104 CHAP: I CHALLENGE id 1 len 28 from "router2" *Mar 1 00:23:24.691: As104 CHAP: O RESPONSE id 1 len 28 from "router1" *Mar 1 00:23:24.707: As104 CHAP: I RESPONSE id 4 len 28 from "router2" *Mar 1 00:23:24.707: As104 CHAP: O SUCCESS id 4 len 4 *Mar 1 00:23:24.815: As104 CHAP: I SUCCESS id 1 len 4 !--- Incoming and outgoing CHAP authentication is successful. *Mar 1 00:23:24.815: As104 PPP: Phase is UP [0 sess, 0 load] *Mar 1 00:23:24.819: As104 IPCP: O CONFREQ [Closed] id 6 len 10 *Mar 1 00:23:24.819: As104 IPCP: Address 10.10.0.2 (0x03060A0A0002) *Mar 1 00:23:24.835: As104 IPCP: I CONFREQ [REQsent] id 1 len 10 *Mar 1 00:23:24.835: As104 IPCP: Address 10.10.0.1 (0x03060A0A0001) *Mar 1 00:23:24.839: As104 IPCP: O CONFACK [REQsent] id 1 len 10 *Mar 1 00:23:24.839: As104 IPCP: Address 10.10.0.1 (0x03060A0A0001) *Mar 1 00:23:24.931: As104 IPCP: I CONFACK [ACKsent] id 6 len 10 *Mar 1 00:23:24.931: As104 IPCP: Address 10.10.0.2 (0x03060A0A0002) *Mar 1 00:23:24.931: As104 IPCP: State is Open !--- IP Control Protocol (IPCP) negotiation is complete. *Mar 1 00:23:24.931: As104 DDR: dialer protocol up *Mar 1 00:23:25.379: %LINEPROTO-5-UPDOWN: Line protocol on Interface Async104, changed state to up !--- Interface is up.