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表示重写VLAN
InternetGatewayDevice.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.WANConnectionDe