Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

networks(4) [osf1 man page]

networks(4)						     Kernel Interfaces Manual						       networks(4)

NAME
networks - Contains network name information SYNOPSIS
/etc/networks DESCRIPTION
The networks file contains information about the known networks that comprise the DARPA (Defense Advanced Research Projects Agency) Inter- net. Each network is represented by a single line in the networks file. The format for the entries in the networks file is as follows: Name Number Aliases The fields contain the following: The official network name. The network number. The unofficial names used for the network. Items on a line are separated by one or more spaces or tab characters. Comments begin with a # (number sign). Routines that search the networks file do not interpret characters from the beginning of a comment to the end of that line. Network numbers are specified in dot- ted-decimal notation. A network name can contain any printable character except a field delimiter, newline character, or comment character (#). The networks file is normally created from the official network database maintained at the Network Information Center (NIC). The file may need to be modified locally to include unofficial aliases or unknown networks. RELATED INFORMATION
Commands: route(8) Functions: getnetbyaddr(3), getnetbyname(3), getnetent(3) delim off networks(4)

Check Out this Related Man Page

networks(4)							   File Formats 						       networks(4)

NAME
networks - network name database SYNOPSIS
/etc/inet/networks /etc/networks DESCRIPTION
The networks file is a local source of information regarding the networks which comprise the Internet. The networks file can be used in conjunction with, or instead of, other networks sources, including the NIS maps networks.byname and networks.byaddr and the NIS+ table networks. Programs use the getnetbyname(3SOCKET) routines to access this information. The network file has a single line for each network, with the following information: official-network-name network-number aliases Items are separated by any number of SPACE or TAB characters. A `#' indicates the beginning of a comment. Characters up to the end of the line are not interpreted by routines which search the file. This file is normally created from the official network database maintained at the Network Information Control Center (NIC), though local changes may be required to bring it up to date regarding unofficial aliases and/or unknown networks. Network numbers may be specified in the conventional dot (`.') notation using the inet_network routine from the Internet address manipula- tion library, inet(7P). Network names may contain any printable character other than a field delimiter, NEWLINE, or comment character. SEE ALSO
getnetbyaddr(3SOCKET), getnetbyname(3SOCKET), inet(3SOCKET), nsswitch.conf(4), inet(7P) NOTES
The official SVR4 name of the networks file is /etc/inet/networks. The symbolic link /etc/networks exists for BSD compatibility. The network number in networks database is the host address shifted to the right by the number of 0 bits in the address mask. For example, for the address 24.132.47.86 that has a mask of fffffe00, its network number is 803351. This is obtained when the address is shifted right by 9 bits. The address maps to 12.66.23. The trailing 0 bits should not be specified. The network number here is different from that described in netmasks(4). For this example, the entry in netmasks would be 24.132.46.0 fffffe00. SunOS 5.10 17 Jan 2002 networks(4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

DBsurvey syntax for cellular networks

I'm trying to find the syntax for running DBsurvey scripts in UNIX. This is for a Sprint's cellular network (Lucent hardware). I can't find anything in Sprint or Lucent documents. Can anyone help me? A simple script looks like this: DB: ecp MATCH: field_name GE 1 OUTPUT: field_name1... (5 Replies)
Discussion started by: roylevalle
5 Replies

2. Linux

programming advice needed....

i'm a grad student taking a UNIX course and a networks course (i have a background in C++ and JAVA). i'm trying to combine the two classes. My questions stems from a networks programming homework assignment below: "Using the operating system and language of your choice, develop a program to... (5 Replies)
Discussion started by: trostycp
5 Replies

3. UNIX for Advanced & Expert Users

Max no. of characters in a line

Hi, I have one problem. I am not able to enter more than 2048 characters in a single line in a file. This file contains the users I have for my network. Since one line atmost can have 2048 characters I am not able to create more than a certain number of users. Can I somehow increase this limit... (4 Replies)
Discussion started by: pankschawla
4 Replies

4. Solaris

Troubleshooting Solairs 10 Network problems

recently I've setup a Solaris 10 box & am having network disruption, e.g. disconnects, interrupted pings, etc) when I connect to it from another machine, how should I troubleshoot this ! The machine is a x86 box with 3 NICs (Differnet providors). The Current NIC is a Intel Gigabit, which is... (4 Replies)
Discussion started by: stevie_velvet
4 Replies

5. Shell Programming and Scripting

adding a character in front of a line

Hi everyon, I am trying to search for a pattern in a file and add "//" to the begining of the file. lets say i want to comment out a line from my codes. the line that should be commented out contains the word "reset". i need to search for the word "reset" and comment out that specific line. is... (5 Replies)
Discussion started by: ROOZ
5 Replies

6. Solaris

Solaris as router between two subnets

I have two networks which is not connected to each other. Each network has its own internet connection. I also have one Solaris machine with two NICs connected to both of the networks. How do I use the Solaris to connect both network so that hosts from either side of the network can... (9 Replies)
Discussion started by: Ahmad Pakhri
9 Replies

7. Infrastructure Monitoring

Firewall / Network isolation inquiry

Good morning folks, A good friend of mine has a network where every host has two paths to the file servers (two NICs & two networks for all hosts). Normally speaking, one network will be used for regular application traffic - license servers, itunes library, collaboration tools - while the... (4 Replies)
Discussion started by: avronius
4 Replies

8. IP Networking

strange network problem

system config. Red hat ES 5 . multiple network cards. front end and back end networks. Problem: Here is what I have diagnosed on linux 6 .....other machines on the network if you try to get there do not see linux 6, a ping results in “no route to host” message. However the system is running... (4 Replies)
Discussion started by: frankkahle
4 Replies

9. Homework & Coursework Questions

Could anyone help explain this?

1. The problem statement, all variables and given/known data: I have a retake assignment to complete for my computer networks and OS class. This isn't really my area, had I known last year I could have swapped it for a different module I would have done so. I'm determined to get through it... (6 Replies)
Discussion started by: Squall Moogle
6 Replies

10. IP Networking

Any suggested readings on Computer Networks

Hi! I wanted to go deeper in how computer networks works. Went through many well known books. Liked Computer Networks by Andrew S Tanenbaum. However he only covered theoretical concepts but what I required was implementation. I also went through TCP/IP illustrated series. They were excellent but... (5 Replies)
Discussion started by: dheerajsuthar
5 Replies

11. What is on Your Mind?

Networks alternative to Internet

I've read about BITNET, CompuServe... CompuServe was probably not a network but an online service. Are (were) there any other networks alternative to Internet? Does anyone have experience with them? Do they still exist, is it possible to access them over Internet? There seems not to be another way... (13 Replies)
Discussion started by: Action
13 Replies

12. Solaris

Multiple networks on same server

If I have 2 interfaces in a server on the same subnet/network does Solaris automatically choose to route packets destined for this network out the first interface. I.e if ce0 and ce1 were on same network ce0 would be chosen as it's first interface? (5 Replies)
Discussion started by: Actuator
5 Replies

13. UNIX for Dummies Questions & Answers

Unix vs linux in the job place and other questions

hello all, im new to this site...and look forward to corresponding with you all. i am a microsoft kid (sad) currently i work on small networks and repair computers for home and business. i want to better my skill set...but dont want to carry on down the MS route. Basically i want to... (12 Replies)
Discussion started by: j0n1n
12 Replies

14. Solaris

How to enable ping?a litte complex

I have two networks 192.168.0.0/24 which is my home network 10.2.0.0/24 which is the second network dedicated to vm's Without firewall I can ping all networks without problems Client System is : Slackware 14.2 with ip 192.168.0.2 Server is OmniOS with ip 10.2.0.1(vnic) and 192.168.0.30... (13 Replies)
Discussion started by: Linusolaradm1
13 Replies

15. AIX

Setting up NIM for different networks

Hi, I am struggling setting up a NIM master to serve hosts on a network that is not directly accessible through the "master"-s default interface. I now that I need to set up network definitions and maybe NIM routes, but got confused. The master has 2 interfaces: * en0 holding the address... (8 Replies)
Discussion started by: trifo75
8 Replies