UNIX Database Files Multiplexing
15.1.3.2 UNIX Database Files
UNIX database files store all of the protocol and port numbers that the system needs. These files are uniform among different UNIX flavors. We will discuss them with examples from SunOSSolaris and HP−UX. The etcprotocols file — The etcprotocols file is a simple table containing the protocol names and the protocol numbers associated with those names. The format of the table is a single entry per line; each entry consists of the official protocol name separated by white space from the protocol number; the protocol number is separated by white space from the alias if any exists for the protocol name, and comments begin with the symbol. cat etcprotocols SunOSSolaris protocols 1.9 900103 SMI Internet IP protocols This file is never consulted when the NIS are running ip 0 IP internet protocol, pseudo protocol number icmp 1 ICMP internet control message protocol igmp 2 IGMP internet group multicast protocol ggp 3 GGP gateway−gateway protocol tcp 6 TCP transmission control protocol pup 12 PUP PARC universal packet protocol udp 17 UDP user datagram protocol 348 The etcservices file — The other database file, etcservices, is very similar in its format to the etcprotocols file. Each single−line entry starts with the official name of the service, separated by white space from the port numberprotocol name pair associated with that service. The port numbers are paired with transport protocol names, because different transport protocols may use the same port number. An optional list of aliases for the official service name may be also provided, and comments start with the symbol. cat etcservices services 1.16 900103 SMI Network services, Internet style This file is never consulted when the NIS are running tcpmux 1tcp rfc−1078 echo 7tcp echo 7udp ..... ftp 21tcp telnet 23tcp smtp 25tcp mail time 37tcp timserver time 37udp timserver name 42udp nameserver whois 43tcp nicname usually to sri−nic domain 53udp domain 53tcp hostnames 101tcp hostname usually to sri−nic sunrpc 111udp sunrpc 111tcp Host specific functions tftp 69udp rje 77tcp finger 79tcp ..... pop−2 109tcp Post Office uucp−path 117tcp nntp 119tcp usenet Network News Transfer 349 ..... .....15.2 Address Resolution ARP
The designated IP address and the routing table are the cornerstones in forwarding a datagram to a specific physical network. However, when a datagram travels across a network, it must obey the physical layer protocols used by that network. The physical layer does not understand the IP addressing scheme; it only respects its own addressing and its own rules. To make everything operational, one of the basic tasks of the network access layer of the TCPIP stack is to map IP addresses into appropriate physical network addresses. The most common physical local network is the Ethernet network often used as a generic name for all CSMACD networks. The Ethernet network has its own addressing scheme, with Ethernet addresses to identify each Ethernet interface device connected to the network. An Ethernet address often specified as a MAC address; MAC stands for the media access control sublayer in the data link layer of the ISO OSI Reference Model should not be mistaken for an Internet IP address; these are two completely different addressing schemes. Six two−digit hexadecimal numbers separated by a colon : specify an Ethernet address. A unique Ethernet address is assigned to each Ethernet network interface, hardwired or firmwired during its manufacture. Consequently, the Ethernet address remains hidden from users and is outside of any administrative control. However, currently some vendors put Ethernet addressing under program control, also allowing local programming of physical Ethernet addresses. The protocol that performs IP address mapping to the physical Ethernet address is known as the address resolution protocol ARP, and it belongs to the network access layer. The ARP software maintains a table of IP addresses translated into Ethernet addresses. ARP itself builds the table dynamically and automatically. When ARP receives a request to translate an IP address, it first checks if the specified IP address is already in the table. If the IP address is found, ARP returns the corresponding Ethernet address to the requesting software. If the address is not found in the table, ARP broadcasts an Ethernet query to all hosts on the local Ethernet network, asking the host with the corresponding IP address to reply with its Ethernet address. Please note that the requested IP address must be a directly reachable IP address of the host, or a router on the local network otherwise data delivery is not possible. Note also that Ethernet addresses cannot go over the boundaries of the local network. Both the broadcasted Ethernet query and the requested IP address remain in the local network. Each host in the local network is familiar with its own IP and Ethernet addresses, and the queried host will respond with its Ethernet address. The received response is then cached in the ARP table. Even though the ARP table is dynamically updated, the static entries can be also created; there is a way to specify specific InternetEthernet 350Parts
» Unix Administration. 7485KB Mar 29 2010 05:04:17 AM
» UNIX Operating System UNIX — Introductory Notes
» Berkeley Standard Distribution — BSD UNIX System V or ATT UNIX
» System Administrators Job UNIX System and Network Administration
» Computing Policies UNIX System and Network Administration
» Legal Acts Administration Guidelines
» Code of Ethics Administration Guidelines
» USENIX System Administrators Guild — SAGE
» In This Book UNIX System and Network Administration
» Introduction The Unix Model — Selected Topics
» Access Classes File ProtectionFile Access
» Default File Mode File ProtectionFile Access
» Plain Regular File Socket Named Pipe
» Special File Names Special File Creation
» Process Types Process Attributes
» Process Life Cycles Processes
» System V ATT Flavored ps Command
» Destroying Processes The UNIX kill command will eliminate a process entirely:
» Becoming a Superuser Communicating with Other Users
» The man Command UNIX Online Documentation
» The uptime Command The uptime command displays:
» Personal Documentation UNIX Administration Starters
» Shell Script Execution UNIX Shell Scripts
» Shell Variables UNIX Shell Scripts
» Double Command−Line Scanning
» Introductory Notes System Startup and Shutdown
» The Bootstrap Program System Startup
» The Kernel Execution System Startup
» System States System Startup
» The Outlook of a Startup Procedure
» Initialization Scripts System Startup
» The BSD rc Scripts BSD Initialization Sequence
» BSD−Like Initialization System V Initialization
» An Example Shutdown Procedures
» Introduction to the UNIX Filesystem
» System V Filesystem Directory Organization
» Mounting a Filesystem home, users
» Dismounting a Filesystem home, users
» Automatic Filesystem Mounting Removable Media Management
» BSD Filesystem Configuration File
» Filesystem Types A Few Other Filesystem Issues
» Swap Space — Paging and Swapping
» Loopback Virtual Filesystem A Few Other Filesystem Issues
» Display Filesystem Statistics: The df Command
» Checking Filesystems: The fsck Command
» Introduction UNIX Filesystem Layout
» Disk Partitions Physical Filesystem Layout
» Filesystem Structures Physical Filesystem Layout
» The mkfs Command Filesystem Creation
» File Identification and Allocation
» File Storage vs. File Transfer
» Reserved Free Space Filesystem Performance Issues
» Logical Volume Manager — AIX Flavor
» Logical Volume Manager — Solaris Flavor
» Redundant Array of Inexpensive Disks RAID
» The Volume Snapshot Snapshot
» The Filesystem Snapshot Snapshot
» Virtual UNIX Filesystem Logical Filesystem Layout
» Disk Space Upgrade UNIX Filesystem Layout
» User Database — File etcpasswd
» Initialization Template Files UNIX Login Initialization
» User Login Initialization Files
» Systemwide Login Initialization Files
» Restricted User Accounts Users and Secondary Groups
» Assigning User Passwords Standard UNIX Users and Groups
» Managing Disk Usage by Users
» System V Accounting Accounting
» AIX−Flavored Accounting Accounting
» Physical Security Passwords UNIX Lines of Defense
» File Permissions UNIX Lines of Defense
» Backups Password Encryption UNIX Lines of Defense
» Setting Password Restrictions UNIX Lines of Defense
» The Wheel Group Secure Terminals — Other Approaches
» History of the Root Account Tracking User Activities
» The syslogd Daemon The Concept of System Logging
» The Configuration File etcsyslog.conf
» Linux Logging Enhancements The logger Command
» Testing System Logging System Logging Configuration
» The last Command Limiting the Growth of Log Files
» BSD Printing Subsystem UNIX Printing Subsystem
» The lp, lpstat, and cancel Commands
» The etcprintcap File BSD Printer Configuration and the Printer Capability Database
» Filters BSD Printer Configuration and the Printer Capability Database
» The Printer Database Directory Hierarchy on System V
» Setting a Remote Printer on HP−UX
» BSD and AIX Cross−Printing Solaris and BSD Cross−Printing
» Third−Party Printer Spooling Systems
» The tput Command The tset, tput, and stty Commands
» The stty Command The tset, tput, and stty Commands
» The tar Command Tape−Related Commands
» The cpio Command Tape−Related Commands
» The dd Command Tape−Related Commands
» The mt Command Magnetic Tape Devices and Special Device Files
» The SVR3 and SVR4 backup Commands
» The fbackup Command Backup and Dump Commands
» The dumpufsdump Command Backup and Dump Commands
» Interactive Restore The restore Commands
» The frecover Command Restoring Files from a Backup
» Tape Control UNIX Backup and Restore
» The NTP Daemon Network Time Distribution
» The crontab Files Network Time Distribution
» The crontab Command Network Time Distribution
» Linux Approach Network Time Distribution
» Programs Scheduled for a Specific Time
» UNIX and Networking Network Fundamentals
» TCPIP and the Internet ISO OSI Reference Model
» TCPIP Protocol Architecture Computer Networks
» Internet Protocol IP Internet Layer and IP Protocol
» Network Access Layer Transport Layer and TCP and UDP Protocols
» Application Layer TCPIP Layers and Protocols
» IP Address Classes Data Delivery
» Dynamic Routing Internet Routing
» Protocols, Ports, and Sockets
» UNIX Database Files Multiplexing
» The arp Command Address Resolution ARP
» The portmapper Daemon The etcrpc File
» The ifconfig Command Configuring the Network Interface
» The netstat Command Configuring the Network Interface
» The inetd Daemon Super Internet Server
» Further Improvements and Development
» Host Names and Addresses Domain Name Service DNS
» The Local Host Table — etchosts
» Handling the NIC Host Table — A Journey into the Past
» Other Resolver Parameters BIND Configuration
» Name Servers UNIX Name Service — BIND
» The Configuration File etcnamed.boot
» The named.local File The named.cache file
» Subdomains and Parenting BIND Version 8.X.X
» The nslookup Interactive Mode
» A Few Examples of nslookup Usage
» Purpose and Concepts Network Information Service NIS
» To Create an NIS Client NIS Domain Name
» The etcnetgroup File DatabasesNIS Maps
» Security Issues NIS Management
» The showmount Command Mounting Remote Filesystems
» An Example The Automount Maps
» The rlogin Command The rcp Command
» The HOME.rhosts File Using UNIX r−Commands — An Example
» SSH Configuration Secure Shell SSH
» Root Access SSH Installation and User Access Setup
» SSH — Version 2 Secure Shell SSH
» Simple Mail Transport Protocol SMTP
» Rewriting an E−mail Address Pattern Matching
» Address Transformation The Parsing of E−mail Addresses
» Testing Rewrite Rules The sendmail −bt Command
» The Debugging Level Checking the Mail Queue
» Mail Subcommands The Mail Program and .mailrc File
» POP Transactions Post Office Protocol POP
» Internet Message Access Protocol IMAP
» Finger Common UNIX Network Applications
» The ping Command Host Connectivity
» The traceroute Command Host Connectivity
» The X Administration Philosophy
» Window Managers An Introduction to the X Window System
» xdm Configuration Files The X Display Managers
» Vendor−Specific X Flavors — a Configuration Example
» XDMCP Queries The Xaccess File
» Other Access Control Mechanisms
» Components of the xdm−Based User X Environment
» Other Startup Methods The User X Environment
» A Permanent X11 Installation
» Introduction to Kernel Reconfiguration
» Kernel Configuration Database Kernel Reconfiguration
» The config Command BSD−Like Kernel Configuration Approach
» HP−UX 10.x Kernel Configuration
» UNIX and Modems Introduction to Modems
» Terminal Lines and Modem Control
» C−Kermit Third−Party Communication Software
» UUCP Versions UUCP Chat−Transfer Session
» The UUCP Daemons UUCP Commands, Daemons, and Related Issues
» The UUCP Spool Directories and Files
» Additional Security in BNU UUCP
» Additional Security in Version 2 UUCP
» Intranet vs. Internet Introduction to Intranet
» Intranet Design Approach Introduction to Intranet
» Life Cycle of a Virus Virus Types
» The Viruswall Implementation Viruswalls
» Application Proxies SOCKS Proxies
» Web Services Intranet Front−End Services
» Other External Services Intranet Front−End Services
» Network Infrastructure and Desktops
» Dynamic Host Configuration Protocol DHCP
» UNIX and Not−UNIX Platform Integration
» HP−UX Installation UNIX Installation Procedures
» Linux Installation UNIX Installation Procedures
» Solaris Patch Installation HP−UX Patch Installation
» Solaris and Lost Root Password HP−UX and Lost Root Password
» Solaris Procedure to Create an Alternate Boot Partition
» Solaris Recovery of the Failed Mirrored Boot Disk
Show more