设为首页收藏本站language 语言切换
查看: 1892|回复: 3
收起左侧

[原创] Cisco和H3C的语音

[复制链接]
发表于 2013-5-5 14:40:12 | 显示全部楼层 |阅读模式
1.jpg
脚本:
R1:
en
conf t
host CCNA
line con 0
exec-time 0 0
logg sy
exit
int fa0/1
ip add 192.168.1.254 255.255.255.0
no sh
exit
int s1/0
no sh
ip add 10.1.1.1 255.255.255.252
exit
telephony-service
max-ephones 10
max-dn 20
keepalive 10
ip source-address 192.168.1.254 port2000  
system message CCNA
exit
ephone-dn 1
number 1111
name host1
exit
ephone-dn 2
number 2222
name host2
exit
ephone 1
mac-address 00D0.D345.8B84           
type 7985                             
button 1:1      
video
exit
ephone 2
mac-address 0001.C99B.B51B
type 7985
button 1:2
video
exit
dial-peer voice 1 voip
destination-pattern 3333
session target ipv4:10.1.1.2                 
exit
dial-peer voice 2 voip
destination-pattern 4444
session target ipv4:10.1.1.2
exit
ip route 0.0.0.0 0.0.0.0 10.1.1.2
ip dhcp excluded-address 192.168.1.254     
ip dhcp pool CCNA                          
network 192.168.1.0 255.255.255.0         
default-router 192.168.1.254               
option 150 ip 192.168.1.254                 
end
clock set 14:30:00 5 may 2013
conf t
telephony-service
creat cnf-file              
end




R2:
ene
conf t
host CCNA
line con 0
exec-time 0 0
logg sy
exit
int fa0/1
ip add 192.168.2.254 255.255.255.0
no sh
exit
int s1/0
no sh
ip add 10.1.1.2 255.255.255.252
clock rate 64000
exit
telephony-service
max-ephones 10
max-dn 20
keepalive 10
ip source-address 192.168.2.254 port 2000
system message CCNA
exit
ephone-dn 1
number 3333
name host3
exit
ephone-dn 2
number 4444
name host4
exit
ephone 1
mac-address 0090.2189.C038
type 7985
button 1:1
exi
ephone 2
mac-address 00E0.A361.0643
type 7985
button 1:2
exit
dial-peer voice 1 voip
destination-pattern 1111
session target ipv4:10.1.1.1
exit
dial-peer voice 2 voip
destination-pattern 2222
session target ipv4:10.1.1.1
exitlo
ip route 0.0.0.0 0.0.0.0 10.1.1.1
ip dhcp excluded-address 192.168.2.254
ip dhcp pool CCNA
network 192.168.2.0 255.255.255.0
default-router 192.168.2.254
option 150 ip 192.168.2.254
end
clock set 14:30:00 5 may 2013
conf t
telephony-service
creat cnf-file
end


H3C.jpg





脚本:

RouterA:
system-view
sysname RouterA
radius scheme h3c
key authentication test
key accounting test
primary authentication 1.1.1.3 1812
primary accounting 1.1.1.3 1813
user-name-format without-domain
server-type extended
domain system
authentication voip radius-scheme h3c
authorization voip radius-scheme test
accounting voip radius-scheme h3c
qu
voice-setup
dial-program
gw-access-number 12345
process-config cardnumber
card-digit 10
password-digit 4
authentication
authorization
accounting
redialtimes 3
end


RouterB:
system-view
sysname RouterB
radius scheme h3c
key authentication test
key accounting test
primary authentication 1.1.1.3 1812
primary accounting 1.1.1.3 1813
user-name-format without-domain
server-type extended
domain system
authentication voip radius-scheme h3c
authorization voip radius-scheme test
accounting voip radius-scheme h3c
qu
voice-setup
dial-program
gw-access-number 12345
process-config cardnumber
card-digit 10
password-digit 4
authentication
authorization
accounting
redialtimes 3
end








发表于 2013-5-5 14:54:54 | 显示全部楼层
谢谢,O(∩_∩)O哈哈~
沙发 2013-5-5 14:54:54 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-5-9 23:39:48 | 显示全部楼层
好帖留名.
板凳 2013-5-9 23:39:48 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2013-9-28 12:30:21 | 显示全部楼层
地板 2013-9-28 12:30:21 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-25 13:32 , Processed in 0.091361 second(s), 28 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表