發表文章

目前顯示的是有「轉錄」標籤的文章


~~ 記錄自己點點滴滴的學習歷程 ~~





轉錄:Beaglebone Black 接上網路

If you power down the Beaglebone Black by unplugging its USB cable,  plug it back in (hence rebooting it) and connect via PuTTY and try the ping command again ... >>> ping 8.8.8.8 Network is unreachable … you will find that the network is no longer reachable.  This is because the >>> /sbin/route add default gw 192.168.7.1 command you entered earlier did not survive a reboot.  Just enter it again and the ping command should work. ---------------------------------------------------- >>> ping google.com The thing that translates names into IP addresses is called a nameserver  and we might as well use googles public nameservers to translate names into IP addresses for us.  You can, of course, use your own local nameservers if you wish. Nameservers are set in the /etc/resolv.conf file.  To add a few nameservers just edit the /etc/resolv.conf file (as root) using a command like >>> nano /etc/resolv.conf ↘↘↘↘↘↘↘↘↘↘↘ domain local...