You are on page 1of 2

C?

u h�nh Router
//t?o DHCP pool c?p d?a chi IP t? d?ng cho IP phone v� PC
Thi?t l?p DHCP tr�n router.
ip dhcp excluded-address 192.168.10.1 192.168.10.9
ip dhcp excluded-address 192.168.20.1 192.168.20.9
ip dhcp pool voice
// m?ng 192.168.10.0 cho IP phone
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
option 150 ip 192.168.10.1
ip dhcp pool data
//m?ng 192.168.20.0 cho PC
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1

//R on a stick configuration


//t?o m?t giao ti?p con v� li�n k?t ch�ng th�nh 1 vlan
//T?o sub logic interface du?i physical interface.
//K�ch ho?t 802.1q trunking tr�n interface.
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
int f0/0
no shut

//C?u h�nh qu?n l� cu?c g?i


//X�c d?nh s? t?i da c?a IP phone v� s? g?i tr?c ti?p
telephony-service

max-ephones 5
max-dn 10
ip source-address 192.168.10.1 port 2000
auto assign 4 to 6
auto assign 1 to 5
//c?u h�nh ephone
ephone-dn 1
//d?nh nghia s? thu� bao c?a phone
number 2001

ephone-dn 2
number 2002

ephone-dn 3
number 2003

ephone-dn 4

ephone 1
//d?a ch? MAC c?a IP phone l� d?a ch? k?t n?i c?ng Vlan 1
mac-address 0030.a353.30ba
type 7960
//ephone button configuration
button 1:1

ephone 2
device-security-mode none
mac-address 0001.6333.e22b
type 7960
button 1:2

ephone 3
device-security-mode none
mac-address 0060.2fc1.8812
type 7960

//C�� h�nh tr�n Switch


vlan 10
name voice
exit
vlan 20
name data
//c?u h�nh c?ng k?t n?i v?i Router
interface FastEthernet0/1
switchport mode trunk
//c?u h�nh c?ng k?t n?i t? sw t?i Phone v� PC
int range f0/2-4
switchport mode access
//g�n c?ng v?i vlan
switchport access vlan 20
switchport voice vlan 10
exit

//�? xem c�ch R c?p DHCP


Edit Filters
L?c: DHCP & SCCP

//Ti?n tr�nh boot IP phone


1. Truy?n th�ng v?i switch via CDP d? bi?t n� l� c?u h�nh Vlan n�o
2. G?i 1 y�u c?u DHCP d? Get n� v�o c?u h�nh m?ng bao g?m: d?a ch? IP c?a TFTP
server
3. K?t n?i TFTP server d? Get n� v�o c?u h�nh file
4. �ang k� v?i qu?n l� call v� Get s? di?n tho?i thu� bao phone
// c?u h�nh PC t? d?ng du?c c?p IP
V�o IP config-> Ch?n DHCP
Th�m Server d? c?p luu cu?c g?i
server n?i v?i sw
//c?u h�nh Server
-Desktop/ static: 192.168.10.2; 255.255.255.0; defaultGW:192.168.10.1
//c?u h�nh Sw:
-switch/config; ch?n c?ng k?t n?i c?a sw t?i Server:
ch?n f0/5: Access; vlan 10:voice
//c?u h�nh router:d?ng b? h�a ch�nh x�c v?i ngu?n th?i gian d�ng tin c?y nhu m�y
ch? NTP.
//Update time b?ng IP c?a NTP Server
ntp server 192.168.10.2
end
//xem th?i gian hi?n t?i v� c?p nh?t th?i gian c?a Phone
sh clock
//Set the device local clock: Thi?t l?p gi? d?a phuong cho thi?t b?. L?nh n�y kh�ng
du?c th?c hi?n trong ch? d? c?u h�nh.
clock set 08:07:00 19 september 2020

You might also like