LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-06-2008, 10:34 AM   #1
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Rep: Reputation: 36
Question /etc/network/interfaces


Hi,

the following are some of the lines in my /etc/network/interfaces file

auto lo
iface lo inet loopback
iface eth0 inet static

can any one explain what these lines are and what is their purpose ?

iface i know it means interface
eth0 - ethernet card 0
inet means what ?

what is meant by loopback , auto lo ?
 
Old 07-06-2008, 10:55 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
"inet" refers to the type of network interface being configured
"loopback" refers to an internal loopback network - 127.0.0.0/8
"static" means a statically configured external network, as opposed to a dhcp configured one etc...
 
Old 07-06-2008, 11:17 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,110

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
... and if you type man interfaces in a terminal, you can read a lot more about what the text in that file means.
 
Old 07-06-2008, 12:58 PM   #4
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Original Poster
Rep: Reputation: 36
Question

Quote:
Originally Posted by acid_kewpie View Post
"inet" refers to the type of network interface being configured
"loopback" refers to an internal loopback network - 127.0.0.0/8
"static" means a statically configured external network, as opposed to a dhcp configured one etc...
lo means loop back isn't it ?
 
Old 07-06-2008, 01:17 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
yep, that's right.
 
  


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
Network interfaces do not bring up on network restart rajat Linux - Networking 1 06-20-2007 04:44 AM
For laptop - different networks in /etc/network/interfaces, or use network-manager? dmravaet Linux - Wireless Networking 4 03-17-2007 11:42 PM
Manual Network Setup Works, /etc/network/interfaces doesn't verdeboy2k Linux - Wireless Networking 0 05-31-2006 06:56 PM
Two Interfaces on the same Network cspcom Linux - Newbie 6 06-18-2005 04:32 PM
need help with /etc/network/interfaces littlemidget Linux - Networking 1 08-04-2004 07:00 PM

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

All times are GMT -5. The time now is 09:40 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