4. Cấu hình cuộc gọi giữa điện thoại IP Phone và Analog
CME_1#show running-config
Building configuration…
Current configuration : 1289 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
controller T1 0/0
framing sf
linecode ami
!
controller T1 0/1
framing sf
linecode ami
!
interface Ethernet0/0
no ip address
half-duplex
!
interface Ethernet0/0.12
encapsulation dot1Q 12
ip address 10.0.12.1 255.255.255.0
!
!
interface Ethernet0/0.13
encapsulation dot1Q 13
ip address 10.0.13.1 255.255.255.0
!
ip http server
no ip http secure-server
ip classless
!
!
!
!
voice-port 1/0/0
station-id name 1001
station-id number 1001
!
voice-port 1/0/1
station-id name 1002
station-id number 1002
!
!
!
dial-peer voice 1001 pots
destination-pattern 1001
port 1/0/0
!
dial-peer voice 1002 pots
destination-pattern 1002
port 1/0/1
!
dial-peer voice 2000 voip
destination-pattern 2…
session target ipv4:10.0.12.2
!
dial-peer voice 3000 voip
destination-pattern 3…
session target ipv4:10.0.13.3
!
dial-peer voice 4000 voip
destination-pattern 4…
session target ipv4:10.0.13.3
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
!
!
end
CME_2#show running-config
Building configuration…
Current configuration : 1346 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
ip audit po max-events 100
!
interface Ethernet0/0
no ip address
half-duplex
!
interface Ethernet0/0.12
encapsulation dot1Q 12
ip address 10.0.12.2 255.255.255.0
!
interface Ethernet0/0.23
encapsulation dot1Q 23
ip address 10.0.23.2 255.255.255.0
!
ip http server
no ip http secure-server
ip classless
!
!
!
!
voice-port 1/0/0
station-id name Hai
station-id number 2001
!
voice-port 1/0/1
station-id name Phuong
station-id number 2002
!
!
!
dial-peer voice 2001 pots
destination-pattern 2001
port 1/0/0
!
dial-peer voice 2002 pots
destination-pattern 2002
port 1/0/1
!
dial-peer voice 1000 voip
destination-pattern 1…
session target ipv4:10.0.12.1
!
dial-peer voice 3000 voip
destination-pattern 3…
session target ipv4:10.0.23.3
!
dial-peer voice 4000 voip
destination-pattern 4…
session target ipv4:10.0.23.3
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
!
end
CME_3#show running-config
Building configuration…
Current configuration : 2191 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
dot11 syslog
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.0.30.1 10.0.30.10
!
ip dhcp pool LAN
network 10.0.30.0 255.255.255.0
default-router 10.0.30.1
option 150 ip 10.0.30.1
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
voice-card 0
no dspfarm
!
archive
log config
hidekeys
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.13
encapsulation dot1Q 13
ip address 10.0.13.3 255.255.255.0
!
interface FastEthernet0/0.23
encapsulation dot1Q 23
ip address 10.0.23.3 255.255.255.0
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 10.0.30.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
clock rate 2000000
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
control-plane
!
dial-peer voice 2000 voip
destination-pattern 2…
session target ipv4:10.0.23.2
!
dial-peer voice 1000 voip
destination-pattern 1…
session target ipv4:10.0.13.1
!
!
!
!
telephony-service
max-ephones 10
max-dn 20
ip source-address 10.0.30.1 port 2000
system message CME Voice
keepalive 15
max-conferences 8 gain -6
transfer-system full-consult
create cnf-files version-stamp Jan 01 2002 00:00:00
!
!
ephone-dn 1
number 3001
!
!
ephone-dn 2
number 3002
name Truong AN
!
!
ephone-dn 3
number 3003
name Nghia
!
!
ephone-dn 4
number 4001
name Duc
!
!
ephone 1
device-security-mode none
mac-address 0026.1839.D23B
button 1:1
!
!
!
ephone 2
device-security-mode none
mac-address F0DE.F19B.B189
button 1:2
!
!
!
ephone 4
device-security-mode none
mac-address 0013.A929.83ED
button 1:4
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
!
scheduler allocate 20000 1000
!
end
5. Cấu hình cuộc gọi giữa điện thoại IP Phone thông qua softphone
CME_3#show running-config
Building configuration…
Current configuration : 2191 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
dot11 syslog
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.0.30.1 10.0.30.10
!
ip dhcp pool LAN//cấp phát IP động cho VLAN 30
network 10.0.30.0 255.255.255.0
default-router 10.0.30.1
option 150 ip 10.0.30.1
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
voice-card 0
no dspfarm
!
!
archive
log config
hidekeys
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 10.0.30.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
clock rate 2000000
!
ip forward-protocol nd
!
ip http server
no ip http secure-server
control-plane
!
!
telephony-service
max-ephones 10
max-dn 20
ip source-address 10.0.30.1 port 2000
system message CME Voice
keepalive 15
max-conferences 8 gain -6
transfer-system full-consult
create cnf-files version-stamp Jan 01 2002 00:00:00
!
!
ephone-dn 1
number 3001
!
!
ephone-dn 2
number 3002
name Truong AN
!
!
ephone-dn 3
number 3003
name Nghia
!
!
ephone-dn 4
number 4001
name Duc
!
!
ephone 1
device-security-mode none
mac-address 0026.1839.D23B
button 1:1
!
!
!
ephone 2
device-security-mode none
mac-address F0DE.F19B.B189
button 1:2
!
!
!
ephone 4
device-security-mode none
mac-address 0013.A929.83ED
button 1:4
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
!
scheduler allocate 20000 1000
!
end
Nguyễn Đình Hải & Nguyễn Trọng Nghĩa – VnPro
Xem phần 1 tại đây.
CME_1#show running-config
Building configuration…
Current configuration : 1289 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
ip audit po max-events 100
!
controller T1 0/0
framing sf
linecode ami
!
controller T1 0/1
framing sf
linecode ami
!
interface Ethernet0/0
no ip address
half-duplex
!
interface Ethernet0/0.12
encapsulation dot1Q 12
ip address 10.0.12.1 255.255.255.0
!
!
interface Ethernet0/0.13
encapsulation dot1Q 13
ip address 10.0.13.1 255.255.255.0
!
ip http server
no ip http secure-server
ip classless
!
!
!
!
voice-port 1/0/0
station-id name 1001
station-id number 1001
!
voice-port 1/0/1
station-id name 1002
station-id number 1002
!
!
!
dial-peer voice 1001 pots
destination-pattern 1001
port 1/0/0
!
dial-peer voice 1002 pots
destination-pattern 1002
port 1/0/1
!
dial-peer voice 2000 voip
destination-pattern 2…
session target ipv4:10.0.12.2
!
dial-peer voice 3000 voip
destination-pattern 3…
session target ipv4:10.0.13.3
!
dial-peer voice 4000 voip
destination-pattern 4…
session target ipv4:10.0.13.3
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
!
!
end
CME_2#show running-config
Building configuration…
Current configuration : 1346 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip subnet-zero
ip cef
!
ip audit po max-events 100
!
interface Ethernet0/0
no ip address
half-duplex
!
interface Ethernet0/0.12
encapsulation dot1Q 12
ip address 10.0.12.2 255.255.255.0
!
interface Ethernet0/0.23
encapsulation dot1Q 23
ip address 10.0.23.2 255.255.255.0
!
ip http server
no ip http secure-server
ip classless
!
!
!
!
voice-port 1/0/0
station-id name Hai
station-id number 2001
!
voice-port 1/0/1
station-id name Phuong
station-id number 2002
!
!
!
dial-peer voice 2001 pots
destination-pattern 2001
port 1/0/0
!
dial-peer voice 2002 pots
destination-pattern 2002
port 1/0/1
!
dial-peer voice 1000 voip
destination-pattern 1…
session target ipv4:10.0.12.1
!
dial-peer voice 3000 voip
destination-pattern 3…
session target ipv4:10.0.23.3
!
dial-peer voice 4000 voip
destination-pattern 4…
session target ipv4:10.0.23.3
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
!
end
CME_3#show running-config
Building configuration…
Current configuration : 2191 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
dot11 syslog
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.0.30.1 10.0.30.10
!
ip dhcp pool LAN
network 10.0.30.0 255.255.255.0
default-router 10.0.30.1
option 150 ip 10.0.30.1
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
voice-card 0
no dspfarm
!
archive
log config
hidekeys
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.13
encapsulation dot1Q 13
ip address 10.0.13.3 255.255.255.0
!
interface FastEthernet0/0.23
encapsulation dot1Q 23
ip address 10.0.23.3 255.255.255.0
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 10.0.30.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
clock rate 2000000
!
ip forward-protocol nd
!
!
ip http server
no ip http secure-server
!
control-plane
!
dial-peer voice 2000 voip
destination-pattern 2…
session target ipv4:10.0.23.2
!
dial-peer voice 1000 voip
destination-pattern 1…
session target ipv4:10.0.13.1
!
!
!
!
telephony-service
max-ephones 10
max-dn 20
ip source-address 10.0.30.1 port 2000
system message CME Voice
keepalive 15
max-conferences 8 gain -6
transfer-system full-consult
create cnf-files version-stamp Jan 01 2002 00:00:00
!
!
ephone-dn 1
number 3001
!
!
ephone-dn 2
number 3002
name Truong AN
!
!
ephone-dn 3
number 3003
name Nghia
!
!
ephone-dn 4
number 4001
name Duc
!
!
ephone 1
device-security-mode none
mac-address 0026.1839.D23B
button 1:1
!
!
!
ephone 2
device-security-mode none
mac-address F0DE.F19B.B189
button 1:2
!
!
!
ephone 4
device-security-mode none
mac-address 0013.A929.83ED
button 1:4
!
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
!
scheduler allocate 20000 1000
!
end
5. Cấu hình cuộc gọi giữa điện thoại IP Phone thông qua softphone
CME_3#show running-config
Building configuration…
Current configuration : 2191 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
dot11 syslog
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.0.30.1 10.0.30.10
!
ip dhcp pool LAN//cấp phát IP động cho VLAN 30
network 10.0.30.0 255.255.255.0
default-router 10.0.30.1
option 150 ip 10.0.30.1
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
!
multilink bundle-name authenticated
!
!
voice-card 0
no dspfarm
!
!
archive
log config
hidekeys
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 10.0.30.1 255.255.255.0
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/0/0
no ip address
shutdown
no fair-queue
clock rate 2000000
!
ip forward-protocol nd
!
ip http server
no ip http secure-server
control-plane
!
!
telephony-service
max-ephones 10
max-dn 20
ip source-address 10.0.30.1 port 2000
system message CME Voice
keepalive 15
max-conferences 8 gain -6
transfer-system full-consult
create cnf-files version-stamp Jan 01 2002 00:00:00
!
!
ephone-dn 1
number 3001
!
!
ephone-dn 2
number 3002
name Truong AN
!
!
ephone-dn 3
number 3003
name Nghia
!
!
ephone-dn 4
number 4001
name Duc
!
!
ephone 1
device-security-mode none
mac-address 0026.1839.D23B
button 1:1
!
!
!
ephone 2
device-security-mode none
mac-address F0DE.F19B.B189
button 1:2
!
!
!
ephone 4
device-security-mode none
mac-address 0013.A929.83ED
button 1:4
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
!
scheduler allocate 20000 1000
!
end
Nguyễn Đình Hải & Nguyễn Trọng Nghĩa – VnPro
Xem phần 1 tại đây.