2009-12-27 12:40 Cisco VoIP: Lab 4.1.4 Configuring VoIP Dial-Peers Across a WAN Link





Lab 4.1.4 file for Dynamips:
##################################################
#
# Cisco VoIP
# Lab 4.1.4 Configuring VoIP Dial-Peers Across a WAN Link
# By Happy Peter  http://blog.xuite.net/juilin77/happy
#
##################################################

autostart=false
[localhost:7200]
 workingdir = /opt/dynamips/dynagen-0.11.0/UTS/voip/workingconfig

[[3725]]
#Specify 3725 IOS image on Linux here:
 image = /opt/dynamips/images/c3725-ad.bin
 ram = 256
 idlepc = 0x60bf8d58
 mmap = true
 ghostios = true
 confreg = 0x2102

###########################
#
# Define router instances 1
#
###########################

[[Router R1]]
 model = 3725
 console = 2001
 slot1 = NM-16ESW
 slot2 = NM-4T
 F1/0 = NIO_linux_eth:vmnet2
 F1/1 = NIO_linux_eth:vmnet3

[[Router R2]]
 model = 3725
 console = 2002
 slot1 = NM-16ESW
 slot2 = NM-4T
 S2/0 = R1 S2/0
 F1/0 = NIO_linux_eth:vmnet4
 F1/1 = NIO_linux_eth:vmnet5
 

Objective
• Configure the VoIP dial peers across a WAN link.


Step 1 Building two labs "Cisco VoIP: Lab 3.1.2 CME Manual Phone Setup"

You should two labs "Cisco VoIP: Lab 3.1.2 CME Manual Phone Setup" before starting this lab.
Lab 3.1.2: http://blog.xuite.net/juilin77/happy/29448457


CMERouter1 configurations:

enable
!
vlan database
vlan 10 name Data state active
vlan 15 name Voice state active
exit
!
configure terminal
!
hostname CMERouter1
!
enable secret cisco
!
ip dhcp excluded-address 10.10.0.1 10.10.0.10
ip dhcp excluded-address 10.15.0.1 10.15.0.10
!
ip dhcp pool DATA
   network 10.10.0.0 255.255.255.0
   default-router 10.10.0.1
!
ip dhcp pool Voice
   network 10.15.0.0 255.255.255.0
   default-router 10.15.0.1
   option 150 ip 10.15.0.1
!
no ip domain lookup
!
interface FastEthernet1/0
 switchport trunk native vlan 10
 switchport mode trunk
 switchport voice vlan 15
 no shutdown
!
interface FastEthernet1/1
 switchport trunk native vlan 10
 switchport mode trunk
 switchport voice vlan 15
 no shutdown
!
interface Vlan1
 ip address 10.1.0.1 255.255.255.0
!
interface Vlan10
 ip address 10.10.0.1 255.255.255.0
!
interface Vlan15
 ip address 10.15.0.1 255.255.255.0
!
router eigrp 100
 network 10.0.0.0
 no auto-summary
!
telephony-service
 max-ephones 4
 max-dn 20
 ip source-address 10.15.0.1 port 2000
 keepalive 10
 create cnf-files
!
ephone-dn  1  dual-line
 number 5555001
 label 001label
 description 001des
 name 001name
!
ephone-dn  2  dual-line
 number 5555002
 label 002label
 name 002name
!
ephone-dn  3  dual-line
 number 5555003
 label 003label
 description 003des
 name 003name
!
ephone-dn  4  dual-line
 number 5555004
 label 004label
 name 004name
!
ephone  1
 mac-address 000C.29DD.330D
 button  1:1 2:2
!
ephone  2
 mac-address 000C.29DD.3317
 button  1:3 2:4
!
line con 0
 logging synchronous
!
line vty 0 4
 password cisco
 logging synchronous
 login
!
end


CMERouter2 configurations:

enable
!
vlan database
vlan 20 name Data state active
vlan 25 name Voice state active
exit
!
configure terminal
!
hostname CMERouter2
!
enable secret cisco
!
ip dhcp excluded-address 10.20.0.1 10.20.0.10
ip dhcp excluded-address 10.25.0.1 10.25.0.10
!
ip dhcp pool DATA
   network 10.20.0.0 255.255.255.0
   default-router 10.20.0.1
