九鼎创展论坛

标题: x4418 android4.4.2 以太网BUG [打印本页]

作者: guodongfu    时间: 2017-7-7 16:25
标题: x4418 android4.4.2 以太网BUG
设置成静态IP,但是android还会先调用DHCP,这时候如果路由器不支持dhcp,android并不会直接把设置好的静态IP给网卡,而是直接报DHCP错误,然后就不连接了

路由器关闭DHCP的情况
D/Ethernet(  441): Interface eth0 link up
D/NetUtils(  441): dhcp_do_request failed : eth0 (new)
E/Ethernet(  441): DHCP request error:Timed out waiting for DHCP to finish
D/ConnectivityService(  441): Sampling interval elapsed, updating statistics ..
D/ConnectivityService(  441): Done.
D/ConnectivityService(  441): Setting timer for 720seconds
D/dalvikvm(  441): GC_CONCURRENT freed 751K, 12% free 6245K/7072K, paused 6ms+9ms, total 84ms



路由器打开DHCP的情况
D/Ethernet(  441): Interface eth0 link up
D/ConnectivityService(  441): ConnectivityChange for ETHERNET: CONNECTED/CONNECTED
E/ConnectivityService(  441): Unexpected mtu value: android.net.EthernetDataTracker@2c4bea30
D/Nat464Xlat(  441): requiresClat: netType=9, hasIPv4Address=true
D/Tethering(  441): MasterInitialState.processMessage what=3
D/CaptivePortalTracker(  441): NoActiveNetworkState{ when=0 what=1 obj=NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: ba:5d:47:1d:26:81, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false target=com.android.internal.util.StateMachine$SmHandler }
D/CaptivePortalTracker(  441): NoActiveNetworkState not a wifi connectivity change, ignore
E/EthernetService(  690): 以太网络已连接
E/EthernetService(  690): 设置之前保存的IP信息
D/CommandListener(  117): Setting iface cfg
D/CommandListener(  117): Trying to bring up eth0
V/        (  690): Static IP configuration succeeded
E/        (  690): addRoute-------------------------route success
E/ETHERNETSETIING(  690): Use preference IP 192.168.2.100
E/ETHERNETSETIING(  690): Use preference gateway 192.168.2.1
E/ETHERNETSETIING(  690): Use preference dns 192.168.2.1
D/dalvikvm(  584): GC_CONCURRENT freed 395K, 13% free 3091K/3552K, paused 5ms+17ms, total 57ms
E/EthernetReceiver(  690): BOOT COMPLETE
V/EthernetReceiver(  690): Received: android.net.conn.CONNECTIVITY_CHANGE
W/ContextImpl(  690): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1479 android.content.ContextWrapper.startService:494 android.content.ContextWrapper.startService:494 com.android.settings.EthernetReceiver.onReceive:40 android.app.ActivityThread.handleReceiver:2419

作者: afei8856    时间: 2017-10-24 18:30
接交换机是不是就不能用?接路由器是可以用的




欢迎光临 九鼎创展论坛 (http://bbs.9tripod.com/) Powered by Discuz! X3.2