LAB CME. Cấu hình Digital Interface (Phần 3) -

LAB CME. Cấu hình Digital Interface (Phần 3) -

LAB CME. Cấu hình Digital Interface (Phần 3) -

LAB CME. Cấu hình Digital Interface (Phần 3) -

LAB CME. Cấu hình Digital Interface (Phần 3) -
LAB CME. Cấu hình Digital Interface (Phần 3) -
(028) 35124257 - 0933 427 079

LAB CME. Cấu hình Digital Interface (Phần 3)

02-07-2020

Bước 6: Kiểm tra trạng thái ISDN và các cổng voice-port trên router CME

Kiểm tra trạng thái kết nối Layer 1, Layer 2, Layer 3 của đường E1 (Serial0/2/0:15).

CME# show isdn status

Global ISDN Switchtype = primary-ni

ISDN Serial0/2/0:15 interface

        dsl 0, interface ISDN Switchtype = primary-ni

    Layer 1 Status:

        ACTIVE

    Layer 2 Status:

        TEI = 0, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED

    Layer 3 Status:

        0 Active Layer 3 Call(s)

    Active dsl 0 CCBs = 0

    The Free Channel Mask:  0xFFFF7FFF

    Number of L2 Discards = 0, L2 Session ID = 86

    Total Allocated ISDN CCBs = 0

CME#

 

CME# show running-config | include voice-port

voice-port 0/2/0:15

CME#

 

CME# show interfaces s0/2/0:15

Serial0/2/0:15 is up, line protocol is up (spoofing)

  Hardware is DSX1

  MTU 1500 bytes, BW 64 Kbit/sec, DLY 20000 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation HDLC, loopback not set

  Keepalive set (10 sec)

  Last input 00:00:16, output never, output hang never

  Last clearing of "show interface" counters never

  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

  Queueing strategy: weighted fair

  Output queue: 0/1000/64/0 (size/max total/threshold/drops)

     Conversations  0/1/256 (active/max active/max total)

     Reserved Conversations 0/0 (allocated/max allocated)

     Available Bandwidth 48 kilobits/sec

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     366 packets input, 1175 bytes, 0 no buffer

     Received 0 broadcasts (0 IP multicasts)

     0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

     366 packets output, 1144 bytes, 0 underruns

     0 output errors, 0 collisions, 0 interface resets

     0 unknown protocol drops

     0 output buffer failures, 0 output buffers swapped out

     1 carrier transitions

  Timeslot(s) Used:16, SCC: 0, Transmitter delay is 0 flags

CME#

Kiểm tra trạng thái của E1 controller trên router, nếu không có slip nghĩa là đường truyền không bị nhiễu.

CME# show controllers e1 0/2/0

E1 0/2/0 is up.

  Applique type is Channelized E1 - balanced

  No alarms detected.

  alarm-trigger is not set

  Version info Firmware: 20100222, FPGA: 13, spm_count = 0

  Framing is CRC4, Line Code is HDB3, Clock Source is Line.

  Data in current interval (148 seconds elapsed):

     0 Line Code Violations, 0 Path Code Violations

     0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins

     0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs

  Data in Interval 1:

     0 Line Code Violations, 0 Path Code Violations

     0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins

     0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs

  Data in Interval 2:

     185 Line Code Violations, 0 Path Code Violations

     1 Slip Secs, 0 Fr Loss Secs, 1 Line Err Secs, 1 Degraded Mins

     2 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 555 Unavail Secs

  Data in Interval 3:

     0 Line Code Violations, 0 Path Code Violations

     0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins

     0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 900 Unavail Secs

  Data in Interval 4:

     0 Line Code Violations, 0 Path Code Violations

     0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins

     0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 900 Unavail Secs

  Data in Interval 5:

     0 Line Code Violations, 0 Path Code Violations

     0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins

     0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 900 Unavail Secs

  Data in Interval 6:

     0 Line Code Violations, 0 Path Code Violations

     0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins

     0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 900 Unavail Secs

  Total Data (last 6 15 minute intervals):

     185 Line Code Violations, 0 Path Code Violations,

     1 Slip Secs, 0 Fr Loss Secs, 1 Line Err Secs, 1 Degraded Mins,

     2 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 4155 Unavail Secs