!
ip dhcp pool Voice
   network 10.25.0.0 255.255.255.0
   default-router 10.25.0.1
   option 150 ip 10.25.0.1
!
no ip domain lookup
!
interface FastEthernet1/0
 switchport trunk native vlan 20
 switchport mode trunk
 switchport voice vlan 25
 no shutdown
!
interface FastEthernet1/1
 switchport trunk native vlan 20
 switchport mode trunk
 switchport voice vlan 25
 no shutdown
!
interface Vlan1
 ip address 10.2.0.1 255.255.255.0
!
interface Vlan20
 ip address 10.20.0.1 255.255.255.0
!
interface Vlan25
 ip address 10.25.0.1 255.255.255.0
!
router eigrp 100
 network 10.0.0.0
 no auto-summary
!
telephony-service
 max-ephones 4
 max-dn 20
 ip source-address 10.25.0.1 port 2000
 keepalive 10
 create cnf-files
!
ephone-dn  1  dual-line
 number 6666021
 label 021label
 description 021des
 name 021name
!
ephone-dn  2  dual-line
 number 6666022
 label 022label
 name 022name
!
ephone-dn  3  dual-line
 number 6666023
 label 023label
 description 023des
 name 023name
!
ephone-dn  4  dual-line
 number 6666024
 label 024label
 name 024name
!
ephone  1
 mac-address 000C.2985.39F0
 button  1:1 2:2
!
ephone  2
 mac-address 000C.2985.39FA
 button  1:3 2:4
!
line con 0
 logging synchronous
!
line vty 0 4
 password cisco
 logging synchronous
 login
!
end


Step 2 Configure the Serial Interface

CMERouter1(config)#interface serial 2/0
CMERouter1(config-if)#ip address 192.168.1.1 255.255.255.0
CMERouter1(config-if)#clock rate 64000
CMERouter1(config-if)#encapsulation hdlc
CMERouter1(config-if)#no shutdown

CMERouter2(config)#interface serial 2/0
CMERouter2(config-if)#ip address 192.168.1.2 255.255.255.0
CMERouter2(config-if)#encapsulation hdlc
CMERouter2(config-if)#no shutdown


Step 3 Configure the Dial Peer
a. From global configuration mode, create a new dial peer with the command dial-peer voice 6 voip.
CMERouter1(config)#dial-peer voice 6 voip

CMERouter2(config)#dial-peer voice 6 voip

b. Associate a pattern to the dial peer by using the global configuration mode command destination-pattern digits.
CMERouter1(config-dial-peer)#destination-pattern 666602[1,2,3,4]

CMERouter2(config-dial-peer)#destination-pattern 555500[1,2,3,4]

c. Use the session target ipv4:192.168.1.* (where the IP address is the partner router’s serial interface address).
CMERouter1(config-dial-peer)#session target ipv4:192.168.1.2

CMERouter2(config-dial-peer)#session target ipv4:192.168.1.1

d. The G711 codec is what is used to translate analog voice data to a digital format. G711 uses a 64kbps data rate.
CMERouter1(config-dial-peer)#codec g711alaw

CMERouter2(config-dial-peer)#codec g711alaw


Step 4 Test the Configuration
Now, You can call each other.
5555001 (IP Blue - Button1) call 5555003 (CIPC - Button1)




5555002 (IP Blue - Button2) call 6666024 (CIPC - Button2)






Final Configurations:

CMERouter1:

hostname CMERouter1
!
enable secret cisco
!
ip dhcp excluded-address 10.10.0.1 10.10.0.10
ip dhcp excluded-address 10.15.0.1 10.15.0.10
!
ip dhcp pool DATA
   network 10.10.0.0 255.255.255.0
   default-router 10.10.0.1
!
ip dhcp pool Voice
   network 10.15.0.0 255.255.255.0
   default-router 10.15.0.1
   option 150 ip 10.15.0.1
!
no ip domain lookup
!
interface FastEthernet1/0
 switchport trunk native vlan 10
 switchport mode trunk
 switchport voice vlan 15
 no shutdown
