方法記錄如下,不確定是否work。。。
嵌入式Linux設定IP
1. get dev name for network
ifconfig -a
2. ifconfig sit0/eth0... *.*.*.* networkmask *.*.*.*
3. check gateway
route
4. add gateway, gateway need to be changed based on your local settings
route -add default gw 192.168.1.1
5. check if gateway added
route -n
6. ping localhost
ping 127.0.0.
7. ping gateway( different local environment has different gateway) # did not work for my case
ping 192.168.1.1