setttt的方法我知道 修改hw_ctree.xml文件
查找类似以下部分内容
<WANDevice NumberOfInstances="1">
<WANDeviceInstance InstanceID="1" WANConnectionNumberOfEntries="8">
<WANConnectionDevice NumberOfInstances="2">
<WANConnectionDeviceInstance InstanceID="1" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">
<X_HW_WANUpLinkConfig X_HW_Enable="1" X_HW_Mode="2" X_HW_VLAN="252" X_HW_PRI="0" X_HW_VLANIDMARK="252"/>
<WANPPPConnection NumberOfInstances="1">
<WANPPPConnectionInstance InstanceID="1" Enable="1" Reset="0" ConnectionStatus="Unconfigured" PossibleConnectionTypes="IP_Routed" ConnectionType="IP_Routed" PPPoESessionID="1" DefaultGateway="" Name="" Uptime="0" LastConnectionError="" AutoDisconnectTime="" IdleDisconnectTime="180" WarnDisconnectDelay="" RSIPAvailable="" NATEnabled="1" Username="02512001659" Password="21019177" PPPEncryptionProtocol="" PPPCompressionProtocol="" PPPAuthenticationProtocol="" ExternalIPAddress="" RemoteIPAddress="" MaxMRUSize="1492" CurrentMRUSize="" DNSEnabled="1" DNSOverrideAllowed="" DNSServers="" MACAddress="" MACAddressOverride="" TransportType="" PPPoEACName="" PPPoEServiceName="" ConnectionTrigger="AlwaysOn" RouteProtocolRx="" PPPLCPEcho="30" PPPLCPEchoRetry="6" ShapingRate="" ShapingBurstSize="" PortMappingNumberOfEntries="" PortTriggerNumberOfEntries="" X_HW_SERVICELIST="INTERNET" X_HW_VLAN="252" X_HW_PRI="0" X_HW_MultiCastVLAN="4294967295" X_HW_ConnectionControl="0xFFFFFFFF" X_HW_E8C_LanInterface="InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.1.,InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.2." X_HW_TR069FLAG="0"/>
</WANPPPConnection>
</WANConnectionDeviceInstance>
<WANConnectionDeviceInstance InstanceID="2" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">
<X_HW_WANUpLinkConfig X_HW_Enable="1" X_HW_Mode="2" X_HW_VLAN="252" X_HW_PRI="0" X_HW_VLANIDMARK="252"/>
<WANPPPConnection NumberOfInstances="1">
<WANPPPConnectionInstance InstanceID="1" Enable="1" Reset="0" ConnectionStatus="Unconfigured" PossibleConnectionTypes="IP_Routed" ConnectionType="IP_Routed" PPPoESessionID="1" DefaultGateway="" Name="" Uptime="0" LastConnectionError="" AutoDisconnectTime="" IdleDisconnectTime="180" WarnDisconnectDelay="" RSIPAvailable="" NATEnabled="1" Username="02512001659" Password="21019177" PPPEncryptionProtocol="" PPPCompressionProtocol="" PPPAuthenticationProtocol="" ExternalIPAddress="" RemoteIPAddress="" MaxMRUSize="1492" CurrentMRUSize="" DNSEnabled="1" DNSOverrideAllowed="" DNSServers="" MACAddress="" MACAddressOverride="" TransportType="" PPPoEACName="" PPPoEServiceName="" ConnectionTrigger="AlwaysOn" RouteProtocolRx="" PPPLCPEcho="30" PPPLCPEchoRetry="6" ShapingRate="" ShapingBurstSize="" PortMappingNumberOfEntries="" PortTriggerNumberOfEntries="" X_HW_SERVICELIST="INTERNET" X_HW_VLAN="252" X_HW_PRI="0" X_HW_MultiCastVLAN="4294967295" X_HW_ConnectionControl="0xFFFFFFFF" X_HW_E8C_LanInterface="InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.3.,InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.4." X_HW_TR069FLAG="0"/>
</WANPPPConnection>
</WANConnectionDeviceInstance>
</WANConnectionDevice>
</WANDeviceInstance>
</WANDevice>
注意<WANConnectionDevice NumberOfInstances="2">
假设需要建立4个连接 先把他改为
<WANConnectionDevice NumberOfInstances="4">
现在是4个连接 然后
<WANConnectionDeviceInstance InstanceID="1" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">
<X_HW_WANUpLinkConfig X_HW_Enable="1" X_HW_Mode="2" X_HW_VLAN="252" X_HW_PRI="0" X_HW_VLANIDMARK="252"/>
<WANPPPConnection NumberOfInstances="1">
<WANPPPConnectionInstance InstanceID="1" Enable="1" Reset="0" ConnectionStatus="Unconfigured" PossibleConnectionTypes="IP_Routed" ConnectionType="IP_Routed" PPPoESessionID="1" DefaultGateway="" Name="" Uptime="0" LastConnectionError="" AutoDisconnectTime="" IdleDisconnectTime="180" WarnDisconnectDelay="" RSIPAvailable="" NATEnabled="1" Username="02512001659" Password="21019177" PPPEncryptionProtocol="" PPPCompressionProtocol="" PPPAuthenticationProtocol="" ExternalIPAddress="" RemoteIPAddress="" MaxMRUSize="1492" CurrentMRUSize="" DNSEnabled="1" DNSOverrideAllowed="" DNSServers="" MACAddress="" MACAddressOverride="" TransportType="" PPPoEACName="" PPPoEServiceName="" ConnectionTrigger="AlwaysOn" RouteProtocolRx="" PPPLCPEcho="30" PPPLCPEchoRetry="6" ShapingRate="" ShapingBurstSize="" PortMappingNumberOfEntries="" PortTriggerNumberOfEntries="" X_HW_SERVICELIST="INTERNET" X_HW_VLAN="252" X_HW_PRI="0" X_HW_MultiCastVLAN="4294967295" X_HW_ConnectionControl="0xFFFFFFFF" X_HW_E8C_LanInterface="InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.1.,InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.2." X_HW_TR069FLAG="0"/>
</WANPPPConnection>
</WANConnectionDeviceInstance>
注意<WANConnectionDeviceInstance InstanceID="1" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">
注意此处InstanceID="1"
下面InstanceID="2"
然后复制以上部分内容 主要是
<WANConnectionDeviceInstance InstanceID="1" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">
<X_HW_WANUpLinkConfig X_HW_Enable="1" X_HW_Mode="2" X_HW_VLAN="252" X_HW_PRI="0" X_HW_VLANIDMARK="252"/>
<WANPPPConnection NumberOfInstances="1">
<WANPPPConnectionInstance InstanceID="1" Enable="1" Reset="0" ConnectionStatus="Unconfigured" PossibleConnectionTypes="IP_Routed" ConnectionType="IP_Routed" PPPoESessionID="1" DefaultGateway="" Name="" Uptime="0" LastConnectionError="" AutoDisconnectTime="" IdleDisconnectTime="180" WarnDisconnectDelay="" RSIPAvailable="" NATEnabled="1" Username="02512001659" Password="21019177" PPPEncryptionProtocol="" PPPCompressionProtocol="" PPPAuthenticationProtocol="" ExternalIPAddress="" RemoteIPAddress="" MaxMRUSize="1492" CurrentMRUSize="" DNSEnabled="1" DNSOverrideAllowed="" DNSServers="" MACAddress="" MACAddressOverride="" TransportType="" PPPoEACName="" PPPoEServiceName="" ConnectionTrigger="AlwaysOn" RouteProtocolRx="" PPPLCPEcho="30" PPPLCPEchoRetry="6" ShapingRate="" ShapingBurstSize="" PortMappingNumberOfEntries="" PortTriggerNumberOfEntries="" X_HW_SERVICELIST="INTERNET" X_HW_VLAN="252" X_HW_PRI="0" X_HW_MultiCastVLAN="4294967295" X_HW_ConnectionControl="0xFFFFFFFF" X_HW_E8C_LanInterface="InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.1.,InternetGatewayDevice.LANDevice.1.LANEthernetInterfaceConfig.2." X_HW_TR069FLAG="0"/>
</WANPPPConnection>
</WANConnectionDeviceInstance>
把里面
<WANConnectionDeviceInstance InstanceID="1"
改为3
粘贴在后面
然后如法炮制出第四个 就好了 然后导入配置文件回去 |