CME#

Kiểm tra quá trình gửi nhận (TX/RX) các packet giữa router CME và router PSTN.

CME# debug isdn q921

debug isdn q921 is              ON.

CME#

May 13 08:14:02.615: ISDN Se0/2/0:15 Q921: User TX -> RRp sapi=0 tei=0 nr=3

May 13 08:14:02.619: ISDN Se0/2/0:15 Q921: User RX <- RRp sapi=0 tei=0 nr=3

May 13 08:14:02.619: ISDN Se0/2/0:15 Q921: User TX -> RRf sapi=0 tei=0 nr=3

May 13 08:14:02.619: ISDN Se0/2/0:15 Q921: User RX <- RRf sapi=0 tei=0 nr=3

CME#

May 13 08:14:32.619: ISDN Se0/2/0:15 Q921: User TX -> RRp sapi=0 tei=0 nr=3

May 13 08:14:32.623: ISDN Se0/2/0:15 Q921: User RX <- RRp sapi=0 tei=0 nr=3

May 13 08:14:32.623: ISDN Se0/2/0:15 Q921: User TX -> RRf sapi=0 tei=0 nr=3

May 13 08:14:32.623: ISDN Se0/2/0:15 Q921: User RX <- RRf sapi=0 tei=0 nr=3

CME#

May 13 08:15:02.623: ISDN Se0/2/0:15 Q921: User TX -> RRp sapi=0 tei=0 nr=3

May 13 08:15:02.627: ISDN Se0/2/0:15 Q921: User RX <- RRp sapi=0 tei=0 nr=3

May 13 08:15:02.627: ISDN Se0/2/0:15 Q921: User TX -> RRf sapi=0 tei=0 nr=3

May 13 08:15:02.627: ISDN Se0/2/0:15 Q921: User RX <- RRf sapi=0 tei=0 nr=3

CME# undebug all

All possible debugging has been turned off

CME#

Kiểm tra tín hiệu cuộc gọi bằng cách bật “debug isdn q931” rồi thực hiện cuộc gọi từ x1001 tới x01268772021, x01268772021 tiếp nhận cuộc gọi, sau đó tiến hành kết thúc cuộc gọi.

CME# debug isdn q931

debug isdn q931 is              ON.

CME#

! Thực hiện cuộc gọi từ x1001 tới  x01268772021

May 13 08:21:04.179: ISDN Se0/2/0:15 Q931: Applying typeplan for sw-type 0xD is 0x0 0x0, Calling num 1001

May 13 08:21:04.179: ISDN Se0/2/0:15 Q931: Sending SETUP  callref = 0x0080 callID = 0x8001 switch = primary-ni interface = User

May 13 08:21:04.179: ISDN Se0/2/0:15 Q931: TX -> SETUP pd = 8  callref = 0x0080

        Bearer Capability i = 0x8090A3

                Standard = CCITT

                Transfer Capability = Speech

                Transfer Mode = Circuit

                Transfer Rate = 64 kbit/s

        Channel ID i = 0xA9839F

                Exclusive, Channel 31

        Progress Ind i = 0x8183 - Origination address is non-ISDN

 

        Calling Party Number i = 0x0080, '1001'

                Plan:Unknown, Type:Unknown

        Called Party Number i = 0x80, '01268772021'

                Plan:Unknown, Type:Unknown

May 13 08:21:04.223: ISDN Se0/2/0:15 Q931: RX <- CALL_PROC pd = 8  callref = 0x8080

        Channel ID i = 0xA9839F

                Exclusive, Channel 31

