Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The "#" is the root prompt. Don't type that, it makes that whole line a comment. When you then try to edit the file, you are in the wrong directory, where there is no existing file with that name.
The "#" is the root prompt. Don't type that, it makes that whole line a comment. When you then try to edit the file, you are in the wrong directory, where there is no existing file with that name.
Looks like your ethernet adapters are called "eno1" and "eno2" rather than "eth0", so those are the files you'll want to edit. Which one to edit depends on which port your ethernet cable is attached to.
I thought CentOS 6 came with net-tools installed by default? Are you sure this isn't CentOS 7? "eno1" is also a CentOS 7 style name. You can verify the distro with:
As a regular user you need to specify the complete path i.e.
/sbin/ifconfig
However, the ifconfig command is being deprecated and replaced by the ip command. You can see the same information although in a different format
ip a
You indicate that you installed CentOS 6 but from the posted image it looks like CentOS 7. Predictive names en01 and en01 replaced eth0 and eth1. You will find there are a lot of websites that have outdated information since version 7 has some major changes since 6.
If running a desktop the easiest method would be to use networkmanager applet at the upper right or the nmtui.
Looks like your ethernet adapters are called "eno1" and "eno2" rather than "eth0", so those are the files you'll want to edit. Which one to edit depends on which port your ethernet cable is attached to.
I thought CentOS 6 came with net-tools installed by default? Are you sure this isn't CentOS 7? "eno1" is also a CentOS 7 style name. You can verify the distro with:
Code:
uname -a
and/or
Code:
cat /etc/*release*
Oh man, It is 7 . I meant to install 6..
Will Centos 7 work with cpanel and if not how do I default to 6?
No idea about cpanel, you'd have to look at their documentation. You would need to download the ISO for CentOS 6 and reinstall if you want to switch.
You don't have an eth0, you have eno1 and eno2, those are your two ethernet ports on the server, and ifcfg-eno1 and ifcfg-eno2 are their configuration files.
Why do you want it to be called eth0? Do you have some program or something that has "eth0" hard-coded into it and your network interface has to match? If not, just leave it at the default name or you'll likely break something.
Why do you want it to be called eth0? Do you have some program or something that has "eth0" hard-coded into it and your network interface has to match? If not, just leave it at the default name or you'll likely break something.
I don't want it to be called anything in particular
I am just asking for help or a command line that will fix my problem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.