Skip to main content
Engineering LibreTexts

Putting the Raspberry Pi on the network, residential version

  • Page ID
    23224
  • The simplest way to put the Raspberry Pi on the network is to plug it into an Ethernet cable.

    This may not always be practical or convenient.

    The best method to get the RPi on the network is to first connect a monitor, mouse and keyboard. 

    clipboard_e887bd54ced919711ba94272c3f2a0ba5.png

     

     

    Danger Will Robinson, danger!

    Before connecting your Raspberry Pi to any network change your password from the default.

    The default username and password is well known.

                                                                                                     Changing the password using the GIU

    clipboard_e320d43d2d47452b6a991bcae0c96994d.png

    Username:      pi
    Password:        raspberry ---> somethingDifferent
    There are two ways to change your password  
    1. Deskstop GUI 
    2. command-line

    Note, for some newer version of the OS you will have to change the password when you first start it up.

     

    clipboard_e06d47083f821bd94ac1e97de61d8ee52.png

     

     

     

     

    clipboard_ecd7e12a515406e5d6e60761c5294ebb6.png

     

     

     

     

    ----------->

     

     

     

     

     

     
     
     
    Changing the password using the command-line

    First bring up the terminal

    Press Ctrl-Alt-t (at the same time)clipboard_ed3688b60d6be6a76f8b9d5072b4b7573.png

    In the terminal type passwd and press enter

    Next type your current password

    then your new password twice

    Note, password text is not displayed.  

     

    After successfully changing your password it is safe to put your RPi on the network.

     

    If you connected with an Ethernet cable you will see confirmation of connection in the GUI. See red arrow below.

     

     

    clipboard_e3733d606954a76227e343ff9bde2268f.png 

    IP address:

    The GUI method above confirms that the RPi is on the network.

    It does not however tell you what the IP address is for your device.

    Use the two command line methods below to confirm the IP address for your device.

     

    ip-a.PNG

    ifconfig.PNG

    From the two methods above the IP address for this device is 192.168.1.76.

    The mac address (media access control) is b8:27:eb:b0:97:90.

     

    WiFi section:

    The following links demonstrates how to connect your RPi to a WiFi network.

    https://raspberrypihq.com/how-to-connect-your-raspberry-pi-to-wifi/

    https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

    https://weworkweplay.com/play/automatically-connect-a-raspberry-pi-to-a-wifi-network/

     

    Questions on the test:

     

    How do I find the IP address of my device?

    Answer use one of these commands;

    ip a
    ifconfig
    

    I also see the mac address using these methods.  For interface eth0 and wlan0, why are the first three pairs of the mac address the same? (b8:27:eb)

    clipboard_e62309569004be6eb30fc9d35f1844b92.pngFor a given mac address who is the manufacture of that device?

    Answer, use this web-tool

    https://macvendors.com/

     

    clipboard_eac6f06a07616d82cebdbf183ac5f75e7.png

    Try this with the mac address from your computer.

     

    • Was this article helpful?