Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

/etc/protocols, /etc/services and /etc/networks ? who fills these files.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2006, 06:02 AM
Default /etc/protocols, /etc/services and /etc/networks ? who fills these files.



Hi Everyone,
Who fills files in etc directory such as /etc/protocols, /etc/services
and /etc/networks
Can anybody please give me sample of /etc/networks
I do not have /etc/networks in my linux system.
Thanks,
Datha



Datha
Reply With Quote
  #2  
Old 01-04-2006, 08:17 AM
Axyl
Guest
 
Posts: n/a
Default Re: /etc/protocols, /etc/services and /etc/networks ? who fills thesefiles.

Datha ha scritto:
> Hi Everyone,
> Who fills files in etc directory such as /etc/protocols, /etc/services
> and /etc/networks
> Can anybody please give me sample of /etc/networks
> I do not have /etc/networks in my linux system.
> Thanks,
> Datha
>

man network, man services, man protocols
Reply With Quote
  #3  
Old 01-04-2006, 10:36 PM
Bill Marcum
Guest
 
Posts: n/a
Default Re: /etc/protocols, /etc/services and /etc/networks ? who fills these files.

On 3 Jan 2006 22:02:42 -0800, Datha
<(E-Mail Removed)> wrote:
> Hi Everyone,
> Who fills files in etc directory such as /etc/protocols, /etc/services
> and /etc/networks
> Can anybody please give me sample of /etc/networks
> I do not have /etc/networks in my linux system.
> Thanks,
> Datha
>

man 5 protocols
man 5 services
man 5 networks
(These man pages exist in Debian or Ubuntu. YMMV with other distros.)

Each of these is a plain ascii file that shows the translation between
numbers (protocol, port, or network IP address) and human-readable
names. Some Linux distros may use /etc/sysconfig/networks instead of
/etc/networks. The /etc(/sysconfig)/networks file, like /etc/hosts, is
maintained by the local sysadmin. Unlike /etc/hosts, I don't think
/etc/networks is required for network operation.

The other two files are part of the basic OS distribution (the netbase
package in Debian or Debian-based distros). On my system, the
/etc/protocols ane /etc/services files begin with comments which contain
URLs to www.iana.org.


--
There is no comfort without pain; thus we define salvation through suffering.
-- Cato
Reply With Quote
  #4  
Old 01-05-2006, 09:04 PM
slackware guy
Guest
 
Posts: n/a
Default Re: /etc/protocols, /etc/services and /etc/networks ? who fills these files.

>Each of these is a plain ascii file that shows the translation between
>numbers (protocol, port, or network IP address) and human-readable
>names. Some Linux distros may use /etc/sysconfig/networks instead of
>/etc/networks. The /etc(/sysconfig)/networks file, like /etc/hosts, is
>maintained by the local sysadmin. Unlike /etc/hosts, I don't think
>/etc/networks is required for network operation.


Correct, but you can use it to alias your networks, making
administration easier.

Reply With Quote
  #5  
Old 01-05-2006, 09:14 PM
slackware guy
Guest
 
Posts: n/a
Default Re: /etc/protocols, /etc/services and /etc/networks ? who fills these files.

Here is an example of ane /etc/networks file where the local network is
192.168.1. and all the hosts are on that subnet. (This the linksys
router default)

loopback 127.0.0.0
homenet 192.168.1.0

Reply With Quote
Reply

Tags
files, fills, or etc or networks, or etc or protocols, or etc or services

Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.