setttt的方法我知道 修改hw_ctree.xml文件
F0 h4 Q* t0 s3 o( v. [( v查找类似以下部分内容. l' E0 M2 n$ B6 V$ ]* [
A: S- B; \; J' R<WANDevice NumberOfInstances="1">5 Y" O* l4 Y! c7 V; M
<WANDeviceInstance InstanceID="1" WANConnectionNumberOfEntries="8">+ G' S a4 G& H$ R4 }3 S. P8 c
<WANConnectionDevice NumberOfInstances="2">
! B4 E% z7 B% t+ C2 S% w1 z0 s" [* Z<WANConnectionDeviceInstance InstanceID="1" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">" p0 F! N, V: f" P' X9 ]
<X_HW_WANUpLinkConfig X_HW_Enable="1" X_HW_Mode="2" X_HW_VLAN="252" X_HW_PRI="0" X_HW_VLANIDMARK="252"/>
% g$ a+ S% ~; q b v<WANPPPConnection NumberOfInstances="1">6 k. t/ R7 r! m3 `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"/>( m$ o$ K% [% [9 |+ w, z$ F
</WANPPPConnection>
7 N( E3 C9 W6 S! V" B0 E</WANConnectionDeviceInstance>4 H3 _. g9 i/ `1 L" L
<WANConnectionDeviceInstance InstanceID="2" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">( N3 h- s- f- z/ E% H. ?, k. a3 X
<X_HW_WANUpLinkConfig X_HW_Enable="1" X_HW_Mode="2" X_HW_VLAN="252" X_HW_PRI="0" X_HW_VLANIDMARK="252"/>, H" ]2 i' U! G- O( l) F
<WANPPPConnection NumberOfInstances="1">6 w6 a/ ]. ^- b
<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"/>
' b1 H Y8 X, T</WANPPPConnection>
4 g. }! W, Z J8 v! {0 _1 Y% s</WANConnectionDeviceInstance>
4 o! [4 }6 X: b$ O# ?</WANConnectionDevice>
% P7 A8 c) y5 M# k. a( D</WANDeviceInstance> x. Q- j4 d2 J5 i
</WANDevice>
( t- Z! Y( j1 M. K) i r1 m
* H. R5 j$ N. T) q8 ?注意<WANConnectionDevice NumberOfInstances="2">: K7 D. C D6 ^- z/ d% f0 N
假设需要建立4个连接 先把他改为
# Y$ u* R, ^. t+ A" ]' u<WANConnectionDevice NumberOfInstances="4">
7 P- T U) L) U( D3 l& n2 Q+ j' w现在是4个连接 然后. [7 ?9 {9 @! v u7 b/ s' h
<WANConnectionDeviceInstance InstanceID="1" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">
1 Y7 q: x4 i3 H5 R& n9 \9 R' u<X_HW_WANUpLinkConfig X_HW_Enable="1" X_HW_Mode="2" X_HW_VLAN="252" X_HW_PRI="0" X_HW_VLANIDMARK="252"/>1 I7 e# B4 e, _0 w7 _' O
<WANPPPConnection NumberOfInstances="1">6 F# J. _2 l; S& _$ ~8 r
<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"/>9 V- d5 s, \! h0 ^# D2 W, Q2 \$ V e; q
</WANPPPConnection>
, Y6 B8 f# L( i( U F: p</WANConnectionDeviceInstance>0 C" G: q) M/ ^% u
注意<WANConnectionDeviceInstance InstanceID="1" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">
! d3 K- `$ N$ o7 F* k注意此处InstanceID="1"
& a+ m& j: R/ {3 ?) m5 w下面InstanceID="2"0 S5 \, R$ e# p; j# q
然后复制以上部分内容 主要是
9 l* J) p1 \5 h3 p<WANConnectionDeviceInstance InstanceID="1" WANIPConnectionNumberOfEntries="0" WANPPPConnectionNumberOfEntries="1">1 T8 x2 {7 e' |4 n( r9 U& V0 m, a3 _- \
<X_HW_WANUpLinkConfig X_HW_Enable="1" X_HW_Mode="2" X_HW_VLAN="252" X_HW_PRI="0" X_HW_VLANIDMARK="252"/>* [/ Y" t) Y( e. T4 T& B" A' d
<WANPPPConnection NumberOfInstances="1">2 w w- |2 p; h( G, W* D% i
<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"/>
1 ~3 t5 e4 ~5 G0 ]4 K4 e</WANPPPConnection>
8 u( z H- x7 H) D1 ?& q</WANConnectionDeviceInstance>
) n: ?0 U1 o( z* ^7 t& x1 ~把里面
( v2 O' ]) M4 Y& \; d+ {1 ^<WANConnectionDeviceInstance InstanceID="1"
2 @) S* n1 [3 o. z改为35 @$ w5 x9 F9 [ q. [4 N, I
粘贴在后面
1 b. z* y* t9 N1 l+ Z: r" a然后如法炮制出第四个 就好了 然后导入配置文件回去 |