Lab2-1.net file for Dynamips:
##################################################
#
# CCNP Version 5.0: Optimizing Converged Cisco Networks
# For Lab 2.1 Configure CME using the CLI and Cisco IP Communicator
# By Happy Peter http://blog.xuite.net/juilin77/happy
#
##################################################
autostart=false
[localhost:7200]
workingdir = /opt/dynamips/dynagen-0.11.0/UTS/CCNP4/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
F1/0 = NIO_linux_eth:vmnet2
F1/1 = NIO_linux_eth:vmnet2
Learning Objectives
‧ Configure Cisco Unified Call Manager Express (CME)
‧ Install Cisco IP Communicator (CIPC) on a host
‧ Verify CME and CIPC Operation
Step 1: Configure Addressing
R1(config)#interface vlan 1
R1(config-if)#ip address 172.16.10.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#end
R1#ping 172.16.10.50
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.10.50, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms
R1#ping 172.16.10.60
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.10.60, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/12 ms
Step 2: Configure Router Telephony Service
Configure the maximum number of phones to be 2 using the max-ephones number command.
R1(config)#telephony-service
R1(config-telephony)#max-ephones 2
Configure the maximum number of directory numbers to be 10 using max-dn number.
R1(config-telephony)#max-dn 10
Configure the phone keepalive timeout period to be 15 seconds by issuing the keepalive seconds command.
R1(config-telephony)#keepalive 15
Configure a system message using the system message line command.
R1(config-telephony)#system message CISCO VOIP
Next, tell the router to generate the configuration files for phones that associate with the CME using the create cnf-files command.
R1(config-telephony)#create cnf-files
Finally, configure the source address for SCCP using the ip source address address port port command.
R1(config-telephony)#ip source-address 172.16.10.1 port 2000
Step 3: Create Directory Numbers
To configure a directory number, use the global configuration ephone-dn tag command.
R1(config)#ephone-dn 1
At the ephone-dn configuration prompt, use the number number command to configure a phone number of 5001. Assign a name of “Host A” with the name name command.
R1(config-ephone-dn)#number 5001
R1(config-ephone-dn)#name Host A
Configure ephone-dn 2 similarly.
R1(config)#ephone-dn 2
R1(config-ephone-dn)#number 5002
R1(config-ephone-dn)#name Host B
Step 4: Create Phones
On R1, enter the ephone configuration prompt by typing the ephone tag command in global configuration mode.
R1(config)#ephone 1
Associate the MAC address with this ephone using the mac-address address command.
R1(config-ephone)#mac-address $Host A-MAC$
Use the type type command to configure the type of phone.
R1(config-ephone)#type CIPC
Assign the first button on the phone to directory number 1 using the button line command.
The first 1 indicates the first button. The colon indicates a normal ringer. The second 1 represents directory number 1, previously configured with the ephone-dn 1 command.
R1(config-ephone)#button 1:1
Apply a similar configuration for ephone 2.
R1(config-ephone)#mac-address $Host B-MAC$
R1(config-ephone)#type CIPC
R1(config-ephone)#button 1:2
Step 5: Install Cisco IP Communicator
Download Cisco IP Communicator (CIPC) from the Cisco.com website and run the installer using the executable you downloaded.
Step 6: Run Cisco IP Communicator
Before running CIPC, enable debugging for ephone registration on R1 using the debug ephone register command.
R1#debug ephone register
Host A
Host B
Start CIPC by double clicking the Cisco IP Communicator icon installed on the desktop of Host A & B.
Under the Network tab of the preferences screen, use the drop-down box to select the correct interface that is used in the lab. Also, under TFTP Servers, check Use these TFTP servers: and make sure the IP address belongs to R1.
R1#undebug all
Step 7: Establish a Call from Host A to Host B
Host A
Host B
Final Configurations:
hostname R1
!
no ip domain lookup
!
interface Vlan1
ip address 172.16.10.1 255.255.255.0
!
telephony-service
max-ephones 2
max-dn 10
ip source-address 172.16.10.1 port 2000
system message CISCO VOIP
keepalive 15
max-conferences 8 gain -6
transfer-system full-consult
!
ephone-dn 1
number 5001
name Host A
!
ephone-dn 2
number 5002
name Host B
!
ephone 1
device-security-mode none
mac-address 000C.29DD.330D
type CIPC
button 1:1
!
ephone 2
device-security-mode none
mac-address 000C.2985.39F0
type CIPC
button 1:2
!
line con 0
logging synchronous
!
end
Reference:
Cisco Networking Academy
http://www.cisco.com/web/learning/netacad/index.html
CCNP Version 5.0: Optimizing Converged Cisco Networks
Student Lab Manual
最初發表 / 最後更新: 2009.03.21 / 2018.06.12
0 comments:
張貼留言