SW1 - 2960

int fa0/1
switchport mode trunk
exit
int range fa0/2-3
switchport mode access
spanning-tree portfast
sw voice vlan 10
sw access vlan 20

SW2 - 3650

int g1/0/1
switchport mode trunk
int range g1/0/2-3
switchport mode access
spanning-tree portfast
sw voice vlan 30
sw access vlan 40

R1 - 2811

int fa0/1
ip add 200.200.200.1 255.255.255.252
no sh
int fa0/0
no sh
int fa0/0.10
encapsulation dot1Q 10
ip add 192.168.10.1 255.255.255.0
exit
int fa0/0.20
encapsulation dot1Q 20
ip add 192.168.20.1 255.255.255.0
exit
int s0/0/0
ip add 172.16.1.1 255.255.255.252
no sh
router ospf 10
network 200.200.200.0 0.0.0.3 area 0
network 172.16.1.0 0.0.0.3 area 0
network 192.168.10.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0

---

ip dhcp excluded-address 192.168.10.1
ip dhcp excluded-address 192.168.20.1
ip dhcp excluded-address 192.168.20.20
ip dhcp pool voice
option 150 ip 192.168.10.1 - (tftp server ip)
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 192.168.20.20
ip dhcp pool data
network 192.168.20.0 255.255.255.0
default-router 192.168.20.1
dns-server 192.168.20.20

---

telephony-service
max-ephones 10
max-dn 10
ip source-address 192.168.10.1 port 2000
auto assign 1 to 10
auto-reg-ephone

---

ephone 1
type 7960
button 1:1
exit
ephone 2
type 7960
button 1:2
ephone-dn 1
number 100
ephone-dn 2
number 102
exit
dial-peer voice 1 voip
destination-pattern 1...
session target ipv4:172.16.1.2
exit
dial-peer voice 2 voip
destination-pattern 2...
session target ipv4:172.16.1.2

R2 - 2811

int s0/0/0
ip add 172.16.1.2 255.255.255.252
no sh
int f0/0
no sh
int f0/0.30
encapsulation dot1Q 30
ip add 192.168.30.1 255.255.255.0
exit
int f0/0.40
encapsulation dot1Q 40
ip add 192.168.40.1 255.255.255.0
exit
router ospf 10
network 172.16.1.0 0.0.0.3 area 0
network 192.168.30.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0

---

ip dhcp excluded-address 192.168.30.1
ip dhcp excluded-address 192.168.40.1
ip dhcp excluded-address 192.168.40.10
ip dhcp pool voice
option 150 ip 192.168.30.1
network 192.168.30.0 255.255.255.0
default-router 192.168.30.1
dns-server 192.168.20.20
ip dhcp pool data
network 192.168.40.0 255.255.255.0
default-router 192.168.40.1
dns-server 192.168.20.20

---

telephony-service
max-ephone 5
max-dn 10
ip source-address 192.168.30.1 port 2000
auto assign 1 to 10
auto-reg-ephone
exit

---

ephone 1
type 7960
button 1:1
exit
ephone 2
type 7960
button 1:2
exit
ephone-dn 1
number 1001
ephone-dn 2
number 2000

---

dial-peer voice 1 voip
destination-pattern 1..
session target ipv4:172.16.1.1

Részletes magyarázat tervben van, ha odajutok.