Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-23-2010, 01:58 AM   #1
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
How to call Ethernet card card by device name or nick name ?

I want to know that in my Linux box under "Network Configuration....>Devices" i can see Device eth1 and Nickname eth0.
The ambiguity in my mind is when we want to down network interface we should call it by device name or nick name

#ifdown eth0 <-----This is nick name

#ifdown eth1 <-----This is device name
Old 06-23-2010, 03:58 AM   #2
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92

Your understanding of how Linux handles network interfaces is not correct. There is no such thing as a "nick name".

What you're seeing on your machine is 2 distinct interfaces; called eth0 (Network Interface 1) and eth1 (Network Interface 2).

Thus the ifdown commands you list will both work - but they will shut down different network interfaces.
Old 06-23-2010, 03:59 AM   #3
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
I'm not sure I understand, but I think you want to call up/down the devices by either name?

Maybe try alias?

Or eth0=eth1 AND eth1=eth0 in your setup? (probably wont' work), but worth the try, depending on which network program you are using to setup things.
Old 06-23-2010, 03:10 PM   #4
Registered: Mar 2008
Posts: 17,000

Rep: Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513Reputation: 2513
Maybe he is using unix conventions such an en0 and thinking it may be now eth0??
Old 06-23-2010, 11:45 PM   #5
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
well If you use GUI in Network Configuration,Devices you can see

Activate eth1 eth0 Ehternet
but when i use my terminal I can see only the actualy device name not the nick name.

My issue I have two network cards in my linux box eth0 and eth1.With #ifconfig -a it show me only eth1 and its IP but with eth0 there is no IP with it .I have also create a file under "network-scripts with name of "ifcfg-eth1" where as "ifcfg-eth0" was already by default.

Last edited by gardenair; 06-23-2010 at 11:48 PM.


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
Do linux have a device file for ETHERNET CARD. iamjayanth Linux - Newbie 4 04-06-2009 11:33 AM
Slackware thinks USB Card Reader is an Ethernet device apachedude Linux - Hardware 3 02-04-2005 07:59 AM
How to determine PTY device of ethernet card The MCP Linux - Networking 1 08-17-2004 12:36 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
2nd nick card tommytomato Linux - Networking 8 05-11-2004 07:09 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration