嵌入式Linux設定IP

方法記錄如下,不確定是否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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章