LinuxQuestions.org
Review your favorite Linux distribution.
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 04-01-2015, 03:27 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 472

Rep: Reputation: 29
no eth0 but ifcfg-enp2s0


hi guys,

on my centos 7 machine i was looking for

/etc/sysconfig/network-scripts/ifcfg.eth0 file

but there is only ifcfg-enp2s0

what is enp2s0? thought i had a standard ethernet card
 
Old 04-01-2015, 03:30 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
You might want to have a look at this: https://esuareznotes.wordpress.com/2...dora-19-above/

They have changed the naming convention. If you want to switch back to traditional naming convention you can follow the link.
 
Old 04-09-2015, 02:40 PM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 472

Original Poster
Rep: Reputation: 29
thats grand...if its just naming convention i will get used to it...tanks!!!
 
Old 04-09-2015, 02:53 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
You're welcome. Please mark the thread as solved!

Enjoy Linux!!!
 
Old 04-09-2015, 04:04 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,691

Rep: Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264Reputation: 2264
We may all need to learn this BSD way of naming sooner or later. Good question.
 
Old 04-10-2015, 02:35 AM   #6
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 516

Rep: Reputation: 139Reputation: 139
Previously I was also using the same technique T3RM1NVT0R has suggested. But one of my senior suggested, the better way is to rename only the interface you want to... So I follow this trick..

Code:
# vim /etc/udev/rules.d/10-network.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="yy:yy:yy:yy:yy:yy", NAME="eth1"

# mv /etc/sysconfig/network-scripts/ifcfg-enpXxX /etc/sysconfig/network-scripts/ifcfg-eth0
# mv /etc/sysconfig/network-scripts/ifcfg-enpYyY /etc/sysconfig/network-scripts/ifcfg-eth1
Replace enpXxX with eth0 in ifcfg-eth0 file. Same for eth1 also

and finally reboot. Done.
 
  


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] ifcfg eth0 is not up sachin.davra Linux - Newbie 2 08-04-2014 05:55 AM
I deleted the Eth0 configuration information from vim ifcfg eth0. How to retrieve it? godwin.a Linux - Newbie 1 02-08-2014 03:58 AM
[SOLVED] Network eth0 activated upon boot in ifcfg-eth0; but no network connection after login TomRaaijmakers Linux - Networking 1 06-17-2010 09:29 AM
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 04:25 PM
eth0 not coming up at bootup even when configured in ifcfg-eth0 djcham Linux - Networking 1 12-04-2006 09:09 PM


All times are GMT -5. The time now is 01:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration