public signaltrace_switch disable //设置SNMP trap接收地址
Admin\\service#Set snmp trapreceiver ip x.x.x.x port id //设置snmp trap端口
Admin\\service# service snmp trap enable //snmp trap 使能
Admin\\service#set snmp trapreceiver add 10.205.24.230 version v2c community public signaltrace_switch disable//设置SNMP trap接收地址10.205.24.230
Admin\\service#Set snmp trapreceiver ip 10.205.24.230 port 162 //设置snmp trap端口号为162
Admin\\service# show snmp trapreceiver // 查询snmp trap 信息 Snmp agent trap is up.
IP address Version Community Port Signaltracking authentication-level
::ffff:10.205.24.230 v2c public 162 disable
::ffff:202.102.4.162 v2c public 162 disable
Total 2 trapreceiver IP address in system. Admin\\service#
3、SNMP配置命令行整体导入模板
Admin\\service#
set snmp community readwrite js511_rw set snmp community readonly zj511_ro service snmp trap enable
add snmp trap_map id 1 ip_address ::ffff:10.205.24.230 add snmp trap_map id 2 ip_address ::ffff:202.102.4.162
set snmp trapreceiver add ::ffff:10.205.24.230 version v2c community public signaltrace_switch disable
set snmp trapreceiver add ::ffff:202.102.4.162 version v2c community public signaltrace_switch disable
set trap ::ffff:10.205.24.230 Version privformat set trap ::ffff:202.102.4.162 Version privformat set snmp trapreceiver ip ::ffff:10.205.24.230 port 162 set snmp trapreceiver ip ::ffff:202.102.4.162 port 162
set snmp trap sendLen 1100 autoConfirmSwitch disable sendRepeatNumber 18
四、添加静态路由
Admin\\service# add static route destination 0.0.0.0 gateway x.x.x.x mask 0.0.0.0 //添加静态路由
Admin\\service# show static_route //查询静态路由列表
OLT全局业务配置
一、打开dhcp option 8
1、dhcp option82 设置
Admin\\device\\circuitid#set circuit_id format [cnclctc] //线路标识格式 电信为ctc Admin\\device\\circuitid#set dhcp option82 [enbleldisable] // 线路标识管理开关、 Admin#
Admin# cd device Admin\\device# cd circuitid
Admin\\device\\circuitid# set circuit_id format ctc // 线路标识格式电信采用CTC Admin\\device\\circuitid# set dhcp option82 enable // 线路标识管理开关
2、dhcp option82 设置查询
Admin\\device\\circuitid# show dhcp state // 查询线路标识管理状态 Admin\\device\\circuitid# show circuit_id format //查询线路标识格式
Admin\\device\\circuitid# show dhcp state // 查询线路标识管理状态 DHCP option82 : enabled DHCP option18 : disabled DHCP option37 : disabled EPON DHCP Patch: disabled
EPON ARP Patch: disabled
Admin\\device\\circuitid# show circuit_id format //查询线路标识格式 Circuit ID format : CTC Standard Admin\\device\\circuitid#
3、dhcp option82 命令行导入模板
Admin\\device\\circuitid# set circuit_id format ctc set dhcp option82 enable
二、组播配置
1、 组播VLAN、组播模式配置
Admin\\protocol\\igmp#set igmp vlan 40 //配置组播vlan为40 Admin\\protocol\\igmp#set igmp stack v2 //设置组播协议版本为v2
Admin\\protocol\\igmp#set igmp mode proxy-proxy //设置OLT组播为代理模式
2、添加组播地址白名单,查询组播地址白名单
Admin\\protocol\\igmp#add onu_group_white_list grp_begin x.x.x.x grp_end x.x.x.x
// 添加组播地址白名单
Admin\\protocol\\igmp# show onu_group_white_list //查询组播地址白名单