Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
CentOS is a binary compile from RHEL (RedHat Enterprise Linux) source. With RHEL 6.1 RedHat introduced use of biosdev on supported systems to make network device names relative to their physical location in the system rather than simply being numbered from eth0 to ethn. Dell is one of the vendors that provides this biosdev information. The theory is that your system might decide what is eth0 today is eth1 tomorrow while what was eth3 is now eth0. With the specific names you don't have this issue as the name for a given NIC will always be the same so long as it is always in the same physical location in the system.
This article at Dell's site gives more detail including how to disable biosdev if you want to use the old method:
Quote:
Red Hat Enterprise Linux 6 Update 1 (RHEL 6.1) that is now available from Red Hat implements a new naming convention for network interfaces. The ‘biosdevname’ udev helper utility, developed by Dell and released under GPL, suuggests new names to network interfaces based on their physical location in the system.
On installing RHEL 6.1 on supported Dell PowerEdge servers the new network interface names will be:
emN (em1, em2, ..)
instead of traditional ethN names for Lan-On-Motherboard interfaces.
For PCI add-in network interfaces the names will be:
With the new naming scheme, em1 will map to ‘Gb1’ (em2 to ‘Gb2’) as labeled on server chassis, making effective administration of network interfaces easier. The p1p2 names make it easier to identify network ports on add-on cards.
The new naming scheme is turned-on by default on supported Dell PowerEdge platforms. The new naming scheme can be disabled by passing ‘biosdevname=0’ kernel command line parameter during install time and retaining it through runtime.
Existing scripts that have ethN names hardcoded might require change to make them network device name agnostic.
Please refer to this document for more information on the new naming convention on supported Dell PowerEdge Servers.
Last edited by MensaWater; 01-07-2013 at 07:31 AM.
i had the same problem when i first install centos.
try writing : ifdown eth0 and then ifup eth0
and retry ifconfig -a
The OP's post shows that udev is renaming eth0 to p1p1 so this wouldn't work unless he turns off biosdev stuff as I mentioned. He doesn't need to turn off biosdev though for most purposes p1p1 would work just as well as eth0 - it is just a name and gives more detail than eth0 does in the name.
i've tried and it won't work just like mensaWater said,
so it's only matter of name??
i have read an article that some distro can only recognize eth*.
if things goes like that then so be it...
You don't have an eth0 because your distro didn't name your ethernet port eth0, it named it p1p1. p1p1 is your ethernet port, you will never have an "eth0" unless you disable biosdev. Usually this won't be a problem, but SOME applications do require an eth0 for licensing (to get your mac address). That's something you can deal with when the time comes though.
You don't have an eth0 because your distro didn't name your ethernet port eth0, it named it p1p1. p1p1 is your ethernet port, you will never have an "eth0" unless you disable biosdev. Usually this won't be a problem, but SOME applications do require an eth0 for licensing (to get your mac address). That's something you can deal with when the time comes though.
Exactly what the above says. It is doesn't bother you, then leave it that way. Of course remember that some software require the name eth* and nothing else. Also some other require the name p1p1 only, Matlab for example!
actually i haven't try wired network though,
i always use tethering in my home to get connected.
well at least, i got a lot of things to know.
thanks anyway
Quote:
Usually this won't be a problem, but SOME applications do require an eth0 for licensing (to get your mac address). That's something you can deal with when the time comes though
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.