Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changing IP when configuring ssh before installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Oleksii Kruhliak
n00b
n00b


Joined: 05 Feb 2025
Posts: 2

PostPosted: Sat Apr 26, 2025 8:23 pm    Post subject: Changing IP when configuring ssh before installation Reply with quote

Decided to reinstall gentoo on my tablet. I usually do this via ssh. Small screen, uncomfortable keyboard. I am using a minimal installation CD image. The connection between the host and the client is via Wi-Fi. There was a problem with the latest image (install-amd64-minimal-20250420T121009Z.iso). The host constantly changes its IP address.
To set up the host after boot, I do the following:
# net-setup
# ip address
# ping i.ua
# passwd
# rc-service sshd start

After this, the host changes its IP address every 3-4 minutes.
How to deal with this. I will be grateful for any help.
Best regards, Oleksii.
Back to top
View user's profile Send private message
zen_desu
Apprentice
Apprentice


Joined: 25 Oct 2024
Posts: 248

PostPosted: Sat Apr 26, 2025 8:27 pm    Post subject: Re: Changing IP when configuring ssh before installation Reply with quote

Possibly the DHCP server has a very short lease time and doesn't hand out the same IP?

You could make a static lease on the server (likely router) or set a static IP to whichever IP it allocates, but there is a chance it could allocate that to another device at some point.

Using IPv6 local addresses is another option.
_________________
µgRD dev
Wiki writer
Back to top
View user's profile Send private message
Oleksii Kruhliak
n00b
n00b


Joined: 05 Feb 2025
Posts: 2

PostPosted: Sat Apr 26, 2025 8:45 pm    Post subject: Re: Changing IP when configuring ssh before installation Reply with quote

Of course, this problem can be circumvented. It is enough to connect via a wired network. In the installed system, this problem is not observed.
The Wi-Fi router settings have not been changed. The tablet's Mac address is assigned a permanent IP address on the Wi-Fi router. But six months ago this problem did not exist. And now I see the third build in which this problem exists.
I don't think this is very good.

Thank you for your attention to my request.

PS: Yes, I forgot to add that IPv6 addresses also change.

Stopping the sshd service does not solve the problem.
Back to top
View user's profile Send private message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 357

PostPosted: Mon Apr 28, 2025 4:07 pm    Post subject: Reply with quote

Check if NetworkManager is running.
If yes, then use nmtui instead of net-setup.

I just tried to install via minimal iso and observed network manager was running.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum