Mr. Mturi Elias University Computing Centre SYSTEMS ADMIN TRAINING WORKSHOP.

Slides:



Advertisements
Similar presentations
Wireless Networking. Wireless Standards a b g n.
Advertisements

Computer Networks21-1 Chapter 21. Network Layer: Address Mapping, Error Reporting, and Multicasting 21.1 Address Mapping 21.2 ICMP 21.3 IGMP 21.4 ICMPv6.
CCNA2 Module 4. Discovering and Connecting to Neighbors Enable and disable CDP Use the show cdp neighbors command Determine which neighboring devices.
1 Semester 2 Module 4 Learning about Other Devices Yuda college of business James Chen
SYSTEM ADMINISTRATION Chapter 19
Ch. 9 – Basic Router Troubleshooting CCNA 2 version 3.0.
11 TROUBLESHOOTING Chapter 12. Chapter 12: TROUBLESHOOTING2 OVERVIEW  Determine whether a network communications problem is related to TCP/IP.  Understand.
Tcpdump Traceroute Ping. A packet tracing tool  Works on various host platforms  Captures packets going through a certain network interface  Shows.
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 13: Troubleshoot TCP/IP.
Internet Control Message Protocol (ICMP)
Network Debugging Organizational Communications and Technologies Prithvi Rao H. John Heinz III School of Public Policy and Management Carnegie Mellon University.
1 CCNA 2 v3.1 Module 8. 2 TCP/IP Suite Error and Control Messages CCNA 2 Module 8.
WXES2106 Network Technology Semester /2005 Chapter 7 TCP/IP Suite Error and Control Messages CCNA2: Module 8, 9.
Practical Networking. Introduction  Interfaces, network connections  Netstat tool  Tcpdump: Popular network debugging tool  Used to intercept and.
Linux Networking Sirak Kaewjamnong. 2 Configuration NIC IP address  NIC: Network Interface Card  Use “ipconfig” command to determine IP address, interface.
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.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
1 Version 3.1 Module 4 Learning About Other Devices.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Troubleshooting Your Network Networking for Home and Small Businesses.
58 Troubleshooting Network Connectivity Version A.01 H3065S Module 6 Slides.
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.
Network Administration
Module 7: Configuring TCP/IP Addressing and Name Resolution.
Hands-on Networking Fundamentals
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Troubleshooting Your Network Networking for Home and Small Businesses.
Internet Control Message Protocol (ICMP)
Managing Network connections. Network Cabling Ethernet Topology Bus topology – Connects each node in a line – Has no central connection point Star topology.
1 ECE453 – Introduction to Computer Networks Lecture 12 – Network Layer (IV)
Troubleshooting. Why Troubleshoot? What Can Go Wrong? –Misconfigured zone –Misconfigured server –Misconfigured host –Misconfigured network.
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
ITS CSS Desktop Support Introduction to networking concepts Last updated: 9/30/2008 by pxahelp.
Network Tools TCP/IP interface configuration query - MAC (HW) address and IP address – Linux - /sbin/ifconfig – MS Windows – ipconfig/all 1.
Objectives Configure routing in Windows Server 2008 Configure Routing and Remote Access Services in Windows Server 2008 Network Address Translation 1.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
POSTECH DP&NM Lab. Internet Traffic Monitoring and Analysis: Methods and Applications (1) 4. Active Monitoring Techniques.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
Connecting to a Network Lesson 5. Objectives Understand the OSI Reference Model and its relationship to Windows 7 networking Install and configure networking.
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.
© Jörg Liebeherr (modified by M. Veeraraghavan) 1 ICMP: A helper protocol to IP The Internet Control Message Protocol (ICMP) is the protocol used for error.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
© 2010 Cisco Systems, Inc. All rights reserved. 1 CREATE Re-Tooling Exploring Protocols with Wireshark March 12, 2011 CREATE CATC and Ohlone College.
CCNA 2 Week 9 Router Troubleshooting. Copyright © 2005 University of Bolton Topics Routing Table Overview Network Testing Troubleshooting Router Issues.
IP network tools & troubleshooting AFCHIX 2010 Nairobi, Kenya October 2010.
9: Troubleshooting Your Network
Sniffer, tcpdump, Ethereal, ntop
NetTech Solutions Common Connectivity Problems Lesson Eight.
Linux Operations and Administration Chapter Eight Network Communications.
Lab 1, Basic Linux and Networking Commands Shiv Kalyanaraman Yong Xia (former TA) Google:
ERICSON BRANDON M. BASCUG Alternate - REGIONAL NETWORK ADMINISTRATOR HOW TO TROUBLESHOOT TCP/IP CONNECTIVITY.
LSNDI RMRA 1 Design and troubleshooting M Clements.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.0 Module 9 Basic Router Troubleshooting.
Troubleshooting. Why Troubleshoot? What Can Go Wrong? –Misconfigured zone –Misconfigured server –Misconfigured host –Misconfigured network.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
Click to edit Master subtitle style
Troubleshooting a Network
CompTIA Network+ N Authorized Cert Guide
Network Commands 2 Linux Ubuntu A.S.
Network Tools and Utilities
Instructor Materials Chapter 9: Testing and Troubleshooting
Introduction to Networking
Chapter 2: Static Routing
IP network tools & troubleshooting
Introduction to Networking
Chapter 2: Static Routing
ITL Simple Diagnostic Tools
Troubleshooting ip Chapter 5e.
Presentation transcript:

Mr. Mturi Elias University Computing Centre SYSTEMS ADMIN TRAINING WORKSHOP

Mr. Mturi Elias Overview Introduction Doing Basic Cable and Link Tests Testing Your NIC Testing Network Connectivity Detecting Network Congestion Packet Capturing Basic DNS Troubleshooting

Mr. Mturi Elias Introduction Two Network related problems  Network Slowness  Lack of Connectivity Sources of Network Slowness  NIC duplex and speed incompatibilities  Network congestion  Poor routing  Bad cabling  Electrical interference

Mr. Mturi Elias Introduction Sources of Network Slowness  An overloaded server at the remote end of the connection  Misconfigured DNS. Sources of a Lack of Connectivity The cables are bad. The switch or router to which the server is connected is powered down. The cables aren't plugged in properly.  The remote server or an application on the remote server being shut down.

Mr. Mturi Elias Doing Basic Cable and Link Tests NIC’s “link” light is on: indicates the link is functioning properly. In most cases a lack of link is due to the wrong cable type being used. There are two types of Ethernet cables crossover and straight-through. Always make sure you are using the correct type.

Mr. Mturi Elias Testing Your NIC Viewing Your Activated Interfaces  root]# ifconfig Viewing All Interfaces  The ifconfig -a command provides all the network interfaces, whether they are functional or not. Testing Link Status from the Command Line.  Both the mii-tool and ethtool commands command will provide reports on the link status and duplex settings for supported NIC

Mr. Mturi Elias Testing Your NIC (2) Testing Link Status from the Command Line.  Link Status Output from mii-tool root]# mii-tool -v eth0: negotiated 100baseTx-FD, link ok product info: vendor 00:08:18, model 25 rev 0 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow- control link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD eth1: no link product info: vendor 00:08:18, model 25 rev 0 basic mode: autonegotiation enabled basic status: no link capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow- control

Mr. Mturi Elias Testing Your NIC (3) Testing Link Status from the Command Line. Link Status Output from ethtool root]# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Link detected: yes

Mr. Mturi Elias Testing Your NIC (4) Viewing NIC Errors  ifconfig  ethtool –S eth0

Mr. Mturi Elias Testing Your Network Connectivity Using Ping To Test Connectivity  ping sends ICMP echo packets that request a corresponding ICMP echo-reply response from the device at the target address.  Because most servers will respond to a ping query it becomes a very handy tool.

Mr. Mturi Elias Testing Your Network Connectivity (2) Using Ping To Test Connectivity  A lack of response could be due to: 1. A server with that IP address doesn't exist 2. The server has been configured not to respond to pings 3. A firewall or router along the network path is blocking ICMP traffic 4. You have incorrect routing. 5. Either the source or destination device having an incorrect IP address or subnet mask.

Mr. Mturi Elias Testing Your Network Connectivity (3) Using Ping To Test Connectivity root]# ping -c 2 PING websvr.udsm.ac.tz ( ) 56(84) bytes of data. 64 bytes from websvr.udsm.ac.tz ( ): icmp_seq=0 ttl=254 time=0.588 ms 64 bytes from websvr.udsm.ac.tz ( ): icmp_seq=1 ttl=254 time=0.470 ms --- websvr.udsm.ac.tz ping statistics packets transmitted, 2 received, 0% packet loss, time 1007ms rtt min/avg/max/mdev = 0.470/0.529/0.588/0.059 ms, pipe 2

Mr. Mturi Elias Testing Your Network Connectivity (4) You may get a "Destination Host Unreachable" message. There are a number of reasons for this: 1. The server might be down, or disconnected for the network. 2. Your NIC might not have the correct duplex settings; you may verify this with the mii-tool command. 3. You might have the incorrect type of cable connecting your Linux box to the network. 4. In the case of a wireless network, your SSID or encryption keys might be incorrect.

