好久没有更新文章啦。

前几天在帮老师做计算机网络实验。这几天一直在忙这些。虽说去年这个时候已经将这个IP电话的实验做了出来但是到现在都已经忘得差不多了。。。所以,在这里贴出来一下也供大家参考

实验内容

连接路由器

–打开路由器电源

–使用console线将计算机串口com1与路由器console口直接相连;

–建立HyperTerminal:开始->程序->附件->通讯->超级终端->名称=router->连接=com1àBaut Rate=**9600 ,8,no parity, 1 stop bit;

–进入特权模式:router01>en(able) ,Enable Secret Password=cisco

配置端口

配置快速以太f0/0

–进入配置模式:router01#config t

–进入以太口:router01(config)#in f0/0

--删除旧IP地址: router01(config-if)#no ip address

--添加IP地址: router01(config-if)#ip address 192.168.1.1 255.255.255.0

--开启端口功能:router01(config-if)#no shut

###配置Host1 IP地址

IP地址:   192.168.1.10

子网掩码:255.255.255.0

默认网关:192.168.1.1

###配置IP电话</p>

--将IP电话电源连接好

--将IP电话与交换机用高质量网线相连接

--配置第一个IP电话:

--按下IP电话菜单键

--选择 3. Settings

--选择 2. Network Configuration

--按下 * * #  (星星井) 解锁IP电话网络配置编辑

--选择 22 DHCP Enabled 将其变为Yes

--选择save

--按下 * * #  (星星井) 锁定IP电话网络配置编辑

 

--配置第二个IP电话:

--按下IP电话菜单键

--选择 3. Settings

--选择 2. Network Configuration

--按下 * * #  (星星井)  解锁IP电话网络配置编辑

--选择 22 DHCP Enabled 将其变为Yes

--选择save

--按下 * * #  (星星井) 锁定IP电话网络配置编辑

配置路由器DHCP

--进入配置模式:router01#config t

-- router01(config)# ip dhcp excluded-address 192.168.1.1

-- router01(config)# ip dhcp pool voip

-- router01(dhcp-config)# default-router 192.168.1.1

-- router01(dhcp-config)# network 192.168.1.0 255.255.255.0

-- router01(dhcp-config)# option 150 ip 192.168.1.1

-- router01(dhcp-config)# exit

配置路由器IP电话服务 telephony-service

--进入配置模式:router01#config t

-- router01(config)# no telephony-service

-- router01(config)# telephony-service setup

Warning: <telephony-service setup> command has been deprecated.

For installation help, please check CME System Administrator Guide.

 

 

 --- Cisco IOS Telephony Services Setup ---

 

 

Do you want to setup DHCP service for your IP Phones? [yes/no]:yes

Configuring DHCP Pool for Cisco IOS Telephony Services :

 

  IP network for telephony-service DHCP Pool:192.168.1.0

  Subnet mask for DHCP network :255.255.255.0

  TFTP Server IP address (Option 150) :192.168.1.1

  Default Router for DHCP Pool :192.168.1.1

 

Do you want to start telephony-service setup? [yes/no]: yes

Configuring Cisco IOS Telephony Services :

 

  Enter the IP source address for Cisco IOS Telephony Services :192.168.1.1

  Enter the Skinny Port for Cisco IOS Telephony Services :  [2000]: (直接回车)

How many IP phones do you want to configure :  [0]: 10(回车。需要设置多少部电话,按需求添加

Do you want dual-line extensions assigned to phones? [yes/no]: no 

What Language do you want on IP phones :

      0  English

      1  French

      2  German

      3  Russian

      4  Spanish

      5  Italian

      6  Dutch

      7  Norwegian

      8  Portuguese

      9  Danish

      10 Swedish

      11 Japanese

 [0]:(回车)

Which Call Progress tone set do you want on IP phones :

      0  United States

      1  France

      2  Germany

      3  Russia

      4  Spain

      5  Italy

      6  Netherlands

      7  Norway

      8  Portugal

      9  UK

      10  Denmark

      11  Switzerland

      12  Sweden

      13  Austria

      14  Canada

      15  Japan

 [0](回车)                            

What is the first extension number you want to configure (maximum 32 digits):1001

Do you have Direct-Inward-Dial service for all your phones? [yes/no]: no

 

Do you want to forward calls to a voice message service? [yes/no]: no

 

Do you wish to change any of the above information? [yes/no]:no (如果上面输入有错误的话,这里填写yes之后重新进行配置。)

 

等待IP电话自动注册结束即可互通电话。