第七章 配置增强型网关协议
实验 1:思科静态NAT配置 ................................................................................................................................... 2 实验2:思科动态NAT ............................................................................................................................................. 3 实验3:思科PAT配置 ............................................................................................................................................. 3 实验4:思科HSRP .................................................................................................................................................. 4 实验5:思科VRRP................................................................................................................................................... 7 实验6:思科GLBP ................................................................................................................................................... 8 实验7:华为配置NAT Server负载分担 .............................................................................................................. 11 实验8:华为配置主备备份VRRP ......................................................................................................................... 13 实验9:思科VoIP .................................................................................................................................................. 14 实验10:华为号码规划和VOIP的基本配置 ...................................................................................................... 16
小刚 编著
E-mail: rlcqhcsz@yahoo.com.cn QQ: rlcqhcsz@yahoo.com.cn
小刚实验室
实验 1:思科静态NAT配置
E-mail:rlcqhcsz@yahoo.com.cn
202.96.1.0/24.1S0/0/0F0/0R1.2192.168.1.0/24.2S0/0/0R2Lo0:2.2.2.2/24.1.2PC1PC2
1、配置路由器R1的NAT服务
r1(config)#ip nat inside source static 192.168.1.1 202.96.1.3 r1(config)#ip nat inside source static 192.168.1.2 202.96.1.4 r1(config)#interface f 0/0 r1(config-if)#ip nat inside r1(config)#interface s0/0/0 r1(config -if)#ip nat outside r1(config)#router rip r1(config-router)#version 2
r1(config-router)#no auto-summary r1(config-router)#network 202.96.1.0 2、配置路由器R2 r2(config)#router rip r2(config-router)#version 2
r2(config-router)#no auto-summary r2(config-router)#network 202.96.1.0 r2(config-router)#network 2.0.0.0 实验调试:
r1#debug ip nat
r1#show ip nat translations
小刚实验室
实验2:思科动态NAT
E-mail:rlcqhcsz@yahoo.com.cn
r1(config)#ip nat pool NAT 202.96.1.3 202.96.1.100 netmask 255.255.255.0 r1(config)#ip nat inside source list 1 pool NAT //配置动态NAT映射
r1(config)#access-list 1 permit 192.168.1.0 0.0.0.255 //允许动态NAT转换的内部地址
范围
r1(config)#interface f0/0 r1(config-if)#ip nat inside r1(config-if)#interface s0/0/0 r1(config-if)#ip nat outside 实验调试
用PC1访问2.2.2.2的WWW服务,PC2上ping和telnet R2的回环接口。 r1#clear ip nat translation * //清除动态NAT列表 r1#show ip nat translations
r1#show ip nat statistics //NAT转换的统计信息
实验3:思科PAT配置
r1(config)#ip nat pool NAT 202.96.1.3 202.96.1.100 netmask 255.255.255.0 r1(config)#ip nat inside source list 1 pool NAT overload //配置PAT r1(config)#access-list 1 permit 192.168.1.0 0.0.0.255 r1(config)#interface f0/0 r1(config-if)#ip nat inside r1(config-if)#interface s0/0/0 r1(config-if)#ip nat outside
动态NAT 过期时间是800s,PAT过期时间是60s,可以通过show ip nat translations verbose 查看。修改是 r1(config)#ip nat translation timeout {范围是0~2147438} 如果主机数量不多可以直接用Outside 接口地址配置PAT,不必定义地址池。命令如下 R1(config)#ip nat inside source list 1 interface s0/0/0 overload
小刚实验室
E-mail:rlcqhcsz@yahoo.com.cn
实验4:思科HSRP
F0/0.100.1S0/0/0.1192.168.12.0/24192.168.20.0/24S0/0/0.2.2.2R1PC1192.168.13.0/24.3.3F0/0S0/0/1S0/0/1192.168.23.0/24R2.100PC3R3
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.13.1 255.255.255.0 R1(config)#interface serial 0/0/0
R1(config-if)#ip add 192.168.12.1 255.255.255.0 R1(config)#router rip
R1(config-router)#network 192.168.12.0 R1(config-router)#network 192.168.13.0
R1(config-router)#passive-interface fastEthernet 0/0
//之所以把f0/0接口设置为被动接口,是为了防止该接口发送RIP信息给R3
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip add 192.168.20.2 255.255.255.0 R2(config)#interface serial 0/0/0 R2(config-if)#clock rate 128000
R2(config-if)#ip address 192.168.12.2 255.255.255.0
小刚实验室
R2(config)#interface serial 0/0/1 R2(config-if)#clock rate 128000
E-mail:rlcqhcsz@yahoo.com.cn
R2(config-if)#ip add 192.168.23.2 255.255.255.0 R2(config)#router rip
R2(config-router)#network 192.168.12.0 R2(config-router)#network 192.168.23.0 R2(config-router)#network 192.168.20.0
R2(config-router)#passive-interface fastEthernet 0/0
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 192.168.12.3 255.255.255.0 R3(config)#interface serial 0/0/1
R3(config-if)#ip add 192.168.23.3 255.255.255.0 R3(config)#router rip
R3(config-router)#network 192.168.23.0 R3(config-router)#network 192.168.13.0
R3(config-router)#passive-interface fastEthernet 0/0
配置HSRP
R1(config)#interface f0/0
R1(config-if)#standby 1 ip 192.168.12.2
//启用HSRP功能,并设置虚拟IP地址,1为Standby的组号。相同组号的路由器属于同一个HSRP组,所有属于同一个HSRP组的路由器的虚拟地址必须一致。 R1(config-if)#standby 1 priority 120
//配置HSRP的优先级,如果不设置该项,默认为100,该值越大,抢占为活动路由器的优先权越高
R1(config-if)#standby 1 preempt
//该设置允许该路由器在优先级是最高时成为活动路由器。如果不设置,即使该路由器权限在高也不会成为活动路由器。
R1(config-if)#standby 1 timers 3 10
//其中3为Hello Time ,表示路由器每隔多久发送一次Hello信息。10为Hold Time,表示在多长时间内同组的其他路由器没有收到活动路由器的信息,则认为活动路由器出现故障了。默认就是3和10.如果要更改设置,同组路由器该项必须一致。 R1(config-if)#standby 1 authentication md5 key-string cisco
小刚实验室
\\\\认证密码,同一个组密码必须一致。
R2(config)#interface fastEthernet 0/0
E-mail:rlcqhcsz@yahoo.com.cn
R2(config-if)#standby 1 ip 192.168.12.2 R2(config-if)#standby 1 preempt R2(config-if)#standby 1 timers 3 10
R2(config-if)#standby 1 authentication cisco md5 key-string cisco
R1#show standby brief
在PC1上配置IP地址,指向虚拟网关,在PC3上配置IP地址,PC1 ping –t PC3,在R1上关闭F0/0口,观察PC1上的结果。
配置跟踪接口:
R1(config)#interface fastEthernet 0/0 R1(config-if)#standby 1 track s0/0/0 30
//如果s0/0/0接口down掉,R1会 把自己的优先级减少30,例如为120-30为90.而R3默认为100,则变为活动路由器
配置多个HSRP组:我们已经虚拟一个192.168.13.2,对于这个网关只能有一个活动路由器,造成了R3的浪费,我们再创建一个HSRP组,把R3设置为活动,以达到一个负载均衡。 R1(config)#interface fastEthernet 0/0 R1(config-if)#standby 1 ip 192.168.12.2 R1(config-if)#standby 1 priority 120 R1(config-if)#standby 1 preempt
R1(config-if)#standby 1 authentication md5 key-string cisco R1(config-if)#standby 1 serial 0/0/0 30 R1(config-if)#standby 2 ip 192.168.13.253 R1(config-if)#standby 2 preempt
R1(config-if)#standby 2 authentication md5 key-string cisco
R3(config)#interface fastEthernet 0/0 R3(config-if)#standby 1 ip 192.168.12.2 R3(config-if)#standby 1 preempt
R3(config-if)#standby 1 authentication md5 key-string cisco
小刚实验室 E-mail:rlcqhcsz@yahoo.com.cn
R3(config-if)#standby 2 ip 192.168.13.253 R3(config-if)#standby 2 priority 120 R3(config-if)#standby 2 preempt
R3(config-if)#standby 2 authentication md5 key-string cisco R3(config-if)#standby 2 serial 0/0/0 30
实验5:思科VRRP
VRRP的配置和HSRP的配置基本相同,这里不再重复其步骤。 1、 配置IP地址和路由协议等 2、 配置多个VRRP组并跟踪接口
R1(config)#track 100 interface serial 0/0/0 line-protocol R1(config)#interface fastEthernet 0/0 R1(config-if)#vrrp 1 ip 192.168.13.2 R1(config-if)#vrrp 1 priority 120 R1(config-if)#vrrp 1 preempt
R1(config-if)#vrrp 1 authentication md5 key-string cisco R1(config-if)#vrrp 1 track 100 decrement 30 R1(config-if)#vrrp 2 ip 192.168.13.253 R1(config-if)#vrrp 2 preempt
R1(config-if)#vrrp 2 authentication md5 key-string cisco
//VRRP的端口跟踪和HSRP有些不同,需要在全局配置下,先定义跟踪目标,才能配置VRRP中跟踪该目标,这里定义目标是100是s0/0/0接口
R3(config)#track 100 interface serial 0/0/0 line-protocol R3(config)#interface fastEthernet 0/0 R3(config-if)#vrrp 1 ip 192.168.13.2 R3(config-if)#vrrp 1 preempt
R3(config-if)#vrrp 1 authentication md5 key-string cisco R3(config-if)#vrrp 2 ip 192.168.13.253 R3(config-if)#vrrp 2 priority 120 R3(config-if)#vrrp 2 preempt
R3(config-if)#vrrp 2 authentication md5 key-string cisco
小刚实验室 E-mail:rlcqhcsz@yahoo.com.cn
R3(config-if)#vrrp 2 track 100 decrement 30
Show vrrp brief
实验6:思科GLBP
全称Gateway Load Balancing Protocol(网管负载平衡协议)
和HSRP、VRRP不同的是,GLBP不仅提供冗余网关,还在各网关之间提供负载均衡,而HSRP、VRRP都必须选定一个活动路由器,而备用路由器则处于闲置状态。和HSRP不同的是,GLBP可以绑定多个MAC地址到虚拟IP,从而允许客户端选择不同的路由器作为其默认网关,而网关地址仍使用相同的虚拟IP,从而实现一定的冗余。
F0/0192.168.1.0/24.100F0/0.2.1F0/1.1192.168.2.0/24R1F0/1.2.4PC1R2F0/0.3F0/1.3R4Lo0:4.4.4.4/8R3
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config)#interface fastEthernet 0/1
R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config)#router rip
R1(config-router)#network 192.168.1.0 R1(config-router)#network 192.168.2.0
R1(config-router)#passive-interface fastEthernet 0/0
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.1.2 255.255.255.0 R2(config)#interface fastEthernet 0/1
小刚实验室 E-mail:rlcqhcsz@yahoo.com.cn
R2(config-if)#ip address 192.168.2.2 255.255.255.0 R2(config)#router rip
R2(config-router)#network 192.168.1.0 R2(config-router)#network 192.168.2.0
R2(config-router)#passive-interface fastEthernet 0/0
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 192.168.1.3 255.255.255.0 R3(config)#interface fastEthernet 0/1
R3(config-if)#ip address 192.168.2.3 255.255.255.0 R3(config)#router rip
R3(config-router)#network 192.168.1.0 R3(config-router)#network 192.168.2.0
R3(config-router)#passive-interface fastEthernet 0/0
R4(config)#interface Loopback0
R4(config-if)#ip address 4.4.4.4 255.0.0.0 R4(config)#interface fastEthernet 0/1
R4(config-if)#ip address 192.168.2.4 255.255.255.0 R4(config)#router rip
R4(config-router)#network 4.0.0.0 R4(config-router)#network 192.168.2.0
配置GLBP
R1(config)#interface fastEthernet 0/0 R1(config-if)#glbp 1 ip 192.168.1.2
//和HSRP类似,创建GLBP组,虚拟网关的IP为192.168.1.2 R1(config-if)#glbp 1 priortity 200
//配置优先级,优先级高的路由器成为AVG,默认为100 R1(config-if)#glbp 1 preempt
//配置AVG抢占,否则即使优先级再高,也不会成为AVG R1(config-if)#glbp 1 authentication md5 key-string cisco //以上是配置认证,防止非法设备接入
小刚实验室
R2(config)#interface fastEthernet 0/0 R2(config-if)#glbp 1 ip 192.168.1.2 R2(config-if)#glbp 1 priortity 180 R2(config-if)#glbp 1 preempt
E-mail:rlcqhcsz@yahoo.com.cn
R2(config-if)#glbp 1 authentication md5 key-string cisco
R3(config)#interface fastEthernet 0/0 R3(config-if)#glbp 1 ip 192.168.1.2 R3(config-if)#glbp 1 priortity 160 R3(config-if)#glbp 1 preempt
R3(config-if)#glbp 1 authentication md5 key-string cisco
查看GLBP信息: Show glbp
检查GLBP负载平衡:
在PC1上配置IP地址,网关指向192.168.1.2,并进行如下操作: C:\\>ping 4.4.4.4
C:\\>atp –a //表明PC2的ARP请求获得网关192.168.1.2的MAC地址 C:\\>atp –d //删除ARP缓存表 C:\\>ping 4.4.4.4 C:\\>atp –a
小刚实验室
实验7:华为配置NAT Server负载分担
E-mail:rlcqhcsz@yahoo.com.cn
WWW Server 2WWW Server 1WWW Server 3教学楼10.10.0.0/16图书馆10.30.0.0/16R-CK宿舍楼10.20.0.0/16 采用以下思路进行配置:
配置NAT地址池和访问控制列表。 在与公网连接的接口上应用NAT。 配置内部服务器。
配置内部网络用户能通过公网地址访问内部服务器的静态路由。 组网需求
如上图所示,一个校园网通过NE20E的地址转换功能连接到Internet和Cernet。校园内部对外提供WWW服务,而且提供三台WWW服务器,Internet和Cernet网络上的外部用户可以通过一个固定的公网IP地址(100.1.1.1)来访问公司内部提供的WWW服务。学校为服务器分配了固定的私网网段(10.10.10.0/24)。 配置步骤
步骤 1 配置NAT地址池和访问控制列表。 # 配置地址池和访问控制列表。 [CK-HW-NE20E-1] nat address-group 1 100.1.1.1 100.1.1.1 mask 255.255.255.252 [CK-HW-NE20E-1] ip route-static 100.1.1.1 255.255.255.252 null0 [CK-HW-NE20E-1] acl number 2000 [CK-HW-NE20E-1-acl-basic-2000] rule permit source 10.10.10.0 0.0.0.255 [CK-HW-NE20E-1-acl-basic-2000] rule deny source any [CK-HW-NE20E-1-acl-basic-2000] quit 步骤 2 配置内部服务器。 # 允许Internet上的用户访问学校内部的WWW服务器。 小刚实验室 [CK-HW-NE20E-1] interface ethernet 1/0/0 E-mail:rlcqhcsz@yahoo.com.cn [CK-HW-NE20E-1-Ethernet1/0/0] description to Internet [CK-HW-NE20E-1-Ethernet1/0/0] ip address 110.1.1.1 255.255.255.252 [CK-HW-NE20E-1-Ethernet1/0/0] nat server protocol tcp global 100.1.1.1 www inside 10.10.10.1 www 2000 address-group 1 [CK-HW-NE20E-1-Ethernet1/0/0] nat server protocol tcp global 100.1.1.1 www inside 10.10.10.2 www 2000 address-group 1 [CK-HW-NE20E-1-Ethernet1/0/0] nat server protocol tcp global 100.1.1.1 www inside 10.10.10.3 www 2000 address-group 1 # 允许Cernet网络上的外部用户访问校园内部的WWW服务器。 [CK-HW-NE20E-1] interface ethernet 1/0/1 [CK-HW-NE20E-1-Ethernet1/0/1] description to Cernet [CK-HW-NE20E-1-Ethernet1/0/1] ip address 120.1.1.1 255.255.255.252 [CK-HW-NE20E-1-Ethernet1/0/1] nat server protocol tcp global 100.1.1.1 www inside 10.10.10.1 www 2000 address-group 1 [CK-HW-NE20E-1-Ethernet1/0/1] nat server protocol tcp global 100.1.1.1 www inside 10.10.10.2 www 2000 address-group 1 [CK-HW-NE20E-1-Ethernet1/0/1] nat server protocol tcp global 100.1.1.1 www inside 10.10.10.3 www 2000 address-group 1 步骤 3 配置内部网络用户能通过公网地址访问内部服务器的静态路由。 # 内部网络用户能通过公网地址访问内部服务器,需要配置一条静态路由。 [CK-HW-NE20E-1] ip route-static 100.1.1.1 30 Ethernet1/0/0 110.1.1.1 验证结果 当配置完成后,在CK-HW-NE20E-1路由器执行display nat server命令,可以看如下信息。 [CK-HW-NE20E-1] display nat server 当有用户登录到WWW服务器上时,在CK-HW-NE20E-1路由器上执行display firewall session table命令,可以看到如下信息。 [CK-HW-NE20E-1] display firewall session table WWW,90.1.1.2:51755+->100.1.1.1:80[10.10.10.2:80] 说明 当用户通过公网地址访问WWW服务器时,NE20E路由器是随机从配置的三个内部WWW服务器中选择一个的。 小刚实验室 实验8:华为配置主备备份VRRP E-mail:rlcqhcsz@yahoo.com.cn 在配置主备备份VRRP时,采用如下配置思路: 配置各路由器接口的网络层属性,使网络连通。 在路由器的指定接口下创建VRRP配置组,指定VRRP备份组的优先级、抢占方式、抢占延迟时间等。 组网需求 如下图所示。主机HostA通过缺省网关访问主机HostB。 需求如下: RouterA和RouterB组成VRRP备份组,作为HostA的缺省网关。 正常情况下,RouterA承担网关工作;当RouterA出现故障时,RouterB接替执行网关工作。 RouterA恢复后,能在20秒内抢占成为Master。 主备备份VRRP组网图 Backup group 1Virtual IP Address”10.1.1.111GE2/0/010.1.1.1/24RouterAMasterHostAPOS1/0/0192.168.1.0/24.1POS1/0/0.2.2POS2/0/020.1.1.0/24Eth3/0/0.1.100HostB10.1.1.100/24GE2/0/0.210.1.1.2/24.1192.168.2.0/24POS1/0/0RouterC20.1.1.100/24RouterBBuckup 配置步骤 步骤 1 配置设备之间的网络互连 # 设置主机HostA的缺省网关为10.1.1.111。 # 在RouterA、RouterB、RouterC路由器之间采用OSPF协议进行互连。 步骤 2 配置VRRP # 在RouterA上,配置接口IP地址,创建备份组1,并配置RouterA在该备份组中的优先级为120(作为Master)。 [RouterA] interface gigabitethernet 2/0/0 [RouterA-GigabitEthernet2/0/0] ip address 10.1.1.1 24 [RouterA-GigabitEthernet2/0/0] vrrp vrid 1 virtual-ip 10.1.1.111 [RouterA-GigabitEthernet2/0/0] vrrp vrid 1 priority 120 小刚实验室 [RouterA-GigabitEthernet2/0/0] quit E-mail:rlcqhcsz@yahoo.com.cn [RouterA-GigabitEthernet2/0/0] vrrp vrid 1 preempt-mode timer delay 20 # 在RouterB上,配置接口IP地址,创建备份组1,并配置RouterB在该备份组中的优先级为缺省值(作为Backup)。 [RouterB] interface gigabitethernet 2/0/0 [RouterB-GigabitEthernet2/0/0] ip address 10.1.1.2 24 [RouterB-GigabitEthernet2/0/0] vrrp vrid 1 virtual-ip 10.1.1.111 [RouterB-GigabitEthernet2/0/0] quit 验证结果 验证VRRP备份组能够正常提供网关功能 完成以上配置后,在主机HostA上能够Ping通HostB,在RouterA上执行display vrrp命令可以看到RouterA的状态是Master,在RouterB上执行display vrrp命令可以看到RouterB的状态是Backup. 在RouterA和RouterB上执行display ip routing-table命令,RouterA上可以看到路由表中有一条目的地址为虚拟IP地址的直连路由,而RouterB上该路由为OSPF路由。RouterA和RouterB上的显示信息。 验证RouterA故障时RouterB能够成为Master 对RouterA的GE2/0/0接口执行shutdown命令,模拟RouterA出现故障。 在RouterB上使用display vrrp命令查看VRRP状态信息,应能够看到RouterB的状态是Master,如下。 对RouterA的GE2/0/0接口执行undo shutdown命令,GE2/0/0接口恢复UP状态后,等待20秒,在RouterA上使用display vrrp命令查看VRRP状态信息,应能够看到RouterA的状态恢复成Master。 实验9:思科VoIP 拨号点1FXS语音接口3/1/0拨号点2拨号点3FXS语音接口3/0/0拨号点4S0/0S0/1IP电话1111111111R1R2IP电话222222222 基本配置R1 小刚实验室 r1(config)#interface serial 0/0 E-mail:rlcqhcsz@yahoo.com.cn r1(config-if)#ip address 192.168.100.1 255.255.255.0 r1(config)#ip route 0.0.0.0 0.0.0.0 192.168.100.1 基本配置配置R2 R2(config)#interface serial0/1 R2(config-if)#ip address 192.168.100.2 255.255.255.0 R2(config)# ip route 0.0.0.0 0.0.0.0 192.168.100.2 1、 配置拨号点1:主要是定义拨号对等体到物理接口的连接(模拟端的配置) R1(config)#dial-peer voice 1 pots //建立一个拨号的关系,post指的是这段接的是post(模拟电话)要和语音接口绑定 R1(config-dial-peer)#destination-pattern 己方电话 R1(config-dial-peer)#port 3/1/0 2、 配置拨号点2:主要是定义拨号对等体之间的连接(数字端的配置) R1(config)#dial-peer voice 2 voip R1(config-dial-peer)#destination-pattern 对方电话号码 R1(config-dial-peer)#req-qos controlled-load --这条命令是为了在分配带宽时,确保即使带宽发生拥塞过载时,数据也能得到优先处理。 R1(config-dial-peer)#codec g711alaw --这条命令是配置拨号点的语音编码速率-000Bps R1(config-dial-peer)#ip precedence 5 //配置IP优先级,5为关键 R1(config-dial-peer)#no vad //禁用语音活动检测 R1(config-dial-peer)#session target ipv4:192.168.100.2 --定义voip路由,为对端IP地址。 3、配置拨号点4:主要是定义拨号对体到语音物理接口的连接 R2(config)#dial-peer voice 1 pots R2(config-dial-peer)#destination-pattern 己方电话 R2(config-dial-peer)#port 3/0/0 4、 配置拨号点3:定义拨号对等体之间的连接 R2(config)#dial-peer voice 2 voip R2(config-dial-peer)#destination-pattern 对方电话号码 R2(config-dial-peer)#req-qos controlled-load --这条命令是为了在分配带宽时,确保即使带宽发生拥塞过载时,数据也能得到优先处理。 R2(config-dial-peer)#codec g711alaw --这条命令是配置拨号点的语音编码速率-000Bps 小刚实验室 E-mail:rlcqhcsz@yahoo.com.cn R2(config-dial-peer)#ip precedence 5 //配置IP优先级,5为关键 R2(config-dial-peer)#no vad //禁用语音活动检测 R2(config-dial-peer)#session target ipv4:192.168.100.2 --定义voip路由,为对端IP地址。 实验10:华为号码规划和VOIP的基本配置 【需求】 公司或企事业单位甲乙丙三个跨省市分部通过PSTN长途互通电话,内部通过程控交换机互通电话。 同时三地具有了数据网,并且流量不大,此时甲乙丙三地可以选择使用Voip将话路转移到数据网上,以节省跨省市的长途费用。 需要做的就是增加语音网关,或者在现有的路由器上增加语音模块:FXO、E&M、E1VI、FXS。 丁地为新增加的分部,可以考虑直接增加带语音模块(如FXS)的路由器。 随着分部的增加,增加一台网守(GK)是绝对有必要的。为方便起见,就放在戊地,实际放在数据可通的任何一地均可。 假设原号码分配为: 甲地 1xxx 乙地 2xxx 小刚实验室 丙地 3xxx 丁地 4xxx 【配置脚本】 甲地配置脚本 voice-setup # aaa-client # sip # dial-program # entity 2 voip address ip 2.2.2.2 match-template 2... # entity 3 voip address ip 3.3.3.3 match-template 3... # entity 4 voip address ip 4.4.4.4 match-template 4... # entity 11 pots dial-prefix 1 match-template 1... line 0 # entity 12 pots dial-prefix 1 match-template 1... line 1 # gk-client E-mail:rlcqhcsz@yahoo.com.cn 小刚实验室 # subscriber-line 0 # subscriber-line 1 # 首款SSD固态硬盘DV 三星H105 佳能IXUS 980 IS 其他一些参数和注意事项 静音检测 缺省情况下,禁止静音检测功能。 E-mail:rlcqhcsz@yahoo.com.cn VAD是Voice Activity Detection的缩写,字面意思是语音活动检测,通常称为静音检测。其基本思想是根据人们日常谈话的话音信号和沉默信号能量高低不同来检测静音并加以删除,不产生信号;检测到突发的活动声音时才生成语音信号并传输。研究表明运用VAD技术能够获得不少于50%的传输带宽。 [Quidway-voice-dial]default entity vad-on 舒适背景噪音 缺省情况下,使能舒适噪音配置。 此命令适用于FXO、FXS、模拟E&M接口和数字E1语音用户线。 命令cng-on用于使能舒适噪音配置。当相应语音语音实体上的静音检测功能(VAD)被使能后,使用该命令可以产生适当的背景噪音以填充通话过程中的静音间隙。如果不产生舒适噪音,那么通话中的静音间隙将会使通话者感到不安。 [Quidway-voice-line1]cng-on 快速连接 缺省情况下,为非快速连接。 由于快速连接方式不存在能力协商过程,因此双方能力的确定是由被叫网关决定的。路由器作为主叫网关时,可为发起的每路呼叫配置是否使用快速连接方式;作为被叫网关时,如果主叫网关使用了快速连接,被叫网关也将使用快速连接方式,否则不使用。 当主被叫双方都支持快速连接功能时,接续采用快速连接流程进行;只要主被叫一方不支持快速连接方式,则自动切换到非快速连接流程进行接续。 在具体配置时,只需要在主叫网关侧VoIP语音实体视图下进行配置即可。只有成功启用快速连结方式后才能进行隧道功能的配置。 [Quidway-voice-dial-entity10]fast-connect 小刚实验室 『注意』 其细微差别需要仔细辨别。 调整增益 E-mail:rlcqhcsz@yahoo.com.cn 此命令适用于FXO、FXS、模拟E&M接口和数字E1语音用户线,当线路上语音信号衰减较大,可以使用该命令适当增大语音输入增益。 [Router-voice-line1]receive gain 3.5 此命令适用于FXO、FXS、模拟E&M接口和数字E1语音用户线。当输出线路上需要的语音信号功率较小,可以使用该命令适当增大语音输出衰减值以适应输出线路信号要求。 [Quidway-voice-line1]transmit gain -6.7 『注意』 它们的单位都是dB。缺省都是0。调整的是话音大小。 来电号码显示 现在发货的fxo模块都支持来电号码显示,VRP版本来电显示开关缺省是开的。如果您觉得接续时间太长(拨号会延迟2秒)难以忍受,请在subscriber-line里用undo cid enble关闭此命令 使用E&M的一些注意事项 [Router-voice-dial]subscriber-line 0中有一些E&M专有的配置,一般缺省即可 路由器一定要与程控交换机共地,否则会出现各种无法预测的现象 E&M的voice-port里的设置请根据实际情况配置 E&M和fxo的拨号配置是一样的 E&M的线序一定要连接正确,如下: 路由器模块侧:RJ-45管脚信号 对应交换机信号: 1----------SB(负电源)-----------------空 2----------E-------------------------M 3----------RING0---------------------RING0 4----------RING1---------------------RING1 5----------TIP1----------------------TIP1 6----------TIP0----------------------TIP0 7----------M-------------------------E 8----------SG(负电源地)---------------空 3,6为一对线,为发信号,对应交换机的收 4,5为一对线,为收信号,对应交换机的发 2对应交换机的M信号 小刚实验室 7对应交换机的E信号 ipfax传真配置 E-mail:rlcqhcsz@yahoo.com.cn 在[Router-voice-dial-entity]里,voip和pots以及vofr都需要 可根据实际情况增加如下配置 fax protocol t38 ls-redundancy 2 协议t38低速2冗余包,与思科互通需要配成fax protocol nonstandard fax baudrate 9600 速率是9600 fax train-mode ppp 训练模式是ppp GK的配置 『需求』 [Router-voice]gk-client [Router-voice-gk] gw-address 1.1.1.1 [Router-voice-gk] gw-id bj [Router-voice-gk] gk-id gk-center gk-addr 5.5.5.5 1719 [Router-voice-gk] area-id 1# [Router-voice-gk] ras-on 进入gk视图 gw的ip 自己的id GK的名称和地址,以及端口号 区域ID 激活GK 因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- azee.cn 版权所有 赣ICP备2024042794号-5
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务