LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2023, 02:45 AM   #1
Xavier L
LQ Newbie
 
Registered: May 2023
Posts: 3

Rep: Reputation: 1
No IP after reboot


I have fedora 38 server edition installed.

When the Ethernet cable is connected to my server from a router, the server doesn't get IP address. I have to type commend # dhclient to have my NIC assigned with an IP, so I can connect to the Internet.

After rebooting, the IP is gone and I have to do #dhclient after login again.

Is there a way to setup my server to get an ip automatically from my router? BTW, my router has HDCP on. Thanks.
 
Old 05-25-2023, 03:04 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
This seemed to be at the top of a search for -- fedora 38 server edition dhcp

https://www.server-world.info/en/not..._38&p=dhcp&f=1
 
Old 05-25-2023, 03:38 AM   #3
Xavier L
LQ Newbie
 
Registered: May 2023
Posts: 3

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by grail View Post
This seemed to be at the top of a search for -- fedora 38 server edition dhcp

https://www.server-world.info/en/not..._38&p=dhcp&f=1
Thanks, but from i understand the link is to setup a HDCP SERVER, but I simply want to get an IP from my router (in this case the HDCP server is the router, which my server connects to).

In other words, I am a client, so I want to get an IP from a HDCP server (the router), not to set up a HDCP server for other clients.

It doesn't work for me.
 
Old 05-25-2023, 05:22 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
Why not put the dhclient command into rc.local? Then it will run automatically at boot.
 
Old 05-25-2023, 07:03 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
can you give it a static IP?
 
Old 05-25-2023, 07:41 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,727

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
Fedora uses NetworkManager and the configuration files are /etc/NetworkManager/system-connections/

Quote:
When the Ethernet cable is connected to my server from a router, the server doesn't get IP address.
Does your system also have a wifi connection? If so normally NM at least with a desktop installation will automatically switch between wifi and a wired connection but I don't know about a Fedora server install.

Is NetworkManager running?
systemctl status NetworkManager

Post the output of the command
nmcli device status

Either login as root or use sudo depending on how your system is configured.

FYI its DHCP (Dynamic Host Control Protocol) not HDCP.
 
Old 05-25-2023, 01:46 PM   #7
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,804

Rep: Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203Reputation: 1203
Provided NM is runnimg,
also post the output of
Code:
nmcli con show
This lists the "connections".
Then, to change a connection to dhcp, use
Code:
nmcli con mod "connectionname" ipv4.method auto

Last edited by MadeInGermany; 05-25-2023 at 01:47 PM.
 
Old 05-26-2023, 12:53 AM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,157

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
check out this link: https://computingforgeeks.com/config...cky-almalinux/

type: nmtui

check if network card is activated, or try setting up a static ip check if it works

If it works revert it back to automatic and check if DHCP will work ok
 
1 members found this post helpful.
Old 05-26-2023, 04:52 AM   #9
Xavier L
LQ Newbie
 
Registered: May 2023
Posts: 3

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by JJJCR View Post
check out this link: https://computingforgeeks.com/config...cky-almalinux/

type: nmtui

check if network card is activated, or try setting up a static ip check if it works

If it works revert it back to automatic and check if DHCP will work ok
I installed #dnf install NetworkManager-tui-1 on my Fedora 38 server edition. I did numti and in the menu I selected "Automatically connect". After reboot, my server had an ip assigned. It works. Thanks a lot.
 
1 members found this post helpful.
Old 05-29-2023, 04:29 AM   #10
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,157

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Great glad to know its working now!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"fsck failed. Please repair manually and reboot" on OpenSUSE 11.4 –gone after reboot? muohta SUSE / openSUSE 1 07-17-2014 01:52 PM
reboot freezes after yast update run, reboot for kernel update sparkbot Linux - Software 2 11-15-2006 06:34 PM
FC4 hangs after reboot. Is it possible to manually reboot to find problem hathmann Fedora 5 08-13-2006 03:57 AM
No keyboard/mouse after reboot. Requires second reboot to work. rottie Linux - Hardware 6 01-16-2006 05:04 AM
Blank screen after "startx" after reboot after install cg from nvidia rozky Linux - Software 2 04-04-2005 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration