Www.ischool.drexel.edu INFO 320 Server Technology I Week 6 Networking 1INFO 320 week 6.

Slides:



Advertisements
Similar presentations
Addressing the Network IPv4
Advertisements

Cs/ee 143 Communication Networks Chapter 6 Internetworking Text: Walrand & Parekh, 2010 Steven Low CMS, EE, Caltech.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
IST 201 Chapter 9. TCP/IP Model Application Transport Internet Network Access.
SYSTEM ADMINISTRATION Chapter 19
Operating Systems Concepts 1/e Ruth Watson Chapter 11 Chapter 11 Network Maintenance Ruth Watson.
Chapter 13: Troubleshooting network connectivity Unit objectives Identify TCP/IP troubleshooting tools Discuss the Telnet utility and its functions Discuss.
Linux Networking TCP/IP stack kernel controls the TCP/IP protocol Ethernet adapter is hooked to the kernel in with the ipconfig command ifconfig sets the.
Chapter Extension 7 How the Internet Works © 2008 Prentice Hall, Experiencing MIS, David Kroenke.
Subnetting.
1 Version 3.0 Module 9 TCP/IP Protocol and IP Addressing.
Common network diagnostic and configuration utilities A ‘toolkit’ for network users and managers when ‘troubleshooting’ is needed on your network.
Defining Network Protocols Application Protocols –Application Layer –Presentation Layer –Session Layer Transport Protocols –Transport Layer Network Protocols.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Click to edit Master subtitle style Chapter 17: Troubleshooting Tools Instructor:
Linux Networking Commands
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
Chapter 12: Configuring Networks The Complete Guide to Linux System Administration.
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
Networking CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
TCP/IP Networking sections 13.2,3,4,5 Road map: TCP, provide connection-oriented service IP, route data packets from one machine to another (RFC 791) ICMP,
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
1 UNIX Networking. 2 Section Overview TCP/IP Basics TCP/IP Configuration TCP/IP Network Testing Dynamic Host Config Protocol (DHCP) Wireless Networking.
Networking Feb. 6, 2008 by Larry Finger. Networking Hardware Glossary RJ45 – Official name for 8-pin connector Cat 5, 5E or 6 - Cable suitable for “high”-speed.
Managing Network connections. Network Cabling Ethernet Topology Bus topology – Connects each node in a line – Has no central connection point Star topology.
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
Cybersecurity Computer Science Innovations, LLC. Fingerprinting So, we have a file at the top level of a Web site. It is called robots.txt It specifies.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
ITS CSS Desktop Support Introduction to networking concepts Last updated: 9/30/2008 by pxahelp.
DNS (Domain Name System) Protocol On the Internet, the DNS associates various sorts of information with domain names. A domain name is a meaningful and.
1 Linux Basics for Networking. 2 Module - Linux Basics for Networking ♦ Overview This module focuses on the basics of networking using Redhat Enterprise.
Examining TCP/IP.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Copyright © Lopamudra Roychoudhuri
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 2: TCP/IP Architecture.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
Connecting to a Network Lesson 5. Objectives Understand the OSI Reference Model and its relationship to Windows 7 networking Install and configure networking.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 2: Configuring Network Protocols.
Windows routing and resolution. Basic concepts  Host name: machine.sub-domain.domain example: mail.ubalt.edu same machine name in Windows in NetBIOS.
Day 14 Introduction to Networking. Unix Networking Unix is very frequently used as a server. –Server is a machine which “serves” some function Web Server.
1 TCP/IP Networking. 2 TCP/IP TCP/IP is the networking protocol suite most commonly used with UNIX, Windows, NT and most other OS’s. TCP/IP defines a.
1 COP 4343 Unix System Administration Unit 11: Networking – basic concepts: IP, TCP, UDP, DHCP – devices: setup, status.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
Linux Networking #1 Dr. Michael L. Collard 1.
1 TCP/IP Networking Yue Cui 06/13/02. 2 Presentation Outline Introduction Packets and Encapsulation IP Addresses, Routing ARP, DHCP and PPP Security Issue.
TCP/IP (Transmission Control Protocol / Internet Protocol)
How to connect to the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
Monitoring Troubleshooting TCP/IP Chapter 3. Objectives for this Chapter Troubleshoot TCP/IP addressing Diagnose and resolve issues related to incorrect.
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
Unit 2 - Hardware Networking. What is a network? A computer network is essentially a connection between two or more computers. This connection can be.
Linux Operations and Administration Chapter Eight Network Communications.
Chapter 5. An IP address is simply a series of binary bits (ones and zeros). How many binary bits are used? 32.
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
ITMT Windows 7 Configuration Chapter 5 – Connecting to a Network ITMT 1371 – Windows 7 Configuration 1.
Windows Vista Configuration MCTS : Advanced Networking.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
Wireless Access Point. What is a WAP?  A Wireless access point (WAP) is a device that allows a wireless device to connect to a wired network.
LINUX Network Concepts M.S.Dibay Moghaddam Second Linux Festival Amir Kabir University of Technology Computer & IT Department.
Domain Resolution Configuration Files: File: /etc/resolv.conf - host name resolver configuration file search name-of-domain.com - Name of your domain or.
Home Networking CCCC Linux Desktop SIG August 20, 2007.
Chapter 12: Configuring Networks
LESSON Networking Fundamentals Understand TCP/IP.
Click to edit Master subtitle style
Network Configuration
LINUX ADMINISTRATION
Troubleshooting IP Communications
Introduction to Networking
Lecture 6: TCP/IP Networking By: Adal Alashban
Lecture 6: TCP/IP Networking 1nd semester By: Adal ALashban.
Module 12 Network Configuration
Presentation transcript:

