Results 1 to 8 of 8

Thread: r8125 Networking setup Odroid H2+

  1. #1
    Join Date
    Apr 2021
    Beans
    4

    Unhappy r8125 Networking setup Odroid H2+

    Hi people,

    i am already on quite a odissey and describe for short what happened:

    I bought a Odroid H2+ to setup a homeserver running nextcloud, i installed Ubuntu Server 20.04 but it needs the Drivers for Realtek r8125. I did install it and unistalled reistalled but it wasnt working as it should. I set it up it was recognized but still couldnt connect to the internet even after this:

    ifconfig enp3s0 up

    It was displayed as UP but couldnt connect to the internet.

    I was fiddling around like two days and in the middle of the night i remember doing some more stuff like searching searching searching, and found myself in some config or program and the adapter was up BUT there was something like DISABLED but maybe not exactly maybe also not running or similar. I thought that is strange i ENABLED it, and boom it worked flawlessly.

    I was so proud of myself i am absolutely no administrator or anything. I instantly made a backup and thought it worked but it didnt -.-

    Around a week later my SSD burnt and was just dead not found anymore. I replaced it and learned the backup wasnt there...I should have done it through liveboot as i know it.

    I am stuck here again at the place i was before and cant remember because i didnt take any notes at all..big mistake.

    Adapters installed with apt repo, and found with ehttool link is showing up, it is blinking on the deviceport but no connection.

    So i am searching for some config or program where i can enable the adapter again. Right now the only way I can access with SSH threw usb internet connection from my phone, that is kind of nasty for configuration. I know it is something super simple I am searching for, it is not /etc/networking or /etc/netplan. Maybe someone has some ideas where to find this configuration i am eager to get the Nextcloud server up even tough there are sure more challenges waiting for me.

    If you think i am not in the appropriate place to ask this, i am sorry maybe you have some recommendations. I red the Odroid H2+ plus forum but apparently people dont have the same problem as me and it isnt too active too.

    Wish you all a nice day and thanks for reading

    Mrs-selp

  2. #2
    Join Date
    Apr 2008
    Beans
    73

    Re: r8125 Networking setup Odroid H2+

    The drivers for the r8125 are not in the kernel. You need to download the drivers from here:

    https://www.realtek.com/en/component...press-software

    Download the drivers "2.5G Ethernet LINUX driver r8125 for kernel up to 5.6".

    This will download a file "r8125-9.005.01.tar.bz2". Extract this file:

    Code:
    tar xvjf r8125-9.005.01.tar.bz2
    This will produce a directory "r8125-9.005.01".

    Now install the drivers:

    Code:
    cd r8125-9.005.01
    sudo ./autorun.sh
    Note that you must have the package "build-essential" installed, which is not installed by default.

    Code:
    sudo apt install build-essential

  3. #3
    Join Date
    Apr 2021
    Beans
    4

    Re: r8125 Networking setup Odroid H2+

    Thanks, sure i know I installed with all three different methods before already. And it didnt work even after trying all the different ones and running:

    ifconfig enp3s0 up

    but i remember i edited somewhere from DISABLED to ENABLED or something similar and boom it worked.

    But the SSD burnt. It is so frustrating hanging at a problem I already solved before.

  4. #4
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,632
    Distro
    Ubuntu Development Release

    Re: r8125 Networking setup Odroid H2+

    What is the response to:

    Code:
    sudo dhclient enp3s0
    May we also see;

    Code:
    cat /etc/netplan/*.yaml
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  5. #5
    Join Date
    Apr 2021
    Beans
    4

    Re: r8125 Networking setup Odroid H2+

    Hi,

    I replied so late cause i couldnt establish the SSH from my phone. I works now(the ssh) but I dont know why. :/

    I ran

    Code:
    sudo dhclient enp3s0
    
    
    And it didnt have any output but I realized it assignde a ipv4 adress when running

    Code:
    ip a
    The

    Code:
    cat /etc/netplan/*.yaml
    And the output was:

    network:
    ethernets:
    usb0:
    dhcp4: true
    version: 2
    Seems for me like the ethernet isnt listed, thats a problem I guess

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,632
    Distro
    Ubuntu Development Release

    Re: r8125 Networking setup Odroid H2+

    Seems for me like the ethernet isnt listed, thats a problem I guess
    Well, yes.

    Please do:

    Code:
    sudo nano /etc/netplan/*.yaml
    Amend the file to:

    Code:
    network:
      version: 2
      ethernets:
        enp3s0:
          dhcp4: yes
    Netplan is very particular about spacing, indentation, etc., so proofread carefully twice. Save (Ctrl+o) and exit (Ctrl+x) the text editor. Follow with:

    Code:
    sudo netplan generate
    sudo netplan apply
    Note and post any errors.

    Servers are a bit easier to reach with a static IP address. A sample template is here:

    Code:
    cat /usr/share/doc/netplan/examples/static.yaml
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  7. #7
    Join Date
    Apr 2021
    Beans
    4

    Re: r8125 Networking setup Odroid H2+

    Hi thank you Magicwoman or Man.

    It worked

    I am not sure maybe it would have worked already after the because it already assigned a Ipv4 adress.

    sudo dhclient enp3s0



    but I had a problem with my wifirepeater that I resolved after doing all the steps.

    Anyway I also made this:

    Code:
    network:
        version: 2
        ethernets:
            enp3s0:
                dhcp4: yes
    and this:

    Code:
    sudo netplan generate
    sudo netplan apply

    Worked as a charm! Thanks a lot!!!

    I screwed up afterwards when setting up a hidden service for remote connection but I can resolve this myself if I have a screen available.

    I am so grateful!

    All the best to all of you I mark this SOLVED.
    Last edited by mrs-selp; April 18th, 2021 at 12:36 PM.

  8. #8
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,632
    Distro
    Ubuntu Development Release

    Re: r8125 Networking setup Odroid H2+

    I am not sure maybe it would have worked already after the because it already assigned a Ipv4 adress.

    sudo dhclient enp3s0
    Indeed. However, the dhclient command won't survive a reboot. I assume that what is most convenient for most of us is for the server to get an IP address automagically on boot. That's what netplan is designed to do.

    I'm glad it's working as expected. Have fun!
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •