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

Discussion in 'Linux Networking' started by Datha, Jan 4, 2006.

  1. Datha

    Datha Guest

    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, Jan 4, 2006
    #1
    1. Advertisements

  2. Datha

    Axyl Guest

    Datha ha scritto:
    man network, man services, man protocols
     
    Axyl, Jan 4, 2006
    #2
    1. Advertisements

  3. Datha

    Bill Marcum Guest

    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.
     
    Bill Marcum, Jan 4, 2006
    #3
  4. Each of these is a plain ascii file that shows the translation between
    Correct, but you can use it to alias your networks, making
    administration easier.
     
    slackware guy, Jan 5, 2006
    #4
  5. 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
     
    slackware guy, Jan 5, 2006
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.