Skip to main content
Engineering LibreTexts

Putting the Raspberry Pi on the network, residential version

  • Page ID
    23224
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    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.

     


    Putting the Raspberry Pi on the network, residential version is shared under a GNU General Public License 3.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?