int fa0/1switchport mode trunkexitint range fa0/2-3switchport mode accessspanning-tree portfastsw voice vlan 10sw access vlan 20int g1/0/1switchport mode trunkint range g1/0/2-3switchport mode accessspanning-tree portfastsw voice vlan 30sw access vlan 40int fa0/1ip add 200.200.200.1 255.255.255.252no shint fa0/0no shint fa0/0.10encapsulation dot1Q 10ip add 192.168.10.1 255.255.255.0exitint fa0/0.20encapsulation dot1Q 20ip add 192.168.20.1 255.255.255.0exitint s0/0/0ip add 172.16.1.1 255.255.255.252no shrouter ospf 10network 200.200.200.0 0.0.0.3 area 0network 172.16.1.0 0.0.0.3 area 0network 192.168.10.0 0.0.0.255 area 0network 192.168.20.0 0.0.0.255 area 0
---
ip dhcp excluded-address 192.168.10.1ip dhcp excluded-address 192.168.20.1ip dhcp excluded-address 192.168.20.20ip dhcp pool voiceoption 150 ip 192.168.10.1 - (tftp server ip)network 192.168.10.0 255.255.255.0default-router 192.168.10.1dns-server 192.168.20.20ip dhcp pool datanetwork 192.168.20.0 255.255.255.0default-router 192.168.20.1dns-server 192.168.20.20---
telephony-servicemax-ephones 10max-dn 10ip source-address 192.168.10.1 port 2000auto assign 1 to 10auto-reg-ephone---
ephone 1type 7960button 1:1exitephone 2type 7960button 1:2ephone-dn 1number 100ephone-dn 2number 102exitdial-peer voice 1 voipdestination-pattern 1...session target ipv4:172.16.1.2exitdial-peer voice 2 voipdestination-pattern 2...session target ipv4:172.16.1.2int s0/0/0ip add 172.16.1.2 255.255.255.252no shint f0/0no shint f0/0.30encapsulation dot1Q 30ip add 192.168.30.1 255.255.255.0exitint f0/0.40encapsulation dot1Q 40ip add 192.168.40.1 255.255.255.0exitrouter ospf 10network 172.16.1.0 0.0.0.3 area 0network 192.168.30.0 0.0.0.255 area 0network 192.168.40.0 0.0.0.255 area 0---
ip dhcp excluded-address 192.168.30.1ip dhcp excluded-address 192.168.40.1ip dhcp excluded-address 192.168.40.10ip dhcp pool voiceoption 150 ip 192.168.30.1network 192.168.30.0 255.255.255.0default-router 192.168.30.1dns-server 192.168.20.20ip dhcp pool datanetwork 192.168.40.0 255.255.255.0default-router 192.168.40.1dns-server 192.168.20.20
---
telephony-servicemax-ephone 5max-dn 10ip source-address 192.168.30.1 port 2000auto assign 1 to 10auto-reg-ephoneexit
---
ephone 1type 7960button 1:1exitephone 2type 7960button 1:2exitephone-dn 1number 1001ephone-dn 2number 2000
---
dial-peer voice 1 voipdestination-pattern 1..session target ipv4:172.16.1.1Részletes magyarázat tervben van, ha odajutok.