AnsweredAssumed Answered

IMX6Q Android8.0 Ethernet Static IP Not work

Question asked by leavs lee on Oct 19, 2018
Latest reply on Oct 21, 2018 by leavs lee

Hi,

I have one imx6q device which run Android 8.0 system, I need to set Static IP, so I use com.fsl.ethernet to do that,

I can set the right IP, but I can't communication to other. I use follow command to test:

 

My Static IP:

```

IP: 192.168.6.99

Netmask: 255.255.255.0

DNS: 192.168.6.1

Gateway: 192.168.6.1

```

 

Error:

```

ping 192.168.6.1

Network is unreachable

ping www.google.com

Network is unkonw

```

 

I can get the prop is right:

```

sabresd_6dq:/ # getprop | grep dns
getprop | grep dns
[init.svc.mdnsd]: [running]
[net.dns1]: [192.168.6.1]
[net.eth0.dns1]: [192.168.6.1]
[net.eth0.dns2]: [0.0.0.0]
[ro.boottime.mdnsd]: [11647904667]

```

 

when I set the ethernet to dhcp, It work well.

 

can anyone know this problem?

Outcomes