IP Phone Lab
Router
ip dhcp excluded-address 10.0.0.1 10.0.0.10 ip dhcp excluded-address 20.0.0.1 20.0.0.10 ip dhcp excluded-address 11.0.0.1 11.0.0.10 ip dhcp excluded-address 21.0.0.1 21.0.0.10 ip dhcp excluded-address 30.0.0.1 30.0.0.10 ! ip dhcp pool LAN10 network 10.0.0.0 255.255.255.0 default-router 10.0.0.1 option 150 ip 10.0.0.1 ! ip dhcp pool LAN20 network 20.0.0.0 255.255.255.0 default-router 20.0.0.1 option 150 ip 20.0.0.1 dns-server 8.8.8.8
Router
ip dhcp pool LAN11 network 11.0.0.0 255.255.255.0 default-router 11.0.0.1 dns-server 8.8.8.8 ! ip dhcp pool LAN21 network 21.0.0.0 255.255.255.0 default-router 21.0.0.1 dns-server 8.8.8.8 ! ip dhcp pool LAN30 network 30.0.0.0 255.255.255.0 default-router 30.0.0.1 dns-server 8.8.8.8
Router
interface FastEthernet0/0 ip address 1.1.1.1 255.255.255.0 ! interface FastEthernet0/0.10 description Voice Vlan 10 encapsulation dot1Q 10 ip address 10.0.0.1 255.255.255.0 ! interface FastEthernet0/0.11 description Access VLAN 11 encapsulation dot1Q 11 ip address 11.0.0.1 255.255.255.0 !
Router
interface FastEthernet0/0.20 description Voice Vlan 20 encapsulation dot1Q 20 ip address 20.0.0.1 255.255.255.0 ! interface FastEthernet0/0.21 description Access VLAN 21 encapsulation dot1Q 21 ip address 21.0.0.1 255.255.255.0 ! interface FastEthernet0/0.30 description Access VLAN 30 encapsulation dot1Q 21 ip address 30.0.0.1 255.255.255.0 !
Router
telephony-service max-ephones 10 max-dn 10 ip source-address 1.1.1.1 port 2000 system message Cisco VOIP create cnf-files version-stamp Jan 01 2002 00:00:00 keepalive 15 max-conferences 4 gain -6 ! ephone-dn 1 number 5001 name HOST A ! ephone-dn 2 number 5002 name HOST B !
Router
ephone-dn 3 number 5003 name HOST PC ! ephone 1 mac-address 0022.90BB.DFDF type 7940 button 1:1 ! ephone 2 mac-address 0022.90BB.DDC8 type 7940 button 1:2 ! ephone 3 mac-address 0004.6163.48A7 type CIPC button 1:3
SWITCH
interface FastEthernet0/1 description to IP Phone 1 switchport access vlan 11 switchport mode trunk // option ? switchport voice vlan 10 mls qos trust device cisco-phone mls qos trust cos spanning-tree portfast
SWITCH
interface FastEthernet0/2 description to IP Phone 2 switchport access vlan 21 switchport voice vlan 20 mls qos trust device cisco-phone mls qos trust cos spanning-tree portfast
SWITCH
interface FastEthernet0/3 description to PC switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/4 description to Cisco CME switchport mode trunk