Lab 3- Networking

 

  1. Network Hardware
    1. Network interface card
    2. Cabling
    3. Hub
  2. TCP/IP Configuration
    1. Generic UNIX

                                                               i.      /etc/services – all TCP/IP port numbers this machine will listen on

                                                             ii.      /etc/inetd.conf – list which programs answer on each TCP/IP port

                                                            iii.      /etc/hosts – list all hosts explicitly known by this host

                                                            iv.      /etc/resolv.conf – list which name servers are used to resolve unknown hostnames

                                                              v.      /etc/protocols – lists TCP/IP protocols by protocol number

                                                            vi.      /etc/inittab – list each startup option for the init process

                                                           vii.      /etc/rc3.d – lists which daemons to run or kill for a run level

    1. Sun (Solaris) Specific

                                                               i.      /etc/hostname.hme0 – lists the name this machines hme0 interface

                                                             ii.      /etc/nodename – lists the well-known-name for this machine

                                                            iii.      /etc/defaultrouter – list the first gateway (router) used for IP not in this subnet

  1. TCP/IP Communications
    1. Interface

                                                               i.      netstat –i – shows the network status of each interface in the machine

                                                             ii.      netstat –in – shows the network status of each interface in the machine by IP number

                                                            iii.      ifconfig hme0 – shows the configuration of the interface hme0

                                                            iv.      netstat –r – shows the routing information for this machine

                                                              v.      netstat –rn – shows the routing information for this machine by IP number

    1. Connectivity

                                                               i.      ping <hostname> - determines if the remote hostname can be reached on the network and how long it takes to get there

                                                             ii.      ping –s <hostname> - continually “ “ “ “ “ “ “ “ “ “ “

                                                            iii.      traceroute <hostname> - shows each router hop from your host to hostname

    1. Information

                                                               i.      hostname – shows the well-known-name for this machine

                                                             ii.      who –r – shows the machines boot time and current run level

                                                            iii.      nslookup <hostname> - shows the IP address for hostname

                                                            iv.      nslookup <ip-address> - shows the hostname for ip-address

                                                              v.      nslookup <hostname> <server> - shows the IPaddress for hostname according to server

                                                            vi.      whois <domain.name> - shows the InterNIC information listed for domain.name

                                                           vii.      whois –h <server> <domain.name> - shows the InterNIC information according to server

                                                         viii.      finger user@host - shows user information on host