ifconfig
ping www.baidu.com

修改/system/etc/communication/netmanager_ext/ethernet_interfaces.json配置文件,参考配置如下。
{
"config_ethernet_interfaces":[
{
"iface":"eth2",
"caps":[
],
"ip":"192.168.8.212",
"gateway":"192.168.8.1",
"dns":"114.114.114.114",
"netmask":"255.255.255.0",
"route":"0.0.0.0",
"routemask":"0.0.0.0"
}
]
}
多个网卡都要设置,就多写一个,指定你的iface