Mr. Mturi Elias Testing Your Network Connectivity (5) Using netstat Command to test the connections : 1. Displays network connections, routing tables, interface statistics, masquerade connections, netlink messages, and multicast memberships. 2. Can be used to check for open ports, an important security issue.

Mr. Mturi Elias Testing Your Network Connectivity (6) Using netstat Command to test the connections: root]# netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp : :* LISTEN tcp : :* LISTEN

Mr. Mturi Elias Testing Your Network Connectivity (7) Using traceroute to Test Connectivity  Prints the route packets take to get to a particular network host.  This helps you verify that routing over the networks in between is correct.  Uses UDP packets by default.

Mr. Mturi Elias Testing Your Network Connectivity (8) root]# traceroute traceroute to ( ), 30 hops max, 38 byte packets ( ) ms ms ms ( ) ms ms ms ( ) ms ms ms ( ) ms ms ms c 5 fus-rt002-LANB.core.globalconnex.net ( ) ms ms ms cc ( ) mscc msc ms

Mr. Mturi Elias Testing Your Network Congention Using MTR To Detect Network Congestion  Matt's Traceoute is an application you can use to do a repeated traceroute in real time.  It dynamically shows the round-trip time to reach each hop along the traceroute path.  The constant updates enable you not only to visually determine which hops are slow and when are they slow.

Mr. Mturi Elias Testing Your Network Connectivity (6)

Mr. Mturi Elias PACKET CAPTURING Sniffer, tcpdump, Ethereal, ntop

Mr. Mturi Elias What is Packet Capture? Real time collection of data as it travels over networks Tools called: packet sniffers packet analysers protocol analysers, and sometimes even traffic monitors

Mr. Mturi Elias When Packet Capture? Most powerful technique When need to see what client and server are actually saying to each other When need to analyse type of traffic on network Requires understanding of network protocols to use effectively

Mr. Mturi Elias How to use tcpdump Can just type its name (as root): $ tcpdump...but get a huge amount of data! Can restrict the data collected using a filter A filter may select addresses, protocols, port numbers,...

Mr. Mturi Elias tcpdump : some options -c n — capture a count of n packets then stop -w file — write raw data to file. Very useful — can filter and analyse this later with tcpdump, ethereal or other tools but you cannot see what you are capturing till later! -i interface — collect from interface instead of lowest numbered network interface -s bytes — collect no more than bytes of data from each packet instead of default 68 bytes -e — show link level info, e.g., Ethernet addresses -x — gives a hexadecimal dump of packets excluding link level data -X — display ASCII as well as hexadecimal if have –x option too Many more options: man tcpdump

Mr. Mturi Elias tcpdump Filters: host and port Show all network traffic to and from : tcpdump host Show packets to : tcpdump dst Show packets to port 68 on : tcpdump dst and port 68

Mr. Mturi Elias tcpdump filters: networks Capture traffic to or from /24: tcpdump net /18 can specify network as source or destination: tcpdump src net /24 tcpdump dst net /18

Mr. Mturi Elias tcpdump filters: protocol tcpdump ip tcpdump tcp tcpdump ip proto ospf This will catch DNS name lookups, but not zone transfers (which use tcp): tcpdump udp port 53

Mr. Mturi Elias Ethereal King of the Packet Analysers! Available for Linux, Unix, Windows

Mr. Mturi Elias Ethereal Ethereal can read data captured by tcpdump, e.g., $ ethereal –r tcpdump.pcap or File -> Open Can capture data itself Uses same filter language as tcpdump

Mr. Mturi Elias

You can expand any protocol: If we click on the + next to Bootstrap Protocol, we can see the details of the DHCP Request:

Mr. Mturi Elias

Ethereal (Continued) Text based ethereal called tethereal: If you machine does not have GUI or you are using a remote server/computer tethereal is the best for you. Just type tethereal in your command prompt

Mr. Mturi Elias Ethereal (Continued)

Mr. Mturi Elias Basic DNS Troubleshooting Sometimes the source of problems can be due to misconfigured DNS rather than poor network connectivity. DNS is the system that helps map an IP address to your Web site's domain name and your site may suddenly become unavailable if the mapping is incorrect

Mr. Mturi Elias Basic DNS Troubleshooting (2) Using nslookup to Test DNS  The nslookup command can be used to get the associated IP address for your domain and vice versa.

Mr. Mturi Elias Basic DNS Troubleshooting (3) Using nslookup To Check Your IP Address

Mr. Mturi Elias Basic DNS Troubleshooting Using the host Command to Test DNS

Mr. Mturi Elias Basic DNS Troubleshooting Using the dig Command to Test DNS

Mr. Mturi Elias

Conclusion Lest Know When You Have Problem You Need To Be Proactive.