Linux network troubleshooting If your network connection is not working..

Slides:



Advertisements
Similar presentations
Jump to first page Setup Ethernet & PPP client on Laptop computer Presented by: Xuewu Cai Jianfang Wang.
Advertisements

Terminology and basic structures for lab 1 ©2012 Prof. José María Foces Morán.
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.
588 Section 2 Neil Spring April 13, Schedule traceroute (context) Paxson’s Pathologies Dijkstra’s (shortest path) Algorithm Subnetting Homework.
Installing and running FreeS/WAN. What is FreeS/WAN An implementation of IpSec for Linux –Can be found at Helps setup encrypted and/or.
Network Management And Debugging
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Linux Setting up your network. Basic Approaches Configure during installation –Disadvantage -> not able to redo easily –Advantage-> holds your hand Configure.
Linux Networking Sirak Kaewjamnong. 2 Configuration NIC IP address  NIC: Network Interface Card  Use “ipconfig” command to determine IP address, interface.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Module 9 - Networking. 1.Network Concepts and Commands 2.Network Files 3.Network Services 4.Configure a network device 5.Network File-System (NFS & CIFS)
INFO 320 Server Technology I Week 6 Networking 1INFO 320 week 6.
Linux Networking Commands
System Administration: Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
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.
TCP/IP Protocol Suite 1 Chapter 6 Upon completion you will be able to: Delivery, Forwarding, and Routing of IP Packets Understand the different types of.
Networking CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
GNU/Linux Fundamentals Part 3
TCP/IP Sections: 13.7, 13.8, 13.11, Adding A Machine to a Network 13.8 Distribution-Specific Network Configuration Security Issues
Linux Network Setup.
HALP! Something is in my tubes! Part I by Jason Testart, IST.
Networking ● Networking uses the TCP/IP protocol by default, but Linux can use other protocols to interact with other operating systems: MS Networking.
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.
Objectives Define IP Address To be able to assign an IP address with its Subnet Mask and Default Gateway to a PC that operates using Windows 7 or Fedora.
UNIX Operating System I Module 12 Introduction to UNIX Networking.
1 IP: putting it all together Part 1 G53ACC Chris Greenhalgh.
Copyright © Lopamudra Roychoudhuri
Networking Colin Alworth May 26, Quick Review IP address: four octets Broadcast addresses –IP addresses use all 1’s for the host bits, and whatever.
Links and LANs Link between two computers via cross cable The most simple way to connect two hosts is to link the two hosts with a cross cable.
1 Tutorial 6: Networking Utilities & Firewall. 2 Internet Control Message Protocol (ICMP) designed to compensate for the deficiencies of IP protocol.
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.
Linux Network Configuration Linux System Administration /etc/resolv.conf Tells the kernel which name server should be queried when a program asks to "resolve"
Delivery, Forwarding, and Routing of IP Packets
System Troubleshooting TCS Network, System, and Load Monitoring TCS for Developers.
1 Internet Tool Practice 한두균 송정환
UniONE I&C 시스템 기술지원 팀 Sparc Enterprise Mx000 firmware upgrade.
1 COP 4343 Unix System Administration Unit 11: Networking – basic concepts: IP, TCP, UDP, DHCP – devices: setup, status.
2010 paro, bhutan IP Basics IP/ISP Services Workshop July, 2010 Paro, Bhutan.
CIT 500: IT Fundamentals Networking 1. Topics 1.Configuring the Network 2.IP Addresses and Netmasks 3.Name Resolution and DNS 4.Inetd 2.
Linux Setting up your network. Basic Approaches Configure during installation –Disadvantage -> not able to redo easily –Advantage-> holds your hand Configure.
IPv6 – The Future Of The Internet Redbrick Networking Conference 26 March 2003 Dave Wilson DW238-RIPE.
How to connect to the Internet 1998/12/09 KEIO University, JAPAN Mikiyo
TCP/IP Networking Objectives –to learn how to integrate a RedHat system onto a TCP/IP network Contents –TCP/IP configuration files –Network configuration.
TCP/IP Network Essentials
Basic Linux Router I Router, a device that... Working on OSI Layer 3 (Network Layer) Connected to more than one networks Finding.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
BNL PDN Enhancements. Perimeter Load Balancers Scaleable Performance Fault Tolerance Server Maintainability User Convenience Perimeter Security.
Linux Operations and Administration Chapter Eight Network Communications.
WEEK 11 – TOPOLOGIES, TCP/IP, SHARING & SECURITY IT1001- Personal Computer Hardware System & Operations.
Network Configuration. NAT Mode, disable DHCP server.
workshop eugene, oregon IP Basics Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
CSN09101 Networked Services Week 5 : Networking
Fall 2011 Nassau Community College ITE153 – Operating Systems 1 Session 9 Networking & Operating Systems (part 2)
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
UDP. User Datagram Protocol (UDP)  Unreliable and unordered datagram service  Adds multiplexing  No flow control  Endpoints identified by ports 
LINUX Network Concepts M.S.Dibay Moghaddam Second Linux Festival Amir Kabir University of Technology Computer & IT Department.
Ifconfig Kevin O'Brien Washtenaw Linux Users Group
Linux network troubleshooting
Network Configuration
LINUX ADMINISTRATION
IPv6 Hands-on pre-GDB IPv6 workshop 7th of June 2016 edoardo
Introduction to Networking
Linux Network Configuration
Advanced Network Training
Delivery, Forwarding, and Routing of IP Packets
OPS235 Configuring a Network Using Virtual Machines – Part I
Module 12 Network Configuration
See Next Slide Example 13 (continued)
Presentation transcript:

Linux network troubleshooting If your network connection is not working..

Quick troubleshoot Check that network cable is connected and one of NIC’s leds is lit. Also check that computer is powered on! If possible go to switch/hub where your machine is connected and check that connection led is lit. Is network leds seem to be ok, restart network with following command: service network restart (works with CentOS, fedora core and redhat) /etc/init.d/network restart (should work with other distributions also) Check what ifconfig tells you. If you’re not root user, you can check ifconfig with following command: /sbin/ifconfig

Connection and ip-address seems to be ok. Interface has received and sent some packages. ~]# /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:10:5A:39:AC:1D inet addr: Bcast: Mask: UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets: errors:7 dropped:0 overruns:0 frame:7 TX packets: errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes: (50.0 MiB) TX bytes: (223.1 MiB) Interrupt:11 Base address:0xd000

If your ip-address isn’t shown, you most probably have DHCP enabled and DHCP-server is not giving you any address. If you don’t get ip-address Linux might interface disabled. You can use dhclient command manually to restart dhcp search. ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:10:5A:39:AC:1D UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 MiB) TX bytes:0 (0.1 MiB) Interrupt:11 Base address:0xd000

~]# /sbin/route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface U eth U eth U eth UG eth0 Check that default GW exists! If you have two network adapters check that there’s only one default GATEWAY!

CentOS network configuration files Are located in /etc/sysconfig –folder ~]# more /etc/sysconfig/network NETWORKING=yes HOSTNAME=firewall.datacom.intra.fi GATEWAY= The default GATEWAY can be set in network file or ifcfg-ethX file. It’s easier to troubleshoot if you have gateway set in one file only. If you have two network adapters check that there’s only one default GATEWAY!

CentOS Interface configuration file (static) ~]# more /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static ONBOOT=yes TYPE=Ethernet HWADDR=00:50:8B:5D:EE:1A IPADDR= NETMASK= NETWORK= BROADCAST= Static configuration for interface eth0. You must define at least IPADDR and NETMASK. If you have other than basic class C network specify also BROADCAST and NETWORK addresses. Remember to change BOOTPROTO to static if you’re setting static address manually!

CentOS Interface configuration file (dynamic) ~]# more /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:50:8B:5D:EE:1A ONBOOT=yes TYPE=Ethernet Dhcp gets all addresses automatically, only thing you need to set is BOOTPROTO. If your network still doesn’t work, you can add network configuration manually with following commands: ifconfig eth netmask broadcast route add default gw

Ubuntu & Debian Interface configuration file (static) Are located in /etc/network –folder. Most of the sites in internet are missing line auto eth0, which makes your system not to refetch interface addresses from the file. more /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The primary network interface auto eth0 iface eth0 inet static address netmask gateway

Ubuntu & Debian Interface configuration file (dynamic) Are located in /etc/network –folder more /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The primary network interface auto eth0 iface eth0 inet dhcp

Quick DNS checkup Name servers for machine are defined in /etc/resolv.conf –file. coursefiles]# more /etc/resolv.conf search dc.turkuamk.fi nameserver nameserver Easy way to check that name servers work: 1) ping 2) ping If both pings works, then name servers are working If only the last ping works, then you have some problems with your name server configuration If both pings fail, check ifconfig and default route