May 13 08:21:04.235: ISDN Se0/2/0:15 Q931: RX <- ALERTING pd = 8  callref = 0x8080

        Progress Ind i = 0x8188 - In-band info or appropriate now available

 

May 13 08:21:08.483: ISDN Se0/2/0:15 Q931: RX <- CONNECT pd = 8  callref = 0x8080

        Connected Number i = 0x80, 'M01268772021'

 

! Phía x01268772021 tiếp nhận cuộc gọi

May 13 08:21:08.487: %ISDN-6-CONNECT: Interface Serial0/2/0:30 is now connected to 01268772021 N/A

 

May 13 08:21:08.487: ISDN Se0/2/0:15 Q931: TX -> CONNECT_ACK pd = 8  callref = 0x0080

 

May 13 08:21:13.555: ISDN Se0/2/0:15 Q931: RX <- DISCONNECT pd = 8  callref = 0x8080

        Cause i = 0x8290 - Normal call clearing

 

! Phía x01268772021 kết thúc cuộc gọi

May 13 08:21:13.559: %ISDN-6-DISCONNECT: Interface Serial0/2/0:30  disconnected from 01268772021 , call lasted 5 seconds

 

May 13 08:21:13.563: ISDN Se0/2/0:15 Q931: TX -> RELEASE pd = 8  callref = 0x0080

May 13 08:21:13.571: ISDN Se0/2/0:15 Q931: RX <- RELEASE_COMP pd = 8  callref = 0x8080

 

CME# undebug all

All possible debugging has been turned off

CME#

Khởi phát cuộc gọi từ router CME tới x01268772021 bằng câu lệnh “csim start 01268772021”.

CME# debug isdn q931

CME# csim start 01268772021

csim: called number = 01268772021, loop count = 1 ping count = 0

 

May 13 08:26:46.247: ISDN Se0/2/0:15 Q931: Sending SETUP  callref = 0x0081 callID = 0x8002 switch = primary-ni interface = User

May 13 08:26:46.247: ISDN Se0/2/0:15 Q931: TX -> SETUP pd = 8  callref = 0x0081

        Bearer Capability i = 0x8090A3

                Standard = CCITT

                Transfer Capability = Speech

                Transfer Mode = Circuit

                Transfer Rate = 64 kbit/s

        Channel ID i = 0xA9839F

                Exclusive, Channel 31

        Called Party Number i = 0x80, '01268772021'

                Plan:Unknown, Type:Unknown

May 13 08:26:46.299: ISDN Se0/2/0:15 Q931: RX <- CALL_PROC pd = 8  callref = 0x8081

        Channel ID i = 0xA9839F

                Exclusive, Channel 31

May 13 08:26:46.303: ISDN Se0/2/0:15 Q931: RX <- ALERTING pd = 8  callref = 0x8081

        Progress Ind i = 0x8188 - In-band info or appropriate now available

May 13 08:26:56.107: ISDN Se0/2/0:15 Q931: RX <- CONNECT pd = 8  callref = 0x8081

        Connected Number i = 0x80, '01268772021'

 

! Phía x01268772021 tiếp nhận cuộc gọi

May 13 08:26:56.111: %ISDN-6-CONNECT: Interface Serial0/2/0:30 is now connected to 01268772021 N/A

May 13 08:26:56.111: ISDN Se0/2/0:15 Q931: TX -> CONNECT_ACK pd = 8  callref = 0x0081

May 13 08:26:58.619: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2/0:30, changed state to up.

 

! Phía x01268772021 kết thúc cuộc gọi

May 13 08:27:19.115: %ISDN-6-DISCONNECT: Interface Serial0/2/0:30  disconnected from 01268772021 , call lasted 23 seconds

csim: loop = 1, failed = 0

csim: call attempted = 1, setup failed = 0, tone failed = 1

 

