1 / 68

Network Configuration

Network Configuration. Unit objectives Understand networks, the TCP/IP protocol, classes, and subnets, and configure an interface Use PPP to send TCP/IP over modem, ISDN, and DSL interfaces Understand name resolution and DNS

thuong
Download Presentation

Network Configuration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Network Configuration Unit objectives • Understand networks, the TCP/IP protocol, classes, and subnets, and configure an interface • Use PPP to send TCP/IP over modem, ISDN, and DSL interfaces • Understand name resolution and DNS • Use network services to share files, use applications, and read e-mail • Configure network services and provide routing and firewall services

  2. Topic A: Networks and TCP/IP

  3. Networks and Protocols • Wired media • Wireless media • LANS • WANS • VPNS • ISP

  4. The TCP/IP protocol • Internet Protocol (IP) address • Four 8-bit numbers (octets) • Identifies a computer on the network • Two parts: network and host • Subnet mask • Determines the network and host portions of an IP address

  5. TCP/IP addresses

  6. Default gateway • Address of the router that sends packets to other networks

  7. TCP/IP classes • Class A • 1st octet: 1 – 127 • Subnet mask: 255.0.0.0 • 127 networks, 16,777,214 hosts • Class B • 1st octet: 128 – 191 • Subnet mask: 255.255.0.0 • 16,284 networks, 65,534 hosts • Class C • 1st octet: 192 – 223 • Subnet mask: 255.255.255.0 • 2,097,152 networks, 254 hosts continued

  8. TCP/IP classes, continued • Class D • 1st octet: 224 – 239 • Used for multicasting • Can’t be assigned to interfaces as IP addresses • Class E • 1st octet: 240 – 254 • Experimental • Not typically assigned to a computers

  9. Subnets • Subdivide networks into smaller sections • Control traffic flow • Improve manageability • Applied to class A, B, and C networks

  10. Configuring a NIC interface • ifconfig command • Assigns TCP/IP configuration to a NIC • Eth0 IP netmask subnet broadcast address • Displays configuration of all network interfaces • ifup and ifdown

  11. Dynamic Host Configuration Protocol (DHCP) • Provides TCP/IP configuration values to hosts • dhclient command • Requests information from DHCP server

  12. packet internet groper (ping) • Checks connectivity to other computers • Checks interfaces for proper configuration

  13. Configuring network hardware

  14. Configuring a network device

  15. Topic B: Configuring a PPP interface

  16. Point to Point Protocol (PPP) • Runs TCP/IP over serial lines • Used by three common technologies • Modems • /dev/modem points to /dev/ttyS0 • ISDN • kudzu • DSL • Through NIC

  17. Configuring a new PPP device

  18. Configuring a modem device

  19. Configuring an ISDN adaptor

  20. Activating a device

  21. Topic C: Name resolution

  22. Name resolution • Host name • Name assigned to a computer • Uses plain language • Fully Qualified Domain Name (FQDN) • Host name that follows DNS convention • Domain Name Space (DNS) server • Resolves FQDNs to IP address

  23. The Domain Name Space

  24. Host Names • host name command • Set a hostname for a session • /etc/hosts file • Keeps a static list of names to IPs

  25. Using DNS • Centralized naming list or a company • DNS Servers • List FQDNs of host on their networks • Refers requests to other DNS servers • /etc/resolve.conf • Use nslookup to test connection • Name Lookup order • /etc/nssswitch.conf, /etc/hosts.conf

  26. Topic D: Using network resources

  27. Web browser FTP client

  28. Common FTP commands

  29. Common FTP commands

  30. Network File System (NFS) • Method for transferring files between UNIX and Linux systems • Not as common as FTP • To access files using NFS: • Use a remote computer that has the NFS daemons started • Mount a directory from remote machine to a local directory

  31. Network File System (NFS) • mount –t nfs nfs.sampledomain.com:/var/mnt

  32. Accessing windows files • mount –t smbfs //windowsxp/accoutning /mnt • smbmount command • Same as mount –t smbfs • smbclient utility • Connects to shared resources on a Windows system

  33. Running remote applications • telnet command • Obtains a BASH shell from a remote computer

  34. Secure access methods • Secure Shell (ssh) utility • Encrypts communication between server and host • rlogin • One of several utilities • Allows access without passwords • Uses trusted access

  35. Transferring e-mail • Downloaded via two protocols • Post Office Protocol (POP) • Downloads the messages from the server to the computer • Interactive Mail Access Protocol (IMAP) • Stores the messages on the server and displays them across the network

  36. Accessing e-mail • Mail User Agent (MUA) • Allows you to read, right, and send e-mail • Many different methods • Both standalone program and part of larger program

  37. The mutt interface

  38. Topic E: Configuring network resources

  39. Common network services • /etc/services file • Lists ports that daemons listen on • Port • Number that identifies a network service • 65535 possible ports • Well known port • used by common networking services • 0 to 1024

  40. Internet Super Daemon (xinetd) • Initializes and configures many network services

  41. Xinetd • Manages connections for smaller daemons • /etc/xinetd.conf • /etc/xinted.d • Older systems use inted

  42. Standalone daemons • Normally started at bootup • Configure themselves without assistance from the Internet Super Daemon • The ntsysv utility • Configures most standalone daemons to start in various run levels • Long config files • Log to own directory

  43. DNS forward lookup

  44. DHCP server configuration • /etc/dhcpd.conf • Lists IP range for the network • Address lease durations • Other configuration options

  45. Apache configuration • /var/www/html • Default document root directory • /etc/httpd/conf/httpd.conf • Contains nearly all Apache configuration options • Each line called a directive

  46. Using Samba • Shares files with Windows computers • Need to create windows user accounts • Add samba passwords with smbpasswd –a username • Emulates the SMB protocol • Main configuration file: • /etc/samba/smb.conf

  47. FTP services • wu-ftpd • Controlled by Internet Super Daemon • Configuration file for wu-ftpd: • /etc/xinetd.d/wu-ftpd • vsftpd • Standalone daemon • Easier to configure • Included with Fedora Core 2

  48. Network Information Service (NIS) • Coordinates common configuration files • /etc/passwd • /etc/shadow • /etc/hosts • Configuration files: • /etc/sysconfig/network • /var/yp/Makefile • /var/yp/securenets • /etc/ypserv.conf

  49. NIS Commands • ypcat - Prints the values in NIS map • ypmatch - Prints values for specified keys in NIS map • ypwhich - Finds out what server the current host is using • ypclnt - Programmer's suite that provides an interface to the YP subsystem • yppasswd - Changes the password for NIS domain • ypset - Makes ypbind connect to a particular server • ypmake - Builds a new hash map from those files that have changed • ypinit - Configures a host as master or slave server • yppush - Makes slave servers update their versions of map

More Related