!
interface FastEthernet1/1
 switchport trunk native vlan 10
 switchport mode trunk
 switchport voice vlan 15
 no shutdown
!
interface Serial2/0
 ip address 192.168.1.1 255.255.255.0
 clock rate 64000
 no shutdown
!
interface Vlan1
 ip address 10.1.0.1 255.255.255.0
!
interface Vlan10
 ip address 10.10.0.1 255.255.255.0
!
interface Vlan15
 ip address 10.15.0.1 255.255.255.0
!
router eigrp 100
 network 10.0.0.0
 no auto-summary
!
dial-peer voice 6 voip
 destination-pattern 666602[1,2,3,4]
 session target ipv4:192.168.1.2
 codec g711alaw
!
telephony-service
 max-ephones 4
 max-dn 20
 ip source-address 10.15.0.1 port 2000
 keepalive 10
 create cnf-files
!
ephone-dn  1  dual-line
 number 5555001
 label 001label
 description 001des
 name 001name
!
ephone-dn  2  dual-line
 number 5555002
 label 002label
 name 002name
!
ephone-dn  3  dual-line
 number 5555003
 label 003label
 description 003des
 name 003name
!
ephone-dn  4  dual-line
 number 5555004
 label 004label
 name 004name
!
ephone  1
 mac-address 000C.29DD.330D
 button  1:1 2:2
!
ephone  2
 mac-address 000C.29DD.3317
 button  1:3 2:4
!
line con 0
 logging synchronous
!
line vty 0 4
 password cisco
 logging synchronous
 login
!
end


CMERouter2:

hostname CMERouter2
!
enable secret cisco
!
ip dhcp excluded-address 10.20.0.1 10.20.0.10
ip dhcp excluded-address 10.25.0.1 10.25.0.10
!
ip dhcp pool DATA
   network 10.20.0.0 255.255.255.0
   default-router 10.20.0.1
!
ip dhcp pool Voice
   network 10.25.0.0 255.255.255.0
   default-router 10.25.0.1
   option 150 ip 10.25.0.1
!
no ip domain lookup
!
interface FastEthernet1/0
 switchport trunk native vlan 20
 switchport mode trunk
 switchport voice vlan 25
 no shutdown
!
interface FastEthernet1/1
 switchport trunk native vlan 20
 switchport mode trunk
 switchport voice vlan 25
 no shutdown
!
interface Serial2/0
 ip address 192.168.1.2 255.255.255.0
 no shutdown
!
interface Vlan1
 ip address 10.2.0.1 255.255.255.0
!
interface Vlan20
 ip address 10.20.0.1 255.255.255.0
!
interface Vlan25
 ip address 10.25.0.1 255.255.255.0
!
router eigrp 100
 network 10.0.0.0
 no auto-summary
!
dial-peer voice 6 voip
 destination-pattern 555500[1,2,3,4]
 session target ipv4:192.168.1.1
 codec g711alaw
!
telephony-service
 max-ephones 4
 max-dn 20
 ip source-address 10.25.0.1 port 2000
 keepalive 10
 create cnf-files
!
ephone-dn  1  dual-line
 number 6666021
 label 021label
 description 021des
 name 021name
!
ephone-dn  2  dual-line
 number 6666022
 label 022label
 name 022name
!
ephone-dn  3  dual-line
 number 6666023
 label 023label
 description 023des
 name 023name
!
ephone-dn  4  dual-line
 number 6666024
 label 024label
 name 024name
!
ephone  1
 mac-address 000C.2985.39F0
 button  1:1 2:2
!
ephone  2
 mac-address 000C.2985.39FA
 button  1:3 2:4
!
line con 0
 logging synchronous
!
line vty 0 4
 password cisco
 logging synchronous
 login
!
end


Reference:
Cisco IP Telephony and Voice over IP Student Lab Manual


最初發表 / 最後更新: 2009.12.25 / 2009.12.27

平均分數:0 顆星    投票人數:0
我要評分:
回應
    沒有新回應!
Peter's Album
Search This Blog
Google

Search This Blog: