Professional Documents
Culture Documents
Ci t SIP Server
Sau khi ti SIP server v a ch www.brekeke.com,chy file setup ci SIP server.
Cu hnh cho cc router
+Cu hnh cho Router 1
Code:
!
!
interface Ethernet0/0
ip address 10.215.219.254 255.255.255.0
half-duplex
!
interface Serial0/0
bandwidth 256
ip address 192.168.1.1 255.255.255.0
clock rate 64000
no fair-queue
!
interface ATM0/1
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
ip http server
no ip http secure-server
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.2
!
!
!
!
voice-port 1/1/0
!
voice-port 1/1/1
!
!
dial-peer cor custom
!
!
!
dial-peer voice 1 pots
destination-pattern 201
port 1/1/0
!
dial-peer voice 2 pots
destination-pattern 301
port 1/1/1
!
dial-peer voice 3 voip
destination-pattern 301
session target ipv4:192.168.1.2
!
dial-peer voice 4 voip
destination-pattern 101
session protocol sipv2
session target ipv4:10.215.219.79
codec g711alaw
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
End
!
interface Ethernet0/0
ip address 10.215.219.254 255.255.255.0
half-duplex
!
interface Serial0/0
bandwidth 256
Hnh 4.1.1b Kim tra ti khon ngi dng trong tabView Users
+Thc hin cuc gi gia hai softphone
Sau khi ti khon ngi dng c to th bn c th ng k trn softphone client
Hnh 4.1.2a:ng k ti khon c user l 101 trn softphone client thnh cng.
Sau khi ng k ti khon xong bn c th thit lp cuc gi gia hai ti khon ngi dng bng
softphone client. y s dng user 101 gi ti 102
Hnh 4.1.2b :Thit lp cuc gi t ti khon 101 n ti khon 102.
Hnh 4.1.1b Kim tra ti khon ngi dng trong tabView Users
-Thc hin cuc gi gia hai softphone
Sau khi ti khon ngi dng c to th bn c th ng k trn softphone client
Tutorial description
This tutorial is designed to help you to configure the new voice over ip (voip) features available
in Packet Tracer 6.0. It will show you the steps required to :
Network diagram
Note : Connect only IP Phone 1 at the beginning of the lab. IP Phone 2 must be disconnected.
RouterA(config)#interface FastEthernet0/0
RouterA(config-if)#ip address 192.168.10.1 255.255.255.0
RouterA(config-if)#no shutdown
The DHCP server is needed to provide an IP adress and the TFTP server location for each IP
phone connected to the network.
RouterA(config)#ip dhcp pool VOICE #Create DHCP pool named VOICE
RouterA(dhcp-config)#network 192.168.10.0 255.255.255.0 #DHCP network network
192.168.10 with /24 mask#
RouterA(dhcp-config)#default-router 192.168.10.1 #The default router IP address#
RouterA(dhcp-config)#option 150 ip 192.168.10.1 #Mandatory for voip configuration.
After the configuration, wait a moment and check that IP Phone 1 has received an IP address
by placing your cursor over the phone until a configuration summary appears.
Connect IP Phone 2 to SwitchA and power the phone ON using the power adapter (Physical tab).
RouterA(config)#ephone-dn 2 #Defining the first directory entry#
RouterA(config-ephone-dn)#number 54002 #Assign the phone number to this entry#
Router>enable
Router#con
Router#conf
Router#configure
Configuring from terminal, memory, or network [terminal]? terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#in
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 172.16.1.2 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router(config-if)#e
Router(config-if)#exit
Router(config)#ip dh
Router(config)#ip dhcp ex
Router(config)#ip dhcp excluded-address ?
A.B.C.D Low IP address
Router(config)#ip dhcp excluded-address
% Incomplete command.
Router(config)#ip dhcp excluded-address 172.16.1.1 ?
A.B.C.D High IP address
<cr>
Router(config)#ip dhcp excluded-address 172.16.1.1 172.16.1.5
Router(config)#ip dh
Router(config)#ip dhcp p
Router(config)#ip dhcp pool ?
WORD Pool name
Router(config)#ip dhcp pool PCPOOL
Router(dhcp-config)#ne
Router(dhcp-config)#network 172.16.1.0 255.255.255.0
Router(dhcp-config)#
Router(config)#ip dhcp pool PCPOOL
Router(dhcp-config)#de
Router(dhcp-config)#default-router 172.16.1.1
Router(dhcp-config)#op
Router(dhcp-config)#option 160 ?
ip Data is one or more IP addresses
Router(dhcp-config)#option ?
<0-254> DHCP option code
Router(dhcp-config)#option 160 172.16.1.1
^
% Invalid input detected at '^' marker.
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
Nhu1#
Nhu1#
Nhu1#
Nhu1#
Nhu1#
Nhu1#con
Nhu1#conf
Nhu1#configure te
Nhu1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Nhu1(config)#hostname ?
WORD This system's network name
Nhu1(config)#hostname UCME
UCME(config)#in
UCME(config)#interface gi
UCME(config)#interface gigabitEthernet 0/0
UCME(config-if)#ip address ?
A.B.C.D IP address
dhcp
IP Address negotiated via DHCP
UCME(config-if)#ip address 172.16.1.1 ?
A.B.C.D IP subnet mask
UCME(config-if)#ip address 172.16.1.1 255.255.255.0
UCME(config-if)#no shu
UCME(config-if)#no shutdown
UCME(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
GigabitEthernet0/0, changed state to up
UCME(config-if)#en
UCME(config-if)#enca
UCME(config-if)#encap
UCME(config-if)#encapsu
UCME(config-if)#encapsula
UCME(config-if)#encapsulation
UCME(config-if)#encapsulation ?
% Unrecognized command
UCME(config-if)#exit
UCME(config)#inte
UCME(config)#interface gi
UCME(config)#interface gigabitEthernet 0/0
UCME(config-if)#en
UCME(config-if)#enca
UCME(config-if)#exit
UCME(config)#in
UCME(config)#interface f
UCME(config)#interface fastEthernet 0/0.5
%Invalid interface type and number
UCME(config)#int gi
UCME(config)#int gigabitEthernet 0/0 ?
<cr>
UCME(config)#int gigabitEthernet 0/0.5
UCME(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.5, changed state to
up
Tutorial description
This tutorial is designed to help you to configure the new voice over ip (voip) features available
in Packet Tracer 6.0. It will show you the steps required to :
Network diagram
Note : Connect only IP Phone 1 at the beginning of the lab. IP Phone 2 must be disconnected.
The DHCP server is needed to provide an IP address and the TFTP server location for each IP
phone connected to the network.
RouterA(config)#ip dhcp pool VOICE #Create DHCP pool named VOICE
RouterA(dhcp-config)#network 192.168.10.0 255.255.255.0 #DHCP network network
192.168.10 with /24 mask#
RouterA(dhcp-config)#default-router 192.168.10.1 #The default router IP address#
RouterA(dhcp-config)#option 150 ip 192.168.10.1 #Mandatory for voip configuration.
After the configuration, wait a moment and check that IP Phone 1 has received an IP address
by placing your cursor over the phone until a configuration summary appears.
Connect IP Phone 2 to SwitchA and power the phone ON using the power adapter (Physical tab).
RouterA(config)#ephone-dn 2 #Defining the first directory entry#
RouterA(config-ephone-dn)#number 54002 #Assign the phone number to this entry#