5680T-5620G傻瓜脚本
- 格式:doc
- 大小:35.00 KB
- 文档页数:4
***********************************************************
OLT
***********************************************************
dba-profile add profile-id 19 profile-name "MA5620-yuying" type5 fix 5120 assure 10240 max 20480
dba-profile add profile-id 20 profile-name "MA5620-shuju" type5 fix 10240 assure 20480 max 102400
dba-profile add profile-id 19 profile-name "MA5616-yuying" type5 fix 5120 assure 10240 max 20480
dba-profile add profile-id 20 profile-name "MA5616-shuju" type5 fix 20480 assure 30720 max 102400
*******************************************************
ont-lineprofile gpon profile-id 21 profile-name "GPON"
tcont 1 dba-profile-id 19
tcont 2 dba-profile-id 20
gem add 0 eth tcont 1 cascade on
gem add 1 eth tcont 2 cascade on
gem mapping 0 1 vlan 2613
gem mapping 0 2 vlan 2702
gem mapping 1 1 vlan 2052
commit
*****************
Int gpon 0/6
ont add 5 11 sn-auth "485754436910AD04" snmp ont-lineprofile-id 21 desc "zhengzhichangyiyuan5#1danyuan_MA5620G"
ont ipconfig 5 11 static ip-address 10.5.17.207 mask 255.255.255.0 vlan 2613 priority 0 gateway 10.5.17.1
qui
service-port vlan 2613 gpon 0/4/4 ont 5 gemport 0 multi-service user-vlan 2602 tag-transform transparent
service-port vlan 2702 gpon 0/8/4 ont 5 gemport 0 multi-service user-vlan 2702 tag-transform transparent
service-port vlan 2052 gpon 0/4/4 ont 5 gemport 1 multi-service user-vlan 2052
tag-transform transparent
******************************************************************************* ******************************
ONU
sysname linyejubei#1_MA5620G
vlan 2702 smart
port vlan 2702 0/0 1
vlan 2052 sm
vlan att 2052 stacking
port vlan 2052 0/0 1
interface vlanif 2702
ip address 10.87.248.147 255.255.255.0
quit
voip
ip address media 10.87.248.147 10.87.248.1
ip address signaling 10.87.248.147
quit
interface h248 0
y
if-h248 attribute mgip 10.87.248.147 mgport 2944 transfer udp
if-h248 attribute primary-mgc-ip1 10.66.132.65 primary-mgc-port 2944
if-h248 attribute mg-media-ip1 10.87.248.147
if-h248 attribute start-negotiate-version 1
quit
es use
mgpstnuser add 0/2/1 0 terminalid 0 mgpstnuser add 0/2/2 0 terminalid 1 mgpstnuser add 0/2/3 0 terminalid 2 mgpstnuser add 0/2/4 0 terminalid 3 mgpstnuser add 0/2/5 0 terminalid 4 mgpstnuser add 0/2/6 0 terminalid 5 mgpstnuser add 0/2/7 0 terminalid 6 mgpstnuser add 0/2/8 0 terminalid 7 mgpstnuser add 0/2/9 0 terminalid 8 mgpstnuser add 0/2/10 0 terminalid 9 mgpstnuser add 0/2/11 0 terminalid 10 mgpstnuser add 0/2/12 0 terminalid 11 mgpstnuser add 0/2/13 0 terminalid 12 mgpstnuser add 0/2/14 0 terminalid 13 mgpstnuser add 0/2/15 0 terminalid 14 mgpstnuser add 0/2/16 0 terminalid 15 quit
ip route 10.66.0.0 255.255.0.0 10.87.248.1 snmp-agent community read public snmp-agent community write private
snmp-agent trap source vlanif 45
snmp-agent trap enable standard
snmp-agent target-host trap-hostname zywg address 10.5.2.254 udp-port 162 trap-paramsname zywg
interface h248 0
reset coldstart
y
qui
multi-service-port vlan 2052 port 0/1 1-16 user-vlan untagged rx-cttr 6 tx-cttr 6
y
stacking label vlan 2052 baselabel 1281
y
ping 10.66.132.65
——————————————————————-
#save
6.查看
#display current-configuration
7.测试语音通没通:>telnet 10.90.136.72
interface h248 0
reset coldstart
display if-h248 state
Interface state Normal
ping 10.66.132.65
static-user 10.87.248.147 10.87.248.147 vpn-instance CT_SoftSwitch_Media interface GigabitEthernet9/0/3.3 vlan 2702 detect domain-name ct_softswitch_media。