天天看點

在Packet Tracer 5.3中配置語音網絡

1.測試拓撲:

2.基本配置:

A.R1:

interface FastEthernet0/0

 ip address 202.100.1.1 255.255.255.0

 no shut

interface FastEthernet0/1

 shut

interface FastEthernet0/1.10

 encapsulation dot1Q 10

 ip address 10.1.1.1 255.255.255.0

interface FastEthernet0/1.11

 encapsulation dot1Q 11

 ip address 1.1.1.1 255.255.255.0

ip dhcp pool telephonepool

 network 1.1.1.0 255.255.255.0 

 default-router 1.1.1.1

 option 150 ip 1.1.1.1

ip dhcp pool pcpool

 network 10.1.1.0 255.255.255.0

 default-router 10.1.1.1

B.Switch1:

int f0/1

  sw trunk encapsulation dot1q 

  sw mode trunk

VLAN 10

  name PC

vlan 11

 name telephone

int rang f0/2 - 3

 sw mode acc

 sw acc vlan 10

 switchport voice vlan 11

 spanning-tree portfast     

C.R2:

 ip address 202.100.1.2 255.255.255.0

 ip address 202.100.2.2 255.255.255.0

D.R3:

 ip address 202.100.2.3 255.255.255.0

interface FastEthernet0/1.20

 encapsulation dot1Q 20

 ip address 20.1.1.1 255.255.255.0

interface FastEthernet0/1.22

 encapsulation dot1Q 22

 ip address 2.2.2.1 255.255.255.0

 network 2.2.2.0 255.255.255.0 

 default-router 2.2.2.1 

 option 150 ip 2.2.2.1 

 network 20.1.1.0 255.255.255.0

 default-router 20.1.1.1

E.Switch2:

VLAN 20

vlan 22

 sw mode acce

 sw acc vlan 20

 switchport voice vlan 22

3.動态路由配置:

route ospf 1

 net 202.100.1.0 0.0.0.255 a 0

 net 10.1.1.0 0.0.0.255 a 0

 net 1.1.1.0 0.0.0.255 a 0

 passive-interface f0/1.10

 passive-interface f0/1.11

B.R2:

 net 202.100.2.0 0.0.0.255 a 0

C.R3:

 net 20.1.1.0 0.0.0.255 a 0

 net 2.2.2.0 0.0.0.255 a 0

 passive-interface f0/1.20

 passive-interface f0/1.22

4.語音網關配置:

①.開啟CME服務:

telephony-service 

 max-ephones 20

 max-dn 100

 ip source-address 1.1.1.1 port 2000

 no auto-reg-ephone 

②.電話号碼設定:

ephone-dn 1

 number 1001

ephone-dn 2

 number 1002

③.設定自動注冊:

 auto-reg-ephone 

 auto assign 1 to 2

此時左邊的兩個電話直接能夠互相撥打。

B.R3:

 ip source-address 2.2.2.1 port 2000

 number 2001

 number 2002

③.設定手動注冊:

ephone 1

 mac-address 0002.17B7.DE38

 type 7960

 button 1:1

ephone 2

 mac-address 00e0.f720.1c46 

 button 1:2

此時右邊的兩個電話直接能夠互相撥打。

5.語音網關遠端呼叫配置:

dial-peer voice 1 voip 

 destination-pattern 20..

 session target ipv4:2.2.2.1

 destination-pattern 10..

 session target ipv4:1.1.1.1

此時左邊和右邊的四個電話都能互相撥打。

本文轉自 碧雲天 51CTO部落格,原文連結:http://blog.51cto.com/333234/975606,如需轉載請自行聯系原作者

繼續閱讀