SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
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.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
SYSTEM ADMINISTRATION Chapter 19
11 TROUBLESHOOTING Chapter 12. Chapter 12: TROUBLESHOOTING2 OVERVIEW  Determine whether a network communications problem is related to TCP/IP.  Understand.
Operating Systems Concepts 1/e Ruth Watson Chapter 11 Chapter 11 Network Maintenance Ruth Watson.
1 Linux Networking and Security Chapter 2. 2 Configuring Basic Networking Describe how networking devices differ from other Linux devices Configure Linux.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 13: Troubleshoot TCP/IP.
Internet Control Message Protocol (ICMP)
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 8 Administering TCP/IP.
Network Management And Debugging
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.
Common network diagnostic and configuration utilities A ‘toolkit’ for network users and managers when ‘troubleshooting’ is needed on your network.
ICMP: Ping and Trace CCNA 1 version 3.0 Rick Graziani Spring 2005.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Chapter Overview TCP/IP Protocols IP Addressing.
Linux Networking Commands
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,
11 NETWORK PROTOCOLS AND SERVICES Chapter 10. Chapter 10: Network Protocols and Services2 NETWORK PROTOCOLS AND SERVICES  Identify how computers on TCP/IP.
Terralite Solutions.  TCP/IP setting for communications  Subscription  Unicast  Multicast  UDP  Communications troubleshooting.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
1 CMPT 471 Networking II ICMP © Janice Regan, 2012.
TELE202 Lecture 10 Internet Protocols (2) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Internet Protocols (1) »Source: chapter 15 ¥This Lecture »Internet.
Guide to TCP/IP, Third Edition
Hands-on Networking Fundamentals
Managing Network connections. Network Cabling Ethernet Topology Bus topology – Connects each node in a line – Has no central connection point Star topology.
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.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
Institute of Technology Sligo - Dept of Computing Semester 2 Chapter 10 IP Addressing.
KIS – Cvičenie #5 IP konfigurácia v prostredí OS Windows Marián Beszédeš, B506
Examining TCP/IP.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
1 Chapter Overview Routing Principles Building Routing Tables.
Copyright © Lopamudra Roychoudhuri
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
MCTS Guide to Configuring Microsoft Windows Server 2008 Active Directory Chapter 8: Introduction to Windows Networking.
Linux+ Guide to Linux Certification Chapter Fifteen Linux Networking.
Connecting to a Network Lesson 5. Objectives Understand the OSI Reference Model and its relationship to Windows 7 networking Install and configure networking.
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.
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.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
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 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.
Application Block Diagram III. SOFTWARE PLATFORM Figure above shows a network protocol stack for a computer that connects to an Ethernet network and.
1 COP 4343 Unix System Administration Unit 11: Networking – basic concepts: IP, TCP, UDP, DHCP – devices: setup, status.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
Monitoring Troubleshooting TCP/IP Chapter 3. Objectives for this Chapter Troubleshoot TCP/IP addressing Diagnose and resolve issues related to incorrect.
Advanced Packet Analysis and Troubleshooting Using Wireshark 23AF
Using Routing and Remote Access Chapter Five. Exam Objectives in this Chapter:  Plan a routing strategy Identify routing protocols to use in a specified.
1 Kyung Hee University Chapter 6 Delivery Forwarding, and Routing of IP Packets.
Linux Operations and Administration Chapter Eight Network Communications.
Semester 2v2 Chapter 8: IP Addressing. Describe how IP addressing is important in routing. IP addresses are specified in 32-bit dotted-decimal format.
ERICSON BRANDON M. BASCUG Alternate - REGIONAL NETWORK ADMINISTRATOR HOW TO TROUBLESHOOT TCP/IP CONNECTIVITY.
Linux Operations and Administration
(ITI310) By Eng. BASSEM ALSAID SESSIONS 9: Dynamic Host Configuration Protocol (DHCP)
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.
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 8 TCP/IP Suite Error and Control Messages.
Network Commands 2 Linux Ubuntu A.S.
Network Tools and Utilities
Troubleshooting IP Communications
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Module 12 Network Configuration
Presentation transcript:

SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network

SUSE Linux Enterprise Server Administration (Course 3037)2 Objectives Configure Your Network Connection Configure and Manage Routes Test the Network Interface

SUSE Linux Enterprise Server Administration (Course 3037)3 Configure Your Network Connection Objectives –TCP/IP Fundamentals –Network Interfaces in Linux –Network Interface Requirements –How to Configure a Network Card with YaST –How to Modify a Network Card Manually

SUSE Linux Enterprise Server Administration (Course 3037)4 TCP/IP Fundamentals TCP/IP network components –Host Receives requests for information from the Internet –TCP/IP Defines how packets should be structured –IP packet Electronic package of data sent over the Internet –Router Forwards an IP packet to the next network point –Firewall Protects the resources of a private intranet or network

