Results 1 to 5 of 5

Thread: Raspberry Pi - Network Settings Change Between Boots

  1. #1

    Default Raspberry Pi - Network Settings Change Between Boots

    I'm going to use this for (among other things) a test server for SFTP connections. Through YAST2, I configured a static address for the Ethernet port.

    If I hook my Pi up to a monitor with a keyboard and mouse, it works exactly as it should.

    If I plug it in down in my basement, where there is no HDMI, keyboard, nor mouse, it reverts to DHCP and refuses SSH connections.

    I bring it back upstairs, it works fine.

    It's all on the same network, but when it's downstairs it goes through a switch (not sure how that would matter). How is it possible that this is happening? Any insight would be greatly appreciated.

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: Raspberry Pi - Network Settings Change Between Boots

    Quote Originally Posted by paddygav View Post
    I'm going to use this for (among other things) a test server for SFTP connections. Through YAST2, I configured a static address for the Ethernet port.

    If I hook my Pi up to a monitor with a keyboard and mouse, it works exactly as it should.

    If I plug it in down in my basement, where there is no HDMI, keyboard, nor mouse, it reverts to DHCP and refuses SSH connections.

    I bring it back upstairs, it works fine.

    It's all on the same network, but when it's downstairs it goes through a switch (not sure how that would matter). How is it possible that this is happening? Any insight would be greatly appreciated.
    Hi and welcome to the Forum
    How is the network configured, to use Wicked or NetworkManager? What RPI port image is installed?

    Did you configure the system to default to a headless setup after configuration (systemctl set-default multi-user.target).

    System is all updated?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Raspberry Pi - Network Settings Change Between Boots

    If you search through the Forums (Might be in the Install or Application Forums) you'll find threads that describe a RPi "feature" that the MAC address changes constantly in different situations, so you can't rely on any set network configuration from one boot to the next because network configurations are associated with network device MAC addresses.

    I don't remember that a solution was ever described in any of these openSUSE forum threads.
    A quick Google turns up how you can set the MAC address for raspbian, but I don't see a reference for how to do this with u-boot which is what all non-raspbian images use. I see Google hits that it's supposed to be possible but there was a possible related bug in March 2017.
    Maybe your Google skills are better than mine... or is in U-boot documentation somewhere...

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Raspberry Pi - Network Settings Change Between Boots

    BTW - If you set up the network services to be based on named resolution instead of IP address and never turn off your RPi, you can generally avoid most of the problems associated with changing MAC addresses and IP addresses... You'll just have to remember that if your RPi changes IP addresses, then it might take some time for the other machines in your network to re-discover where your RPi is. Re-discovery will depend on stuff like if you're running a Workgroup or Domain network services and security.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: Raspberry Pi - Network Settings Change Between Boots

    On Thu 12 Oct 2017 01:56:02 PM CDT, tsu2 wrote:

    If you search through the Forums (Might be in the Install or Application
    Forums) you'll find threads that describe a RPi "feature" that the MAC
    address changes constantly in different situations, so you can't rely on
    any set network configuration from one boot to the next because network
    configurations are associated with network device MAC addresses.

    I don't remember that a solution was ever described in any of these
    openSUSE forum threads.
    A quick Google turns up how you can set the MAC address for raspbian,
    but I don't see a reference for how to do this with u-boot which is what
    all non-raspbian images use. I see Google hits that it's supposed to be
    possible but there was a possible related bug in March 2017.
    Maybe your Google skills are better than mine... or is in U-boot
    documentation somewhere...

    TSU


    Hi
    I have four RPI3's here, they are connected to a five port switch, the
    other port connects to a wireless repeater. A standalone setup the
    switch and repeater all run on 5V so have a 60W six port 5V power block
    feeding those and the RPI's.

    All four have static IP addresses, Two run SLES, one openSUSE Leap
    42.3 JeOS and the last one Tumbleweed JeOS. All systems retain the same
    MAC address over cold/warm power cycles.

    Of those one (A SLES system) sometimes doesn't come up on the network
    from a cold start, AFAIK it's the delay in the switch/repeater so make
    sure I power those first (stale arp cache?). The system is up as
    verified over a serial connection, restarting the network brings it up.

    @OP do you have a USB TTL cable to connect to the RPI? Are the activity
    LED's active on the RPI, what if you pull the ethernet cable or perhaps
    power cycle the switch?



    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    openSUSE Leap 42.2|GNOME 3.20.2|4.4.87-18.29-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!
    Last edited by malcolmlewis; 12-Oct-2017 at 09:57.

Posting Permissions

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