You are on page 1of 4

秦皇岛 7330 开局脚本

管理 IP : 218.12.152.110/24 语音 IP : 10.51.122.50/24 软交换 IP : 10.2.160.2


218.12.152.1 10.51.122.1
VLAN 194 VLAN 193

软交换类型: hw-soft3000 ,物理前缀: A


1. 配置板卡

configure equipment slot 1/1/4 planned-type nvlt-c


configure equipment slot 1/1/6 planned-type nalt-b
configure equipment slot 1/1/8 planned-type nvps-a

configure equipment slot 1/1/[9 …10] planned-type npot-a

2. 配置管理地址、网关

configure system single-public-ip


configure system management host-ip-address manual:218.12.152.110/24
configure system management default-route 218.12.152.1
3. 打开所有相关端口

configure interface shub port 0 port-type network admin-status auto-up

4. 配置管理 VLAN

configure system mgnt-vlan-id 194


configure>system# configure system shub entry vlan ext-vlan-id 194

configure vlan shub id 194 egress-port network:0

5.配置 IVPS 的 MEGACO VLAN/VOICE VLAN

configure vlan shub id 193 mode residential-bridge


configure vlan shub id 193 egress-port lt:1/1/[8 … 10]
configure vlan shub id 193 egress-port network:0

6.配置 PRIVATE VLAN // 注:由于是单框配置, private vlan 不用指出去 ,113VLAN 自己设定, 不要和其它 VLAN

成倍数就可以

configure vlan shub id 113 mode voice-vlan

configure vlan shub id 113 egress-port lt:1/1/[8...10]

7. 配置主框 Node1 的 IP 地址和网关

configure ip shub vrf 2 fast-path-mode:ena-user-user-com name voice


configure interface shub vlan-id 113 admin-status down

configure interface shub ip 113 vrf-id 2


configure interface shub ip 113 ip-addr 192.168.1.2/24
configure ip shub vrf 2 route-dest 0.0.0.0/0 next-hop 192.168.1.1 vlan-id 113
configure interface shub vlan-id 113 admin-status up

8. 配置 SNMP

configure system security snmp community public host-address 135.251.214.200/24 privilege


read-write
configure system security snmp community NETMAN host-address 135.251.214.200/24 context
shub
configure system security snmp community xvps-snmp host-address 135.251.214.200/24 context

xvps8

保存数据
admin software-mngt shub database save

9. 配置 IVPS 参数
1 . 配置 XLES :

configure voice cluster 3 ip ivps-ip 10.51.122.50 netmask 255.255.255.0 router-ip 10.51.122.1 vlan-id

193 private-ip 192.168.1.3 private-netmask 255.255.255.0 private-vlan-id 113 一共 16 个用户板

槽位,物理上第一二块用户槽就是 cluster 1 ,第三四块板卡就是 cluster 2 ,以此类推。(与 cli 命令行中显

示的 LT 无关,查看机框槽位处印制的槽位号)

2 . 配置 MGC

configure voice cluster 3 media-gateway 1 name beiling ip-address 10.51.122.50 netmask


255.255.255.0 vlan-id 193 prim-mgc-ip 10.2.160.2 router-ip 10.51.122.1 admin-status lock

由于 3601 版本默认不开启心跳,要开启被动心跳:

configure voice cluster 3 media-gateway 1 admin-status lock


configure voice cluster 3 media-gateway 1 passive-heartbeat dynamic
configure voice cluster 3 media-gateway 1 termid-type flat pstn-term-format A
configure voice cluster 3 media-gateway 1 mgc-type hw-soft3000
configure voice cluster 3 media-gateway 1 max-transhandling 6000 retrans fix:1500

激活网关:

configure voice cluster 3 media-gateway 1 admin-status unlock

备注:配置完成每条命令后,可以直接打 info 查看配置结果,如果上面配置关于 MGC 的参数,配置完每

条命令以后, info 查询:会把你所配置的参数显示出来

如下所示:

configure>voice>cluster>3>media-gateway>1# info

configure voice cluster 3


#-----------------------------------------------------------------------------------------------------------------------------------
echo "voice"
#-----------------------------------------------------------------------------------------------------------------------------------
media-gateway 1 name beiling ip-address 10.51.122.50 netmask 255.255.255.0 vlan-id 193
prim-mgc-ip 10.2.160.2
router-ip 10.51.122.1
mgc-type hw-soft3000

admin-status unlocked
termid-type flat
pstn-term-format A
isdn-term-format BA
isdn-suffix1 /B1

isdn-suffix2 /B2
max-transhandling 6000
passive-heartbeat dynamic
retrans fix:1500
exit
#---------------------------------------------------------------------------------------------------------------------------------

查看网关是否注册成功 :

# show voice cluster 3 media-gateway 1 detail //oper-status 如果为 UP 就表示注册上了

============================================================================
media-gateway table (detailed)
============================================================================
media-gateway
media-gateway-id : 1 oper-status : down

active-mgc : primary
============================================================================

3 .创立节点

configure voice cluster 3 equipment 1 asam-id node ip-address 192.168.1.2 next-hop 0.0.0.0

4 .关联用户板

configure voice cluster 3 equipment 1 board 1/1/9 lanx-port 6

configure voice cluster 3 equipment 1 board 1/1/10 lanx-port 7 注:这里的 1/1/1 是必须按照机框上

槽位处的编号来配的,与 cli 命令行显示的槽位号无关, lanx port 的号也是根据机框上的编号来订的。第一块用

户板是 1 。第二块用户板是 2

5 .创建用户

configure voice cluster 3 equipment 1 termination 1/1/1/1 termination-id 1 media-gateway-id 1

admin-status unlocked 此处的 1/1/1/1 是指框上第一块用户板的第一

个端口

configure voice cluster 3 equipment 1 termination 1/1/9/ 2 termination-id 2 media-gateway-id 1


admin-status unlocked
configure voice cluster 3 equipment 1 termination 1/1/ 10/48 termination-id 96 media-gateway-id 1
admin-status unlocked

10 . 下载 CDE

configure vlan shub id 194 untag-port network:0


configure bridge shub port 0 pvid 194

admin software-mngt cdeprof download 218.12.152.105 :MSR2AE33.007 //下载 CDE 要在 PC启用

TFTP server ,红色字体为 TFTP server ip

查看 CDE 是否下载完成:

show software-mngt cdeprof dldstatus


============================================================================
dldstatus table
============================================================================
server-ip : 218.12.152.105
path : MSR2AE33.007(New)

download-progress : download-success download-error : no-error


============================================================================
激活 CDE

# admin software-mngt cdeprof activate MSR2AE33.007 // 激活 CDE 会让 polt-a 和 IVPS 板重起

You might also like