AnsweredAssumed Answered

Lose static IP address

Question asked by Qiulong Li on Nov 24, 2015
Latest reply on Jan 5, 2016 by Qiulong Li

Hello

 

My environment is i.MX6Q sabreSD ,AR8031 phy,and OS is android 4.4.2.We use local network and we don't use wifi.We use RJ45 to connect a router.

When power on ,we give a static IP address to our board,.

but after several times of pluging/unpluging RJ45,the static IP address is changed to another.

Then we continue to plug/unplug sereral times,the IP address lost.

And I got this log from Android.

 

01-01 11:26:28.440: D/Ethernet(2614): Interface eth0 link up

01-01 11:26:30.840: D/ConnectivityService(2614): ConnectivityChange for ETHERNET: CONNECTED/CONNECTED

01-01 11:26:30.850: E/ConnectivityService(2614): Unexpected mtu value: android.net.EthernetDataTracker@41ccbbc0

01-01 11:26:30.860: D/Nat464Xlat(2614): requiresClat: netType=9, hasIPv4Address=true

01-01 11:26:33.870: D/Tethering(2614): MasterInitialState.processMessage what=3

01-01 11:26:33.870: D/CaptivePortalTracker(2614): NoActiveNetworkState{ when=0 what=1 obj=NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 12:25:30:3a:85:ae, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false target=com.android.internal.util.StateMachine$SmHandler }

01-01 11:26:33.870: D/CaptivePortalTracker(2614): NoActiveNetworkState not a wifi connectivity change, ignore

01-01 11:27:00.440: D/Ethernet(2614): Interface eth0 link down

01-01 11:27:00.640: D/CommandListener(2232): Clearing all IP addresses on eth0

01-01 11:27:00.650: D/Nat464Xlat(2614): requiresClat: netType=9, hasIPv4Address=false

01-01 11:27:00.650: D/ConnectivityService(2614): ConnectivityChange for ETHERNET: DISCONNECTED/DISCONNECTED

01-01 11:27:00.650: D/ConnectivityService(2614): tryFailover: set mActiveDefaultNetwork=-1, prevNetType=9

01-01 11:27:00.660: D/ConnectivityService(2614): Attempting to switch to mobile

01-01 11:27:00.660: D/ConnectivityService(2614): Attempting to switch to wifi

01-01 11:27:00.660: D/ConnectivityService(2614): Attempting to switch to BLUETOOTH_TETHER

01-01 11:27:00.660: D/Nat464Xlat(2614): requiresClat: netType=9, hasIPv4Address=false

01-01 11:27:03.670: D/Tethering(2614): MasterInitialState.processMessage what=3

01-01 11:27:03.670: D/CaptivePortalTracker(2614): NoActiveNetworkState{ when=0 what=1 obj=NetworkInfo: type: ETHERNET[], state: DISCONNECTED/DISCONNECTED, reason: (unspecified), extra: 12:25:30:3a:85:ae, roaming: false, failover: false, isAvailable: false, isConnectedToProvisioningNetwork: false target=com.android.internal.util.StateMachine$SmHandler }

01-01 11:27:03.670: D/CaptivePortalTracker(2614): NoActiveNetworkState not a wifi connectivity change, ignore

01-01 11:27:04.440: D/Ethernet(2614): Interface eth0 link up

01-01 11:27:06.840: D/ConnectivityService(2614): ConnectivityChange for ETHERNET: CONNECTED/CONNECTED

01-01 11:27:06.850: E/ConnectivityService(2614): Unexpected mtu value: android.net.EthernetDataTracker@41ccbbc0

01-01 11:27:06.860: D/Nat464Xlat(2614): requiresClat: netType=9, hasIPv4Address=true

01-01 11:27:09.870: D/CaptivePortalTracker(2614): NoActiveNetworkState{ when=0 what=1 obj=NetworkInfo: type: ETHERNET[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: 12:25:30:3a:85:ae, roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false target=com.android.internal.util.StateMachine$SmHandler }

01-01 11:27:09.870: D/CaptivePortalTracker(2614): NoActiveNetworkState not a wifi connectivity change, ignore

01-01 11:27:09.870: D/Tethering(2614): MasterInitialState.processMessage what=3

01-01 11:27:15.290: D/dalvikvm(3120): GC_FOR_ALLOC freed 512K, 18% free 2780K/3372K, paused 12ms, total 12ms

Outcomes