Advertisement
SH1NU11b1

RPI-Connecting In. via Lan connect

Nov 2nd, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. The simplest way to connect the Raspberry Pi to the Internet is using the built-in LAN
  2. connection on the Model B. If you are using a Model A Raspberry Pi, a USB-to-LAN adapter can
  3. be used (refer to the There's more… section of the Networking and connecting your Raspberry
  4. Pi to the Internet via a USB Wi-Fi dongle recipe for details on how to configure this).
  5. Getting ready
  6. You will need an access to a suitable wired network, which will be connected to the Internet
  7. and a standard network cable (Cat5e or a similar one with a RJ45 type connector for
  8. connecting to the Raspberry Pi).
  9. How to do it…
  10. Many networks connect and configure themselves automatically using Dynamic Host
  11. Configuration Protocol (DHCP), which is controlled by the router or switch. If this is the case,
  12. simply plug the network cable into a spare network port on your router or network switch (or
  13. wall network socket if applicable).
  14.  
  15. Alternatively, if a DHCP server is not available, you shall have to configure the settings
  16. manually (refer to the There's more… section for details).
  17. You can confirm this is functioning successfully with the following steps:
  18. 1. Ensure that the three LEDs on the Raspberry Pi marked FDX, LNK, and 100, light up
  19. (the 100 LED may not light up if connected to a 10 Mbps device rather than the
  20. more common 100 Mbps device), and in some cases, start to flash. This will indicate
  21. that there is a physical connection to the router and the equipment is powered
  22. and functioning.
  23. 2. Test the link to your local network using the ping command. First, find out the IP
  24. address of another computer on the network (or the address of your router perhaps,
  25. often 192.168.0.1 or 192.168.1.254). Now, on the Raspberry Pi terminal,
  26. use the ping command (the parameter -c 4 is used to send just four messages;
  27. otherwise, press Ctrl + C to stop) to ping the IP address as follows:
  28. ping 192.168.1.254 -c 4
  29. 3. Test the link to the Internet (this will fail if you usually connect to the Internet though
  30. a proxy server) as follows:
  31. ping www.raspberrypi.org -c 4
  32. 4. Finally, you can test the link back to the Raspberry Pi by discovering the IP address
  33. using hostname -I on the Raspberry Pi. You can then use the ping command on
  34. another computer on the network to ensure it is accessible (using the Raspberry
  35. Pi's IP address in place of www.raspberrypi.org). The Windows version of the
  36. ping command will perform five pings and stop automatically and will not need
  37. the –c 4 option).
  38. If the above tests fail, you will need to check your connections and then confirm the correct
  39. configuration for your network.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement