1.IPOE WAN 连接配置
下发操作步骤:

创建DHCP WAN,
1.  建立InternetGatewayDevice.WANDevice.1.WANConnectionDevice.==1实例(若有预配置WAN,可忽略该步骤)
2.  再增加
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.=={i}实例==2
3.  设置WANIPConnection相关参数
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_VLANMode =
VLAN启用模式,以下值之一:
0表示不启用
1表示保持原来的标志位值
2表示重写VLANInternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.{i}.X_CMCC_VLANIDMark =
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.{i}.ConnectionType = IP_Routed
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.{i}.AddressingType = DHCP
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.{i}.X_CMCC_LanInterface = (和LAN侧的绑定关系)InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.2
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.{i}.X_CMCC_ ServiceList = (业务绑定)
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.{i}.Enable=true
实际操作实践:1. 先进入TR098数据模型树中 创建Object对象通过AddObject方法去创建,创建后会自动生成一条新的WAN连接:
由于默认WAN连接存在一条预配置IPOE 的TR069 WAN连接,WANConnectionDevice.1该实例默认就已经创建好了,因此创建WANIPConnection.==2实例从2 开始;
如:
InternetGatewayDevice.WANDevice.1.WANConnectionDevice. == 2(实例值)
2.设置WANIPConnection相关参数InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_VLANMode     unsignedInt   2 (tag vlan)
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_VLANIDMark   unsignedInt  200
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_802-1pMark   unsignedInt   0(0--7)
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.ConnectionType      string      IP_Routed or IP_Bridged
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.AddressingType      string  DHCP 或 Static
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_LanInterface    string  InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.2 (绑定LAN2 端口)
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_ ServiceList    string ("TR069","INTERNET","VOIP","OTHER")
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.Enable   boolean  TRUE 或 FALSE(默认)
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.NATEnabled    boolean  TRUE 或 FALSE(默认)设置静态WANIP,需要加上以下配置IPAddress,MASK,DNS,default gateway
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.ExternalIPAddress   string   192.168.1.111
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.SubnetMask        string  255.255.255.0
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.DefaultGateway   string   192.168.1.254
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.DNSEnabled   boolean  TRUE
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.DNSServers  string   192.168.1.254
IP类型设置,默认IPv4
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_IPMode       unsignedInt   默认为1(IPv4;2:IPv6;3:IPv4/IPv6;3:IPv4/IPv6)
组播VLANID设置
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_MulticastVlan   Int   1000(-1 表示不启用)
是否启用本WAN绑定的LAN侧端口的DHCP分配IP功能
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.2.X_CMCC_LanInterface-DHCPEnable  boolean  TRUE 或 FALSE

1.1.DHCP诊断模板信息 (前提是 ONU通过password方式去注册)

查看诊断结果,在TR-098数据模型树中通过GetParameterValue方法查看:
设置路径:InternetGatewayDevice.X_CMCC_IPoEDiagnostics.
可以看到以下所有参数信息,重点看InternetGatewayDevice.X_CMCC_IPoEDiagnostics.Result 这一参数;
仿真结果,如下值之一:
“SendDHCPMsgError” 发送DHCP报文失败
“ServerNotFound” 找不到DHCP服务器
“ServerDeny” DHCP服务器拒绝请求
“GetIPAddressTimeout” 请求IP地址超时
“AllDestinationPingFail” 所有的ping都失败
“SomeDestinationPingFail” 部分ping失败
“Other” 其他错误

InternetGatewayDevice.X_CMCC_IPoEDiagnostics.FailureCount                      0
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.DefaultGateway             默认网关IP
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.AverageResponseTime              0
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.MaximumResponseTime              0
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.PingNumberOfRepetitions          5
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.Timeout                          800
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.LocalAddress                仿真获取到的IP地址(默认会获取WANIP)
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.MinimumResponseTime              0
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.Result
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.WANInterface
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.SuccessCount                     0
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.UserMac                     5c:c7:d7:00:a0:11
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.PingDestIPAddress          192.168.1.254(DHCP连接成功后需要Ping的目的IP)
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.DiagnosticsState                Complete配置一下DHCP 诊断模板
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.WANInterface       string  InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.PingDestIPAddress  string  192.168.1.254
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.Timeout            unsignedInt     800
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.DiagnosticsState   string  Start
InternetGatewayDevice.X_CMCC_IPoEDiagnostics.UserMac            string  5c:c7:d7:00:a0:11DiagnosticsState:仿真状态,如下值之一:
"None"  空
"Start"  开始
"Stop"  停止
"DHCPProceeding"  DHCP进行中
"Complete" 完成
其中Start和Stop为可写,其它状态只读。

DHCP 仿真成功,如下图所示:

