LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2010, 11:47 AM   #1
bushra
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
where information is saved from eth0,?in which file?


i want to know about eth0..that where information is saved from eth0?in which file? and how to take input from that file? what will be the script?
 
Old 02-12-2010, 11:58 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Welcome to LQ!!

eth0 is a device node--most likely for your wired (Ethernet) internet connection. You would not normally read or write this "file".

Please describe what you are trying to accomplish and we can give a better answer.
 
Old 02-12-2010, 11:05 PM   #3
bushra
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Original Poster
Rep: Reputation: 0
if i change the device name like eth0 t0 xxxx,and then save it,where this file will save? and i want to make a script that takes input from that saved file.

etc itself is a directory. i want to know how i can access the neworking configuration parameters? files where these parameters are saved?


regards,

Last edited by bushra; 02-12-2010 at 11:21 PM.
 
Old 02-12-2010, 11:29 PM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
It varies between distros. The config may be in /etc/network/interfaces (ubuntu and ...?) or in /etc/rc.d/rc.inet1.conf (Slackware and ...?).

EDIT: or in the /etc/sysconfig/network-scripts directory (Redhat and ...)

Last edited by catkin; 02-12-2010 at 11:57 PM.
 
Old 02-13-2010, 11:55 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by bushra View Post
if i change the device name like eth0 t0 xxxx,and then save it,where this file will save? and i want to make a script that takes input from that saved file.
I still have no clue what you are trying to do......

First, if you change the device name, then something in your networking is probably not going to work.

Second, whenever you rename a file, you specify where it goes. Example:

mv filename newname ##the renamed file is in the same directory

mv filename /path/newname ##the renamed file is in the location specfied by /path/

Finally, if you rename eth0, then how will information get INTO that file so that you can read from it.

Again, please describe the overall problem you are trying to solve---i.e. WHY do you want to rename eth0 and then read from it?
 
Old 02-14-2010, 09:48 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
On many systems, the values you enter in your network configuration setup end up in a file named ifcfg-eth0. When you run ifup, it sources this file to set variables that the ifup script uses. If you use ifup-* scripts instead of network manager, you could for example add your PSK to a wireless interfaces settings. I've done that so I could use a 64 hex digit random PSK which I would never be able to remember.

Try running "man 5 ifcfg" for more information on these settings. Other files are used for different settings, such as your routers. Read the manpages for these commands and look at the "see also" entries in the bottom. Usually the config file used are included and often these configuration files have their own man pages.
 
  


Reply



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
How to find out indone information and datablocks information in a file system chaitanya1982 Linux - Newbie 1 09-24-2008 01:58 AM
From which file did get the init process information to configure my eth0 interface adilturbo Linux - Networking 6 12-18-2006 02:58 AM
Determining IP information for eth0...SIOCADDRT: File exists c087 Linux - Networking 1 07-23-2006 08:06 AM
Changing on which log information is saved Pastorino Linux - Software 0 09-23-2005 07:56 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:05 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
Open Source Consulting | Domain Registration