The arp Command Address Resolution ARP
15.2.1 The arp Command
The arp command displays and controls the contents of the IP−to−Ethernet address translation table used by the ARP protocol. Several forms of the command are available: arp [−d] hostname arp −s hostname ethaddr [temp] [pub] [trail] arp −a arp −f filename where with no options, arp displays the current ARP entry for hostname. The options are: −a Display all of the current ARP entries by reading the table from the kernel. −d Delete an entry for hostname. −s Create an ARP entry for hostname with the Ethernet address ethaddr. The entry will be permanent unless the temp option is given in the command. If the pub option is given, the entry will be published; for instance, this system will respond to ARP requests for hostname even though the hostname is not its own. The trail option indicates that trailer encapsulations may be sent to this host. −f Read the file named filename and set multiple entries in the ARP table; entries in the file should be of the form: hostname ethaddr [temp] [pub] [trail] with the argument meanings as given above, under the −s option. Here are two examples: arp −a SunOSSolaris hcprophet 146.95.1.2 at 8:0:20:0:9b:4d rs01−ch 146.95.1.21 at 2:60:8c:2f:48:db ? 146.95.6.73 at 0:0:89:0:3e:4 bjl.ph.hunter.cuny.edu 146.95.8.11 at 0:0:1d:a:e5:6c pegasus.hunter.cuny.edu 146.95.1.12 at 8:0:20:1f:39:46 denboer.ph.hunter.cuny.edu 146.95.8.12 at 0:0:1d:b:53:e2 default 146.95.1.15 at 0:0:0:0:8b:8b indigo1.ch 146.95.6.15 at 8:0:69:6:b4:84 arp −a HP−UX levi.ph.hunter.cuny.edu 146.95.8.11 at 0:0:1d:a:e5:6c ether pegasus.hunter.cuny.edu 146.95.1.12 at 8:0:20:1f:39:46 ether denboer.ph.hunter.cuny.edu 146.95.8.12 at 0:0:1d:b:53:e2 ether hcgate1.hunter.cuny.edu 146.95.1.15 at 0:0:0:0:8b:8b ether physpc1.ph.hunter.cuny.edu 146.95.8.28 at 0:0:1d:b:45:6a ether 351 Remote Procedure Call RPC provides a mechanism for a host to make a procedure call that appears to be a part of the local process, while it is really executed on another, remote host in the network. The net effect is the impression that everything is executing strictly locally, although the requested resources are far apart and can be reached only through the network. Typically, the host on which the procedure call is executed has resources that are not available on the calling host. This distribution of computing services imposes a clientserver relationship on the two hosts: the host owning the resource is a server for that resource, and the calling host becomes a client that needs access to the resource. Procedure is a relatively closed program entity used in C programming, with well−defined input and output. It is very common to call a procedure from some other program to complete a certain task. Originally the calls were placed locally, and we used the term local procedure calls to identify them. Networking introduced a new distributed environment that offered to extend existing local applications over several remote hosts. The procedure was a logical choice for such an extension. By replacing the local procedure call with an equivalent remote procedure call, the rest of the application could remain more or less unchanged and still operational. Sun Microsystems recognized this idea, and the remote procedure call RPC became a standard used in networking; sometimes it is even referred to as Sun RPC. Figure 15.4 illustrates the difference between local and remote procedure calling. 352 RPC services may be built on either TCP or UDP transport protocols, although most are UDP−oriented. The reason is because RPC services are mostly centered on short−lived requests. Using UDP forces the RPC to contain enough context information for its execution, independent of any other RPC request, since UDP packets may arrive in any order, if at all. The client may also specify a time−out period in which the remote call must be completed. Various actions can be taken if a server does not reply in the predefined time interval; the action taken depends on the application itself. Once the concept of RCP is clear, the next logical question is: When should RCP be implemented? Does each network−based application rely on RPC, and what is a benefit of using an RPC? The following statement could help to explain these matters. A number of new network applications were created once networking become widely implemented; these applications were designed from scratch, respecting all network restrictions, specifications, and standards. These applications were run only in the distributed network environment. On another side, a number of existing local applications had to be extended and adapted to the new distributed environment. These applications were designed in a different way, they were locally oriented, and sometimes came from different host platforms; however, they had something in common: they were and are using local procedure calls in interprocess communications. The easiest way to extend them to the distributed environment and to keep full compatibility with the local environment has been to make procedures to circumvent the problem — to provide an appropriate program interface to adapt local applications to the network environment, and to keep local program characteristics intact. Thus the remote procedure call RCP was born. RPC services are usually connectionless UDP−oriented services, because RPC requests do not require the creation of a long−lived network connection between the client and the server. The client communicates with the server sends its request and receives a reply in a connectionless fashion. However, RPC can also run over TCP, in a connection−oriented fashion. The TCP protocol may be used with RPC services whenever a large amount of data needs to be transferred for example, NIS uses UDP, but it switches to TCP whenever it needs to transfer entire database to remote hosts. RPC servers are generally started during system booting and run as long as the system is up. An efficient RPC operation cannot tolerate the time overhead caused by the start of a new server process when such a service is required. As a result, RPC servers are single−treated, i.e., there is one server process for the RPC service, and it executes remote requests from the client one at a time. To achieve better performance, two or more copies of the same RPC server may be started during the system startup, but each server still handles only one request at a time. There may be many clients of the RPC server, but their requests wait in the RPC server queue and are processed in the order in which they are received. 35315.3.1 The portmapper Daemon
Parts
» 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