九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 6253|回复: 2
打印 上一主题 下一主题

x4418 android4.4.2 以太网BUG

[复制链接]
跳转到指定楼层
楼主
发表于 2017-7-7 16:25:47 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
设置成静态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
回复

使用道具 举报

沙发
发表于 2017-10-24 18:30:56 | 只看该作者
接交换机是不是就不能用?接路由器是可以用的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-11-22 15:24 , Processed in 0.018661 second(s), 16 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表