LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-23-2010, 02:58 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

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


hi,
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

example
Code:
#ifdown eth0 <-----This is nick name
or

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

Rep: Reputation: 92
Hi

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, 04:59 AM   #3
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 41
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, 04:10 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,394

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
Maybe he is using unix conventions such an en0 and thinking it may be now eth0??
 
Old 06-24-2010, 12:45 AM   #5
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

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

Quote:
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-24-2010 at 12:48 AM.
 
  


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
Do linux have a device file for ETHERNET CARD. iamjayanth Linux - Newbie 4 04-06-2009 12:33 PM
Slackware thinks USB Card Reader is an Ethernet device apachedude Linux - Hardware 3 02-04-2005 08:59 AM
How to determine PTY device of ethernet card The MCP Linux - Networking 1 08-17-2004 01: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 01:33 AM
2nd nick card tommytomato Linux - Networking 8 05-11-2004 08:09 PM


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

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