May 13 08:27:19.119: ISDN Se0/2/0:15 Q931: TX -> DISCONNECT pd = 8  callref = 0x0081

        Cause i = 0x8090 - Normal call clearing

May 13 08:27:19.127: ISDN Se0/2/0:15 Q931: RX <- RELEASE pd = 8  callref = 0x8081

May 13 08:27:19.131: ISDN Se0/2/0:15 Q931: TX -> RELEASE_COMP pd = 8  callref = 0x0081

CME#

4. Cấu hình đầy đủ của các thiết bị

 

CME#show running-config

Building configuration...

 

Current configuration : 2970 bytes

!

! Last configuration change at 08:55:01 UTC Wed May 13 2015

version 15.1

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname CME

!

card type e1 0 2

!

network-clock-participate wic 2

network-clock-select 1 E1 0/2/0

!

ip cef

!

ip dhcp excluded-address 10.1.10.254

ip dhcp excluded-address 10.1.20.254

!

ip dhcp pool Voice

 network 10.1.10.0 255.255.255.0

 default-router 10.1.10.254

 option 150 ip 10.1.10.254

!

ip dhcp pool Data

 network 10.1.20.0 255.255.255.0

 default-router 10.1.20.254

!

!

no ip domain lookup

no ipv6 cef

!

isdn switch-type primary-ni

!

voice-card 0

!

license udi pid CISCO2811 sn FHK1434F1N0

!

controller E1 0/2/0

 pri-group timeslots 1-31

!

controller E1 0/2/1

!

interface FastEthernet0/0

 description Ket noi toi switch PoE

 no ip address

 duplex auto

 speed auto

!

interface FastEthernet0/0.1

 description Ket noi toi Management VLAN

 encapsulation dot1Q 1 native

 ip address 10.1.1.254 255.255.255.0

!

interface FastEthernet0/0.10

 description Ket noi toi Voice VLAN

 encapsulation dot1Q 10

 ip address 10.1.10.254 255.255.255.0

!

interface FastEthernet0/0.20

 description Ket noi toi Data VLAN

 encapsulation dot1Q 20

 ip address 10.1.20.254 255.255.255.0

!

interface Service-Engine0/1

 no ip address

 shutdown

!

interface FastEthernet0/1

 no ip address

 shutdown

 duplex auto

 speed auto

!

interface Serial0/2/0:15

 no ip address

 encapsulation hdlc

 isdn switch-type primary-ni

 isdn incoming-voice voice

 isdn outgoing display-ie

 no cdp enable

!

ip forward-protocol nd

no ip http server

no ip http secure-server

!

voice-port 0/2/0:15

!

dial-peer voice 1 pots

 destination-pattern .T

 port 0/2/0:15

 forward-digits all

!

dial-peer voice 2 pots

 incoming called-number .

 direct-inward-dial

!

telephony-service

 no auto-reg-ephone

 max-ephones 42

 max-dn 144

 ip source-address 10.1.10.254 port 2000

 max-conferences 8 gain -6

 transfer-system full-consult

!

ephone-dn  1  dual-line

 number 1001

!

ephone-dn  2  dual-line

 number 1002

!

ephone-dn  3  dual-line

 number 1003

!

ephone  1

 device-security-mode none

 mac-address B000.B4D8.8E95

 type 7965

 button  1:1

!

ephone  2

 device-security-mode none

 mac-address B000.B4D9.A3B1

 type 7965

 button  1:2

!

ephone  3

 device-security-mode none

 mac-address 24B6.FD47.139E

 type CIPC

 button  1:3

!

line con 0

 logging synchronous

line aux 0

line 258

 no activation-character

 no exec

 transport preferred none

 transport input all

 transport output lat pad telnet rlogin lapb-ta mop udptn v120 ssh

line vty 0 4

 privilege level 15

 no login

 transport input all

!

scheduler allocate 20000 1000

end

 

CME#

 

 

PoE#show running-config

Building configuration...

 

Current configuration : 1848 bytes

