LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-10-2020, 05:55 AM   #1
Merab Sethi
LQ Newbie
 
Registered: Jul 2020
Posts: 2

Rep: Reputation: Disabled
Can't Configure New Network Connection Manually


Hi, I have been trying to manually configure a network connection but when i am trying to execute the ' ifdown ' & ' ifup ' command it is giving me the error I have shown bellow.


[merab@localhost ~]$ sudo ifdown enp0s8
Error: '/etc/sysconfig/network-scripts/ifcfg-enp0s8' is not an active connection.
Error: no active connection provided.
 
Old 07-10-2020, 07:34 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,980

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
This sounds like RHEL or Centos. Can you share your distro and version?

Guessing: Your version of ifup/ifdown uses NetworkManager, which in turn uses the concept of "connection". You don't have a connection for enp0s8, thus the error.

I believe you can replace ifup/down with a different version, but it depends on your particular distro whether that is advisable.
 
Old 07-10-2020, 09:12 AM   #3
Merab Sethi
LQ Newbie
 
Registered: Jul 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you for responding. Yes my distro is RedHat and the version is 8.
 
Old 07-10-2020, 09:24 AM   #4
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 4,980

Rep: Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487Reputation: 1487
I would use nmcli in this case.

First, list your connections and list your devices.
Code:
nmcli con
nmcli dev
Normally, you can bring a connection up with nmcli con CONNECTION_NAME up. However, your device might be unmanaged, or there may be other conditions that prevent you from doing this.

I suggest you read Red Hat's documentation, in particular https://access.redhat.com/documentat...ing-networking.
 
Old 07-10-2020, 09:52 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,223

Rep: Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460Reputation: 3460
Network scripts are deprecated in RHEL 8. Networking is completely controlled by Network Manager with ifup/ifdown actually calling nmcli. In addition to the Redhat documents

https://www.cyberciti.biz/faq/how-to...ess-on-rhel-8/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Puppy linux network tools won't connect on boot, though I can connect manually pierssnell Linux - Newbie 3 01-12-2015 01:28 PM
Need advice on how to manually configure a network connection jk07 Linux - Networking 5 07-15-2012 08:52 PM
[SOLVED] Unable to manually configure internet connection with PCBSD. Randicus Draco Albus *BSD 3 10-14-2011 04:37 AM
How to configure a wireless network manually in Debian Testing whistlenut Linux - Wireless Networking 4 10-24-2008 08:34 AM
How to manually add SATA driver manually when kernel boot? aixilin Linux - Kernel 6 08-15-2008 10:36 AM

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

All times are GMT -5. The time now is 05:21 PM.

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