INFO 320 Server Technology I Week 6 Networking 1INFO 320 week 6

Overview Now we’ll focus on basic networking concepts for servers, and see how they’re implemented in Ubuntu –Networking overview –Interface configuration –Other networking files –Networking programs 2INFO 320 week 6

Networking overview 3INFO 320 week 6

Why network? Why do we need a network? Networking is a big problem –To solve it, make little problems out of it –That’s why networking is broken into layers, each of which has a designated job –The message an app wants to send is broken into packets and sent across the network 4INFO 320 week 6

Networking layers Each layer –Has a specific job to do –Has protocols associated with it –Looks at a certain kind of address See networking summary under INFO 330networking summary 5INFO 320 week 6

Networking layers The layers of networking spell out ‘All Turtles Need Less Protection’ * –Application –Transport –Network –Link –Physical * I apologize for this dreadful mnemonic – let me know if you think of a better one! 6INFO 320 week 6

Networking protocols TCP and UDP are the transport layer protocols –TCP provides polite reliable delivery, UDP is fast and dumb IP (Internet Protocol, v4 or v6) defines the host addresses –Other network layer protocols define how packets are routed to get to their destination 7INFO 320 week 6

Addresses As noted, there are three kinds of networking addresses –The transport layer uses the port number of the receiving process –The network layer uses the IP address of the receiving host (computer) Usually this is the only one we care about –The link layer uses the MAC address of the receiving adapter (e.g. Ethernet interface) 8INFO 320 week 6

Addresses Notice that IP and MAC addresses belong to interfaces; each network interface has a fixed MAC address, and is assigned an IP address –Older computers typically only had one interface (e.g. Ethernet) and therefore one IP and one MAC address –Now your computer or router might have both wired and wireless interfaces 9INFO 320 week 6

Domain and host names Read names backward –The last part is the Top Level Domain (TLD) (edu, com, gov, uk, etc.) –The next to last part with the TLD makes the domain name (drexel.edu) –The full address of the computer is the host name ( 10INFO 320 week 6

Networking and client/server Most protocols use the client/server model –A client process asks a server process for information –The server process usually provides it Notice this is a different kind of “client/ server” from the hardware architecture –Any computer can have client and/or server processes running on it 11INFO 320 week 6

Networking apps Key Internet apps include DNS, ARP, DHCP, and NAT DNS (Domain Name Service) converts hostnames ( to IP addresses; also looks up servers –A Berkeley Internet Name Domain (BIND) server implements DNS 12INFO 320 week 6

Networking apps –A BIND server is also called a nameserver or DNS server –The command nslookup finds DNS information for a domain name nslookup ubuntu.com ARP (Address Resolution Protocol) translates MAC addresses to IP addresses 13INFO 320 week 6

Networking apps DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses to computers within a network –If you don’t use this, you have to assign IP addresses manually for each interface NAT (Network Address Translation) allows a network to use local IP addresses that aren’t visible to the outside world 14INFO 320 week 6

Interface configuration 15INFO 320 week 6

Borrowing from Debian Ubuntu borrows from its Debian heritage in terms of network configuration The primary network configuration file is /etc/network/interfaces –It contains network configuration information for all devices on the system The script /etc/init.d/networking reads /etc/network/interfaces 16INFO 320 week 6

/etc/network/interfaces The details of this file are messy – see man 5 interfaces man 5 interfaces –It contains network interface configuration information for the ifup(8) and ifdown(8) commandsifup(8)ifdown(8) –Within this file, comments must start at the beginning of the line with a # –The file consists of zero or more "iface", "mapping", "auto" and "allow-" stanzas 17INFO 320 week 6

Loopback interface First let’s allow us to talk to ourselves – the loopback interface –When we want to talk to our own system across the network, the loopback interface prevents us from actually leaving the computer –It’s given a reserved IP address (?) 18INFO 320 week 6

Loopback interface The loopback is automatically configured, typically with these ‘stanzas’ in the interface file –auto lo –iface lo inet loopback 19INFO 320 week 6

Loopback interface Notice everything’s lower case –lo = name of loopback interface –‘ auto ’ has it brought up automatically on boot –The ‘ iface ’ stanza defines the interface and creates its settings, here to be a loopback ‘Stanzas defining logical interfaces start with a line consisting of the word " iface " followed by the name of the logical interface’ (from the man page) 20INFO 320 week 6

inet ? Normal TCP/IPv4 networking uses ‘ inet ’ as the protocol type –If you’re using IPv6, use ‘ inet6 ’ instead –Other options exist, such as ‘ ipx ’ for Novell NetWare If this were 1995, that last reference would make sense to you 21INFO 320 week 6

Ethernet interfaces Ok, let’s try something more interesting How about an Ethernet interface? –Ethernet interfaces are typically given names starting with ‘eth’, e.g. eth0, eth1 If we’re configuring it with DHCP our life is easy –auto eth0 –iface eth0 inet dhcp 22INFO 320 week 6

Static Ethernet interfaces In contrast, if we want to set up our interfaces manually, we make them static (as in static routing) –iface eth0 inet static – address – netmask – gateway INFO 320 week 6

Gateway address The gateway address is a key concept –It identifies the device you need to contact to get to the rest of the world –It’s also called your first-hop router 24INFO 320 week 6

allow- stanzas ‘Lines beginning with "allow-" are used to identify interfaces that should be brought up automatically by various subsytems’ –allow-hotplug eth1 Goes with –ifup --allow=hotplug eth0 eth1 –Which will only bring up eth0 or eth1 if it is listed in an "allow-hotplug" line 25INFO 320 week 6

Mapping ‘Stanzas beginning with the word "mapping" are used to determine how a logical interface name is chosen for a physical interface that is to be brought up’ Mapping defines scripts that decide how an interface is to be configured 26INFO 320 week 6

Mapping example mapping eth0 script /usr/local/sbin/map-scheme map HOME eth0-home map WORK eth0-work iface eth0-home inet static address netmask iface eth0-work inet dhcp 27INFO 320 week 6

ifup and ifdownifup and ifdown? ifup - bring a network interface up ifdown - take a network interface down These commands do just that – take interfaces up (running) or down –ifup eth0=home –Means ‘Bring up interface eth0 as logical interface home ’ Can use on the command line too 28INFO 320 week 6

ifup and ifdown? Other examples are simpler; bring up eth0 with –ifup eth0 Or shut down all interfaces with –ifdown -a –How could this command be used to produce a DoS attack? 29INFO 320 week 6

Wireless networking There are wireless options that can be included in the interface config file See the wireless man page for gory detailswireless For example, they can specify the SSID and type of networking mode –wireless- –wireless-essid Home –wireless-mode Ad-Hoc 30INFO 320 week 6

Restart to apply changes If you change /etc/network/interfaces, restart networking to make the changes active –sudo /etc/init.d/networking restart 31INFO 320 week 6

Other networking files 32INFO 320 week 6

Other networking files A few more files are important to networking, including –/etc/resolv.conf –/etc/hosts –/etc/services –/etc/protocols 33INFO 320 week 6

/etc/resolv.conf This text file is the place where your DNS servers are identified When you get an account with an ISP, you get two DNS server IP addresses This file lists them –nameserver –nameserver DHCP will set this file for you 34INFO 320 week 6

/etc/resolv.conf Here you can also specify the local domain name –domain drexel.edu This is appended when you try to go to a local server ‘ myserver ’ it fills out the full host name myserver.drexel.edu 35INFO 320 week 6

/etc/hosts This file was used to list all the hosts on the Internet (!) –IP_address hostname [aliases...] DNS made that purpose obsolete (yay!!!) Now it just defines localhost and loopback addresses, but it precedes DNS –Your system will consult this file before DNS! (See /etc/host.conf to prove it) 36INFO 320 week 6

/etc/hosts Most systems have a small host table containing the name and address information for important hosts on the local network This is useful when DNS is not running, for example during system bootup 37INFO 320 week 6

/etc/hosts example localhost foo.mydomain.org foo bar.mydomain.org bar master.debian.org master Notice that three of these lines include aliases 38INFO 320 week 6

/etc/services /etc/services lists the network services available on your system (e.g. HTTP, FTP, Telnet, etc.), and the port numbers they use In contrast, /etc/protocols lists the TCP/IP protocols supported by your system, and gives a description of each 39INFO 320 week 6

Networking programs 40INFO 320 week 6

Networking programs We’ll look at a few networking applications –dmesg –ifconfig –netstat –route –ping, finger, who, host, traceroute –wireshark, tcpdump, EtherApe, nagios3 41INFO 320 week 6

dmesg A lesser known command is dmesgdmesg The program helps users to print out their bootup messages –A handy diagnostic tool in case something breaks during boot So what does this do? –dmesg > boot.messages 42INFO 320 week 6

ifconfig ifconfig can be used to configure network interfaces, but is being replaced by ifup and ifdownifconfig By itself as a command, it gives the status and data about all interfaces or a specific interface –ifconfig –ifconfig eth0 43INFO 320 week 6

ifconfig It can set the IP address of an interface –ifconfig eth Or bring up an interface –ifconfig eth0 up It’s vaguely similar to the Windows command ipconfig (notice the spelling difference!) 44INFO 320 week 6

netstat netstat is a very powerful command, with zillions of options to get network status for interfaces, protocols, routes, groups, etc.netstat For example, netstat –rn gives the routing table (-r) with numeric output of IP addresses (-n) The actual routing table is in the file /proc/net/route 45INFO 320 week 6

route The route command gives the routing table, or can add or delete entries from it For a given range of IP addresses, a routing table tells which interface a packet needs to use to get there –So the first and last columns are most important here – for a given ‘Destination’, I should ‘Use Iface’ eth0, for example 46INFO 320 week 6

Routing table For example, ifconfig and route can be used to define a new Ethernet card, and add it to the routing table –ifconfig eth –route add dev eth1 47INFO 320 week 6

Other networking apps ping tells you if a host is connected to the network finger tells what users are online who and w tell what users are on the local network host gives info about a domain traceroute gives the path to a host 48INFO 320 week 6

Packet capture apps Many tools exist to capture packets on the network, and analyze them including –wireshark –tcpdump –EtherApe netstat and nagios3 do network monitoring as well 49INFO 320 week 6

References Most of the hyperlinks in this set of notes are to the corresponding man pages for Ubuntu 9.04 Networking Summary, dated October 21, 2009 Glenn BookerNetworking Summary The rest of the information is mostly from (Rankin, 2009) and (Petersen,2009) 50INFO 320 week 6