LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   # cd /etc/sysconfig/network-scripts/?? (https://www.linuxquestions.org/questions/linux-newbie-8/cd-etc-sysconfig-network-scripts-4175584418/)

suicidaleggroll 07-12-2016 02:50 PM

Your original problem is that you were trying to edit the configuration file for a network interface that didn't exist. Your network interface is not called "eth0", so the configuration file "ifcfg-eth0" does not exist. Your network interfaces are "eno1" and "eno2", and their configuration files are "ifcfg-eno1" and "ifcfg-eno2" respectively. Those are the files you want to edit instead of "ifcfg-eth0".

suicidaleggroll 07-12-2016 02:51 PM

Quote:

Originally Posted by Joseph2016 (Post 5574867)
so like this ?

Thank you for all the help ;)

/sbin/ip link set eth1 down
/sbin/ip link set eth1 name eno1
/sbin/ip link set eno1 up

is that correct?

No, you don't have an eth1 either. Stop trying to change the names of your interfaces. Your original instructions said to use "vi ifcfg-eth0", change that to "vi ifcfg-eno1" (assuming your ethernet cable is plugged into eno1, otherwise use eno2).

Joseph2016 07-12-2016 02:53 PM

Quote:

Originally Posted by michaelk (Post 5574869)
I assume network manager is installed and running. If nmtui does not work will do it manually.

http://www.krizna.com/centos/setup-network-centos-7/

Thank you for that link, I am learning so much :)

I have

eno1 = ethernet disconnected
en02 - ethernet unavailable
lo = loopback unmanned


AM I getting closer to getting online?

What do I need to do next?

Thank you in advance

michaelk 07-12-2016 03:17 PM

Read the link I posted. You want to open the nmtui GUI and edit the connection for en01.
Using the arrow keys move it to the IPv4 configuration (if configuring a V6 address move to that line) line and press enter.

Select manual then move to show, press enter then move to add.
Type in the address/netmask
move to the gateway and type it its address
move to the DNS,press enter and add the DNS servers.

If satisfied move down to the OK and press enter and finally quit.

Joseph2016 07-12-2016 03:56 PM

You BOTH ROCK !


whoot!

https://postimg.org/image/bl99bncyv/

Thank you so much ;)

PS - Can anyone suggest anything better then cpanel to manage domains and works with CENTOS?

Joseph2016 07-13-2016 07:27 PM

I got STATIC IPS today and now I have this error when trying to restart the network or even connecting

I have two static IPS and

and set it all on automatic like this says

command: systemctl restart network

"Job for network service failed because the control process exited with error code:

"systemctl status network.service" and journalctl -xe " for details

I promise I am reading a linux book :) , just where do I got from here?


All times are GMT -5. The time now is 06:19 AM.