SUSE Linux Enterprise Server Administration (Course 3037)5 TCP/IP Fundamentals (continued) IP address structure –Host is also referred to as a node or station Routers locate hosts based on their IP addresses –IP address consists of four bytes: A network address (from 1 to 3 bytes) A node or station address (from 1 to 3 bytes) –Node address 0, and 255 are reserved –IP addresses take the form of a dotted octet Each byte is separated by a dot

SUSE Linux Enterprise Server Administration (Course 3037)6 TCP/IP Fundamentals (continued)

SUSE Linux Enterprise Server Administration (Course 3037)7 TCP/IP Fundamentals (continued)

SUSE Linux Enterprise Server Administration (Course 3037)8 TCP/IP Fundamentals (continued)

SUSE Linux Enterprise Server Administration (Course 3037)9 TCP/IP Fundamentals (continued) Network classes and IP addresses –There are five address classes defined in IP Classes A through C can be assigned Classes D and E are reserved –Class A addresses Networks: 126 Hosts per network: 16,777,216 –Class B addresses Networks: 16,384 Hosts per network: 65,534

SUSE Linux Enterprise Server Administration (Course 3037)10 TCP/IP Fundamentals (continued)

SUSE Linux Enterprise Server Administration (Course 3037)11 TCP/IP Fundamentals (continued)

SUSE Linux Enterprise Server Administration (Course 3037)12 TCP/IP Fundamentals (continued) Network classes and IP addresses –Class C addresses Networks: 2,097,152 Hosts per network: 255 –Class D addresses First byte is in the 224 to 239 range Used for multicast packets –Class E addresses First byte is in the 240 to 255 range Reserved for experimental use

SUSE Linux Enterprise Server Administration (Course 3037)13 TCP/IP Fundamentals (continued) Special IP addresses –See Table 7-1

SUSE Linux Enterprise Server Administration (Course 3037)14 TCP/IP Fundamentals (continued)

SUSE Linux Enterprise Server Administration (Course 3037)15 Network Interfaces in Linux Network interfaces –Always referred to with a fixed name –Name depends on type and position of the network card in the computer First card is called eth0, second is eth1, and so on Drives –Provide support for network cards and protocols –Kernel modules that can be loaded if required SUSE Linux Enterprise Server –Contains drivers for all common network cards

SUSE Linux Enterprise Server Administration (Course 3037)16 Network Interface Requirements Network card is detected during installation –And a suitable driver is loaded Command ifstatus device –Verifies network card has been integrated correctly With the appropriate driver Kernel support implemented as a module –Name of the module is entered by YaST In a file in /etc/sysconfig/hardware/ Drivers are autodetected for hotplug cards –No configuration is necessary

SUSE Linux Enterprise Server Administration (Course 3037)17 How to Configure a Network Card with YaST Steps –Start the YaST Network Card module –Select a network card from the list (conditional) –Modify network card settings (conditional)

SUSE Linux Enterprise Server Administration (Course 3037)18 How to Configure a Network Card with YaST (continued)

SUSE Linux Enterprise Server Administration (Course 3037)19 How to Configure a Network Card with YaST (continued)

SUSE Linux Enterprise Server Administration (Course 3037)20 How to Configure a Network Card with YaST (continued)

SUSE Linux Enterprise Server Administration (Course 3037)21 How to Configure a Network Card with YaST (continued) Steps –Do one of the following Add a new network card configuration Modify an existing configuration Delete a listed configuration –Select Next –Save the configuration by selecting Finish –Check network card activation and settings From the command line using ifconfig or ip

SUSE Linux Enterprise Server Administration (Course 3037)22 How to Configure a Network Card with YaST (continued)

SUSE Linux Enterprise Server Administration (Course 3037)23 How to Configure a Network Card with YaST (continued)

SUSE Linux Enterprise Server Administration (Course 3037)24 How to Configure a Network Card with YaST (continued)

SUSE Linux Enterprise Server Administration (Course 3037)25 How to Modify a Network Card Manually Configure the network interface with ifconfig –ifconfig (/sbin/ifconfig) Used to manually configure a network card Display information about status of network interfaces –Changes done with ifconfig are temporary –Syntax ifconfig [interface] [address] [options] –ifconfig eth Assigns to network card eth0 –ifconfig eth0 up Activates eth0

SUSE Linux Enterprise Server Administration (Course 3037)26 How to Modify a Network Card Manually (continued)

SUSE Linux Enterprise Server Administration (Course 3037)27 How to Modify a Network Card Manually (continued) Configure IP aliases with ifconfig –IP aliases Used to define more than one IP address for a network card –It is always better to use genuine addresses –Configure an IP alias with ifconfig or YaST –View IP aliases by entering ip address show

SUSE Linux Enterprise Server Administration (Course 3037)28 How to Modify a Network Card Manually (continued) Modify network interface configuration files –Configuration files directory /etc/sysconfig/network/ Contains file for each configured network adapter –Network interfaces are activated at boot By script /etc/init.d/network –/etc/sysconfig/network/config Contains general variables for the script –Directory /etc/sysconfig/network/scripts/ Contains additional scripts run by /etc/init.d/network

SUSE Linux Enterprise Server Administration (Course 3037)29 How to Modify a Network Card Manually (continued) Modify network interface configuration files –Activating and deactivating network interfaces Use commands /sbin/ifup, /sbin/ifdown, /sbin/ifstatus Use script /etc/init.d/network Configure host and domain names –Modify the following files /etc/HOSTNAME /etc/resolv.conf

SUSE Linux Enterprise Server Administration (Course 3037)30 Configure and Manage Routes Objectives –Route Types –How to Manage Routes with route –How to Modify Route Configuration Files –How to Activate Routing –How to Manage the Network Interface and Routes with ip

SUSE Linux Enterprise Server Administration (Course 3037)31 Route Types Host routes –Define path data packet can take for exactly one destination host Network and gateway routes –Define path data packet can take for an entire destination network Default route –Special gateway route –Defines route data packet can take if no previous route matched destination of the packet

SUSE Linux Enterprise Server Administration (Course 3037)32 How to Manage Routes with route Use command route (/sbin/route) –To check and edit the routing table Create a route –Syntax route add [-net | -host destination] [netmask mask] [gw gateway] [metric n] [dev interface] –Static routing is set up by default –Dynamic routing needs a routing daemon You also need to add the option metric n

SUSE Linux Enterprise Server Administration (Course 3037)33 How to Manage Routes with route (continued) Delete a route –Syntax route del [-net | -host destination] [gw gateway] [netmask mask] [dev interface] –route del default Deletes the default route

SUSE Linux Enterprise Server Administration (Course 3037)34 How to Modify Route Configuration Files An entry is generated in the kernel routing table –For all active network interfaces Additional static routes –Configured in the files /etc/sysconfig/network/routes /etc/sysconfig/network/ifroute-Interface Configuration files include the following fields: –Destination network/destination host –The gateway to use –The network mask –The network interface

SUSE Linux Enterprise Server Administration (Course 3037)35 How to Activate Routing A Linux host can also serve as a router itself –This property is deactivated by default Activate routing by adding entry in the process file –echo 1 > /proc/sys/net/ipv4/ip_forward –0 will deactivate routing Activate routing permanently –Set following variable in /etc/sysconfig/sysctl IP_FORWARD=“yes”

SUSE Linux Enterprise Server Administration (Course 3037)36 How to Manage the Network Interface and Routes with ip SUSE Linux Enterprise Server ip command –Replaces ifconfig and route commands ip general syntax –ip [options] object [command [parameters]] Modifications made with command ip are temporary Tasks performed with ip: –Assign Parameters for Network Interfaces (ip link) –Assign IP Addresses (ip address) –Set Up Routes (ip route)

SUSE Linux Enterprise Server Administration (Course 3037)37 How to Manage the Network Interface and Routes with ip (continued)

SUSE Linux Enterprise Server Administration (Course 3037)38 How to Manage the Network Interface and Routes with ip (continued) Assign Parameters for Network Interfaces (ip link) –Use ip commands set and show Assign IP Addresses (ip address) –Most important ip commands add, del, and show Set Up Routes (ip route) –Use ip commands add, change, delete, and show

SUSE Linux Enterprise Server Administration (Course 3037)39 How to Manage the Network Interface and Routes with ip (continued)

SUSE Linux Enterprise Server Administration (Course 3037)40 How to Manage the Network Interface and Routes with ip (continued)

SUSE Linux Enterprise Server Administration (Course 3037)41 How to Manage the Network Interface and Routes with ip (continued)

SUSE Linux Enterprise Server Administration (Course 3037)42 Test the Network Interface Objectives –Check a Network Connection between Hosts (ping) –Check the Routing (traceroute) –Analyze Network Traffic (tcpdump and ethereal) –Determine the Status of All Network Connections (netstat) –Check for Service Availability (netcat)

SUSE Linux Enterprise Server Administration (Course 3037)43 Check a Network Connection between Hosts (ping) Command ping (/sbin/ping) –Simple tool for checking network connections How the command tests a connection –Enter ping host –Server sends ICMP datagram to the target host With the echo request –Target host answers with ICMP datagram Containing the message echo reply –ICMP protocol does not involve higher level protocols Command options –See Table 7-7

SUSE Linux Enterprise Server Administration (Course 3037)44 Check a Network Connection between Hosts (ping) (continued)

SUSE Linux Enterprise Server Administration (Course 3037)45 Check a Network Connection between Hosts (ping) (continued) Troubleshooting suggestions –Start by checking the host-internal network ping localhost –Then check network interface connected to your host ping interface_addr –Check network segment to the next closest network element In the direction of the target host Until the check ends at the target host

SUSE Linux Enterprise Server Administration (Course 3037)46 Check the Routing (traceroute) Command traceroute (/usr/sbin/traceroute) –Helps you follow route taken by an IP datagram How a route is traced –traceroute sends three UDP datagrams with TTL = 1 –Then increases value for the next three datagrams –TTL is reduced by 1 when UDP datagram passes through a router Datagram is discarded at TTL=0 –Gateway at TTL=0 sends an ICMP datagram With message “TTL exceeded” back to the sender

SUSE Linux Enterprise Server Administration (Course 3037)47 Check the Routing (traceroute) (continued) How a route is traced –If UDP datagram reaches the target host Host replies with ICMP datagram Port Unreachable –From this message Sender recognizes that target host has now been reached –Syntax traceroute host Command options –See Table 7-8

SUSE Linux Enterprise Server Administration (Course 3037)48 Check the Routing (traceroute) (continued)

SUSE Linux Enterprise Server Administration (Course 3037)49 Check the Routing (traceroute) (continued) Troubleshooting suggestions –Common reason for defective communication Transport path between these networks contains errors –traceroute Excellent tool for checking routers located on this transport path Shows at which hop the transport path is faulty

SUSE Linux Enterprise Server Administration (Course 3037)50 Analyze Network Traffic (tcpdump and ethereal) How to use tcpdump –Command tcpdump (/usr/sbin/tcpdump) Lets you analyze data packets –Syntax tcpdump –i interface –Puts interface in promiscuous mode How to use ethereal –Graphical tool –Provides the same functionality as tcpdump –Must be first installed using YaST

SUSE Linux Enterprise Server Administration (Course 3037)51 Analyze Network Traffic (tcpdump and ethereal) (continued)

SUSE Linux Enterprise Server Administration (Course 3037)52 Analyze Network Traffic (tcpdump and ethereal) (continued)

SUSE Linux Enterprise Server Administration (Course 3037)53 Analyze Network Traffic (tcpdump and ethereal) (continued) Command options (tcpdump) –See Table 7-9 Troubleshooting suggestions –Use tcpdump or ethereal to analyze network traffic –Helps you find which packets are exchanged –Recommended for security-critical environments

SUSE Linux Enterprise Server Administration (Course 3037)54 Determine the Status of All Network Connections (netstat) Command netstat (/bin/netstat) –Helps you determine the status of all network connections on a host How to use netstat –Displays the status of all open sockets –Information is displayed in two blocks First block –Each socket is listed on a separate line Second block Contains information on the UNIX domain sockets active on the host

SUSE Linux Enterprise Server Administration (Course 3037)55 Determine the Status of All Network Connections (netstat) (continued) Command options –See Table 7-10 Troubleshooting suggestions –netstat Ideal for monitoring resources for network sockets on a host Provides detailed information on existing and available network sockets or resources

SUSE Linux Enterprise Server Administration (Course 3037)56 Determine the Status of All Network Connections (netstat) (continued)

SUSE Linux Enterprise Server Administration (Course 3037)57 Check for Service Availability (netcat) Command netcat (/usr/bin/netcat) –Uses TCP and UDP protocols To read and write data through network connections How to use netcat –netcat host port Advanced use of netcat –Query ports and display the responses of the services –nmap command More suitable for a simple port scan –Transmit files between hosts Command options (see Table 7-11)

SUSE Linux Enterprise Server Administration (Course 3037)58 Check for Service Availability (netcat) (continued)

SUSE Linux Enterprise Server Administration (Course 3037)59 Exercise 7-1: Configure and Test Your Network Connection In this exercise, you do the following: –Part I: View and Record Network Configuration –Part II: Configure a Static Network with YaST –Part III: Test the Network Card Configuration

SUSE Linux Enterprise Server Administration (Course 3037)60 Summary Each host has an IP address and subnet mask IP classes normally used for IP addressing –Class A, B, and C Commands ifconfig and ip –View and change your TCP/IP configuration Network interface and TCP/IP information –Stored in the /etc/sysconfig/network –Started by the /etc/init.d/network script Each host contains a hostname –Stored in the /etc/HOSTNAME file

SUSE Linux Enterprise Server Administration (Course 3037)61 Summary (continued) /etc/resolv.conf file –Contains the addresses of up to three DNS servers TCP/IP networks are connected via routers –Host has a routing table That typically contains a default gateway route Commands route and ip –View and change the routing table Commands ping and traceroute –Used to test network communication and routing

SUSE Linux Enterprise Server Administration (Course 3037)62 Summary (continued) Command netcat –Used to test TCP and UDP connections Utilities tcpdump and ethereal –Used to capture and analyze network traffic