仿真失败图:
1.2. Ping诊断 模板配置
查看诊断结果时路径:InternetGatewayDevice.IPPingDiagnostics.
DiagnosticsState:诊断状态,如下值之一:
None
Requested
Complete
Error_CannotResolveHostName
Error_Internal
Error_Other
当执行写操作时,取值只能为Requested。其他状态只可读
重点看ping 成功后返回的Ping包个数,看参数SuccessCount=5(由于设置了Ping包个数NumberOfRepetitions为5个)

配置一下Ping 诊断模板参数
InternetGatewayDevice.IPPingDiagnostics.Interface   string  InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1 (只针对路由WAN连接)
InternetGatewayDevice.IPPingDiagnostics.Host        string  192.168.1.254(ping目标地址)
InternetGatewayDevice.IPPingDiagnostics.Timeout     unsignedInt     1000
InternetGatewayDevice.IPPingDiagnostics.DiagnosticsState    string  Requested
InternetGatewayDevice.IPPingDiagnostics.NumberOfRepetitions     unsignedInt  5

1.3. Traceroute诊断
查看诊断结果时路径:InternetGatewayDevice.TraceRouteDiagnostics.
DiagnosticsState:诊断状态,如下值之一:
None
Requested
Complete
Error_CannotResolveHostName
Error_MaxHopCountExceeded
当执行写操作时,取值只能为Requested。

配置一下Traceroute诊断模板参数InternetGatewayDevice.TraceRouteDiagnostics.Interface    string  InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1 (只针对路由WAN连接)
InternetGatewayDevice.TraceRouteDiagnostics.Host        string  192.168.1.254(ping目标地址)
InternetGatewayDevice.TraceRouteDiagnostics.DiagnosticsState    string  Requested
InternetGatewayDevice.TraceRouteDiagnostics.Mode        string    UDP 或 ICMP(默认,默认值都可以不设置)
InternetGatewayDevice.TraceRouteDiagnostics.NumberOfTries unsignedInt  3 默认值
InternetGatewayDevice.TraceRouteDiagnostics.Timeout     unsignedInt     5000  默认值查看Traceroute诊断记录列表
InternetGatewayDevice.TraceRouteDiagnostics.RouteHops.{i}.

1.4. HTTP下载仿真
查看诊断结果时路径:InternetGatewayDevice.DownloadDiagnostics.
DiagnosticsState:诊断状态,如下值之一:
None
Requested
Completed
Error_InitConnectionFailed
Error_NoResponse
Error_PasswordRequestFailed
Error_LoginFailed
Error_NoTransferMode
Error_NoPASV
Error_NoCWD
Error_NoSTOR
Error_NoTransferComplete
当执行写操作时,取值只能为 Requested。

配置一下HTTP下载仿真模板参数
InternetGatewayDevice.DownloadDiagnostics.Interface             string  InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1 (只针对路由WAN连接)
InternetGatewayDevice.DownloadDiagnostics.DownloadURL       string  192.168.1.254(用于下载的URL )
InternetGatewayDevice.DownloadDiagnostics.DiagnosticsState  string  Requested
InternetGatewayDevice.DownloadDiagnostics.DSCP              unsignedInt    0(用来测试包的DSCP值)
InternetGatewayDevice.DownloadDiagnostics.EthernetPriority  unsignedInt  0 (用来测试包的优先级)

2. PPPOE WAN连接配置

1.上行路由连接PPPoE模式建立流程,若已经建立PPPoE_Bridge 桥连接,则创建PPPoE的WANID是2
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.==1 (若存在预配置,该WANConnectionDevice会自动生成1)
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.=={i}
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.X_CMCC_VLANMode = 2
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.X_CMCC_VLANIDMark= 100
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.ConnectionType=PPPoE_Routed  或PPPoE_Bridged
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.Username =(PPPoE账号)2222
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.Password=(PPPoE密码)2222
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.X_CMCC_LanInterface = (和LAN侧的绑定关系)设置为空或不下发
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.X_CMCC_ServiceList = (业务绑定)INTERNET or VOIP or TR069 or..
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.Enable=true
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}.NATEnabled=true 默认FALSE

2.1 PPPoE 仿真

查看诊断结果时路径:InternetGatewayDevice.X_CMCC_PPPOE_EMULATOR.配置PPPoE诊断 模版信息
InternetGatewayDevice.X_CMCC_PPPOE_EMULATOR.WANInterface   String  InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.{i}     (针对桥接和路由WAN均适用)
InternetGatewayDevice.X_CMCC_PPPOE_EMULATOR.PPPAuthenticationProtocol  string   PAP或CHAP
InternetGatewayDevice.X_CMCC_PPPOE_EMULATOR.RetryTimes    unsignedInt  3 (3次以内可设置)
InternetGatewayDevice.X_CMCC_PPPOE_EMULATOR.Username   string  2222
InternetGatewayDevice.X_CMCC_PPPOE_EMULATOR.Password   string   2222
InternetGatewayDevice.X_CMCC_PPPOE_EMULATOR.DiagnosticsState  string   Start

诊断状态,如下值之一:
“None” 空
“Start” 开始
“Stop” 停止
“Complete” 完成
“Running” 运行中
其中Start和Stop为可写,其它状态只读。

