Anda di halaman 1dari 2

DHCP SERVER:

Router>enable
Router#config t
Router#hostname DHCP
Router(config)#int fa0/0
Router(config-if)#ip add 172.16.5.2 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#ip dhcp exclude 172.16.5.1 172.16.5.5
Router(config)#ip dhcp pool PHONES
Router(dhcp-config)#network 172.16.5.0 255.255.255.0
Router(dhcp-config)#default
Router(dhcp-config)#default-router 172.16.5.1
Router(dhcp-config)#option 150 ip 172.16.5.1
(Option 150 tells the phones o
f which is their TFTP server)
Router(dhcp-config)#

SWITCH:
Switch>enable
Switch#config t
Switch(config)#vlan 5
Switch(config-vlan)#name PHONES
Switch(config)#vlan 10
Switch(config-vlan)#name DATA
Switch(config-vlan)#exit
Switch(config)#int range fa0/1-3
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#switchport voice vlan 5
Switch(config-if-range)#exit
Switch(config)#int fa0/23
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 5
Switch(config-if)#int fa0/24
Switch(config-if)#switchport mode trunk
UCME:
Router>enable
Router#config t
Router(config)#hostname UCME
Router_UCME(config)#interface fa0/0
Router_UCME(config-if)#no shutdown
Router_UCME(config-if)#interface fa0/0.5
Router_UCME(config-subif)#encapsulation dot1q 5
Router_UCME(config-subif)#ip address 172.16.5.1 255.255.255.0
Router_UCME(config)#telephony-service
Router_UCME(config-telephony)#max-ephones 10
Router_UCME(config-telephony)#max-dn 10
Router_UCME(config-telephony)#ip source-address 172.16.5.1 port 2000

Router_UCME(config)#ephone-dn 1
Router_UCME(config-ephone-dn)#number 1111
Router_UCME(config-ephone-dn)#ephone-dn 2
Router_UCME(config-ephone-dn)#number 2222
Router_UCME(config-ephone-dn)#ephone-dn 3
Router_UCME(config-ephone-dn)#number 3333
Router_UCME(config)#ephone 1
Router_UCME(config-ephone)#button 1:1
Router_UCME(config)#ephone 2
Router_UCME(config-ephone)#button 1:2
Router_UCME(config)#ephone 3
Router_UCME(config-ephone)#button 1:3

<=== EPHONE1 assigned to DN1

Anda mungkin juga menyukai