!

version 12.2

no service pad

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname PoE

!

no aaa new-model

ip subnet-zero

no ip domain-lookup

!

no file verify auto

spanning-tree mode pvst

spanning-tree extend system-id

!

vlan internal allocation policy ascending

!

interface FastEthernet0/1

 description Ket noi toi IP Phone 1001

 switchport access vlan 20

 switchport mode access

 switchport voice vlan 10

 spanning-tree portfast

!

interface FastEthernet0/2

 description Ket noi toi IP Phone 1002

 switchport access vlan 20

 switchport mode access

 switchport voice vlan 10

 spanning-tree portfast

!

interface FastEthernet0/3

 description Ket noi toi IP Phone CIPC 1003

 switchport access vlan 10

 switchport mode access

 spanning-tree portfast

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

 description Ket noi toi router CME

 switchport trunk encapsulation dot1q

 switchport mode trunk

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

 description Dat IP quan ly cho switch

 ip address 10.1.1.253 255.255.255.0

!

ip classless

ip http server

ip http secure-server

line con 0

 logging synchronous

line vty 0 4

 privilege level 15

 no login

line vty 5 15

 no login

!

end

 

PoE#

 

 

PSTN#show running-config

Building configuration...

 

Current configuration : 2318 bytes

!

! Last configuration change at 07:06:58 UTC Wed May 13 2015

version 15.1

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname PSTN

!

boot-start-marker

boot-end-marker

!

card type e1 0 2

!

no aaa new-model

!

network-clock-participate wic 2

network-clock-select 1 E1 0/2/0

!

dot11 syslog

ip source-route

!

ip cef

!

ip dhcp excluded-address 10.2.10.254

!

ip dhcp pool Voice

 network 10.2.10.0 255.255.255.0

 default-router 10.2.10.254

 option 150 ip 10.2.10.254

!

no ip domain lookup

no ipv6 cef

!

isdn switch-type primary-ni

!

voice-card 0

!

license udi pid CISCO2811 sn FTX0940A3K9

!

redundancy

!

controller E1 0/2/0

 pri-group timeslots 1-31

 description **voice to CME router**

!

controller E1 0/2/1

!

interface FastEthernet0/0

 description Ket noi toi PC cai CIPC

 ip address 10.2.10.254 255.255.255.0

 duplex auto

 speed auto

!

interface Service-Engine0/1

 no ip address

 shutdown

!

interface FastEthernet0/1

 no ip address

 shutdown

 duplex auto

 speed auto

!

interface Serial0/2/0:15

 no ip address

 encapsulation hdlc

 isdn switch-type primary-ni

 isdn protocol-emulate network

 isdn incoming-voice voice

 no cdp enable

!

ip forward-protocol nd

no ip http server

no ip http secure-server

!

voice-port 0/2/0:15

!

dial-peer voice 1 pots

 destination-pattern 1...

 port 0/2/0:15

 forward-digits all

!

dial-peer voice 2 pots

 incoming called-number .

 direct-inward-dial

!

telephony-service

 no auto-reg-ephone

 max-ephones 42

 max-dn 144

 ip source-address 10.2.10.254 port 2000

 max-conferences 8 gain -6

 transfer-system full-consult

 create cnf-files version-stamp 7960 May 13 2015 06:33:59

!

ephone-dn  1  dual-line

 number 01268772021

!

ephone  1

 device-security-mode none

 mac-address 24B6.FD47.139E

 type CIPC

 button  1:1

!

line con 0

 logging synchronous

line aux 0

line 258

 no activation-character

 no exec

 transport preferred none

 transport input all

 transport output lat pad telnet rlogin lapb-ta mop udptn v120 ssh

line vty 0 4

 privilege level 15

 no login

 transport input all

!

scheduler allocate 20000 1000

end

 

PSTN#


FORM ĐĂNG KÝ MUA HÀNG
Đặt hàng
icon-cart
0