注意: 以上配置模版操作下发配置,需要在下一个inform上报时设置对应参数值;最后在WEB页面通过手动上报Inform方式更容易看到结果值

TR069服务器配置DHCP/IP/PING/Tracert/HTTP/PPPoE等仿真诊断模板及IPWAN和PPPoE WAN模板创建相关推荐

  1. Ping Tracert result Command explanation

    Ping& Tracert result Command explanation 1, Ping 例如ping   www.yahoo.com     Pinging   www.yahoo. ...

  2. dhcp服务器自动分配地址思科,思科服务器配置dhcp服务器方法

    因为现在生活中网络的流行以及广泛的使用,但企业和学校都会配备思科服务器,因为在配备了服务器之后,可以让不论在什么地方的电脑,只要连接上局域网之后,就可以通过自动获取Ip地址的方式获取Ip地址网关,这样 ...

  3. 路由器和防火墙对Ping/Tracert工具的影响

    在日常的网络探测和故障诊断中,常用到的两个工具是Ping和Tracert.随着网络结构的日益复杂和中间设备(包括但不仅限于路由器和防火墙)的广泛部署,以及为了实现安全要求而在路由器和防火墙上实施了严格 ...

  4. 比较ping,tracert和pathping等命令之间的关系

    网络测试常用的命令-比较ping,tracert和pathping等命令之间的关系 还是正在学习TCP/IP协议,了解和掌握一些常用的网络测试命令将会有助于您更快地检测到网络故障所在,同时也会有助你您 ...

  5. 网工学习 管理常用命令ipconfig ping tracert pathping ARP netstat route nslookup

    目录 网络管理常用命令 ipconfig ping tracert pathping ARP netstat route nslookup 网络管理常用命令 ipconfig ping ping命令通 ...

  6. linux/windows_ip查看(公网ip/私网ip)/通过域名查找ip/解读tracert 的返回结果

    linux/windows_ip查看(公网ip/私网ip)/通过域名查找ip/解读tracert 的返回结果 references [How to Check the IP Address in Li ...

  7. FTP服务器配置固定IP才能访问

    FTP服务器搭建 http://blog.51cto.com/13871456/2149240?source=dra ftp服务器配置固定IP才能访问 选FTP IP地址和域限制,右侧选择添加允许条目 ...

  8. Linux解决ip ping不通百度的问题

    Linux解决ip ping不通百度的问题 首先先把Linux中的ip设置好,在这里我的本地的VM8的 IP4的地址是 192.168.101.1 然后看Linux的ip是多少再进行相应的配置 这里填 ...

  9. linux pppoe优化性能,基于Linux内核模式的PPPoE优化与实现.pdf

    基于Linux内核模式的PPPoE优化与实现.pdf 第18卷第7期 电子设计工程 2010年7月 V01.18 No.7 Electronic Jul.2010 DesignEngineering ...

最新文章

  1. TypeError: can only concatenate str (not “int“) to str
  2. LeetCode 21. Merge Two Sorted Lists
  3. 全面异步化:淘宝反应式架构升级探索
  4. 华硕老毛子(Padavan)——校园网电信宽带闪讯(NetKeeper)L2TP学校认证解决方案
  5. ubuntu declare
  6. [Luogu5105]不强制在线的动态快速排序
  7. import关键字的使用
  8. 构建大数据平台的必要性
  9. arm 基础:Nand Flash与Nor Flash的区别
  10. linux的多任务编程-线程池,Linux的多任务编程-线程池
  11. 自动驾驶中的深度学习
  12. 心电信号matlab电路仿真实例,基于matlab的心电信号分析系统的设计与仿真.docx
  13. matlab中图像加噪函数imnoise
  14. Windows10中IE11浏览器的修复之路
  15. 【脑洞大开】神经网络vs非公理化推理系统(NARS)
  16. 苹果手机语音备忘录在哪_玩转备忘录,只需要6个技巧!附赠苹果手机备忘录删除恢复技巧...
  17. mfc checkedit设置字体颜色没有效果_还有这种操作?PPT居然能做出这么骚气的3D质感字体?...
  18. 单反相机tf卡用sd卡套稳定吗_单反相机tf卡用sd卡套稳定吗
  19. STM32单片机 关于超声波模块的学习(1)
  20. Spring Boot实现 RabbitMQ教程【1】

热门文章

  1. FLANN C++ 使用
  2. Arduino引用第三方库ads1x15提示No such file or directory
  3. krpano限制场景视角
  4. Windows注册表知识
  5. MFC应用程序关闭时,提示兼容性助手。
  6. 小程序、APP、企业网站开发工具有哪些?如何使用软件开发工具?
  7. 百度之星Valley Numer
  8. 明明很努力的写博客,为啥没人看?试试这些方法和工具(建议收藏)
  9. 第一次做bom工作心得
  10. Arch yaourt 安装