Network Management And Debugging

Slides:



Advertisements
Similar presentations
Static Routing Exercise AFNOG 2003/ Track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
Advertisements

Static Routing Exercise. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration  Static routes.
Precept 3 Host Configuration 1 Peng Sun. What TCP conn. running? Commands netstat [-n] [-p] [-c] (Linux) lsof -i -P (Mac) ss (newer version of netstat)
Static Routing Exercise Scalable Infrastructure Workshop AfNOG 2011.
Linux network troubleshooting If your network connection is not working..
Tcpdump Traceroute Ping. A packet tracing tool  Works on various host platforms  Captures packets going through a certain network interface  Shows.
588 Section 2 Neil Spring April 13, Schedule traceroute (context) Paxson’s Pathologies Dijkstra’s (shortest path) Algorithm Subnetting Homework.
Basic TCP/IP Networking
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 Debugging Organizational Communications and Technologies Prithvi Rao H. John Heinz III School of Public Policy and Management Carnegie Mellon University.
Chapter 5 Network Layer CIS 81 Networking Fundamentals Rick Graziani Cabrillo College Last Updated: 3/9/2008.
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.
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Linux Networking Commands
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
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.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
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.
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.
Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration u Static routes u Default route u Testing.
Page 1 COMP210 Network layer. Page 2 The Network Layer  The network layer is responsible for establishing, maintaining and terminating connections 
IP Forwarding.
1 IP: putting it all together Part 1 G53ACC Chris Greenhalgh.
Copyright © Lopamudra Roychoudhuri
CDPA 網管訓練 駭客任務 2 Ethernet Switching ARP, IP, LAN, Subnet IP Header, Routing ICMP
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.
NETWORKING IN LINUX. WHAT IS LINUX..? Freely implemention of UNIX-like Kernel. Free & Open source Software. Developed by Linus Torvalds in 1991.
Delivery, Forwarding, and Routing of IP Packets
System Troubleshooting TCS Network, System, and Load Monitoring TCS for Developers.
1 Internet Tool Practice 한두균 송정환
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.
Hands On Networking IPv4 Routing Veena S (MCA Dept) Shruti Kadam, MCA Dept Arpita Kulkarni, MCA Dept June 28, 2012.
1 COP 4343 Unix System Administration Unit 11: Networking – basic concepts: IP, TCP, UDP, DHCP – devices: setup, status.
Linux Setting up your network. Basic Approaches Configure during installation –Disadvantage -> not able to redo easily –Advantage-> holds your hand Configure.
Static Routing Exercise
IP network tools & troubleshooting AFCHIX 2010 Nairobi, Kenya October 2010.
Static Routing Exercise Mark Tinka & Isatou Jah. What will the exercise involve?  Unix network interface configuration  Cisco network interface configuration.
TCP/IP Networking Objectives –to learn how to integrate a RedHat system onto a TCP/IP network Contents –TCP/IP configuration files –Network configuration.
1 Requirements for Internet Routers (Gateways) and Hosts Relates to Lab 3. (Supplement) Covers the compliance requirements of Internet routers and hosts.
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.
Linux Operations and Administration Chapter Eight Network Communications.
CSN09101 Networked Services Week 5 : Networking
Static Routing Exercise AFNOG 2002 / track 2 # 1 Static Routing Exercise u Unix network interface configuration u Cisco network interface configuration.
Fall 2011 Nassau Community College ITE153 – Operating Systems 1 Session 9 Networking & Operating Systems (part 2)
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
UDP. User Datagram Protocol (UDP)  Unreliable and unordered datagram service  Adds multiplexing  No flow control  Endpoints identified by ports 
Network Overview. Protocol Protocol (network protocols) - a special set of rules that define communication between two or more devices on a network.
Ifconfig Kevin O'Brien Washtenaw Linux Users Group
Lecture#6:Connectivity Verification
Network and System Security Risk Assessment
Linux network troubleshooting
Network Configuration
IPv6 Hands-on pre-GDB IPv6 workshop 7th of June 2016 edoardo
Lecture#7:Connectivity Verification
Introduction to Networking
IP Network Layer and Ethernet Encapsulation
Delivery, Forwarding, and Routing of IP Packets
Lecture#6:Connectivity Verification
Module 12 Network Configuration
See Next Slide Example 13 (continued)
Presentation transcript:

Network Management And Debugging WeeSan Lee <weesan@cs.ucr.edu> http://www.cs.ucr.edu/~weesan/cs183/

Roadmap Interface Configuration Route Configuration Network Debugging

Network Topology The Internet 192.168.0.0/24 .2 Router VM Host VM .1 10.0.0.0/24

Interface Configuration (Host VM) We will need: IP Address 10.0.0.2 Netmask 255.255.255.0 Broadcast 10.0.0.255 Gateway 10.0.0.1 Usually 10.0.0.0 - network 10.0.0.255 - broadcast

Interface Configuration (Router VM) Use ifconfig command $ ifconfig eth1 10.0.0.1 netmask 255.255.255.0 $ ifconfig eth1 eth1 Link encap:Ethernet HWaddr 00:C0:F0:3C:43:82 inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:659988 errors:1 dropped:0 overruns:0 frame:0 TX packets:1016790 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:73459942 (70.0 Mb) TX bytes:1201693614 (1146.0 Mb) Interrupt:10 Base address:0xd880 To bring the interface eth1 down or up via ifconfig command $ ifconfig eth1 down $ ifconfig eth1 up

Interface Configuration (Router VM) Edit /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 ONBOOT=yes #BOOTPROTO=dhcp IPADDR=10.0.0.1 NETMASK=255.255.255.0 BROADCAST=10.0.0.255 To bring up the interface eth1 via ifup script $ ifup eth1 To bring down the interface eth1 via ifdown script $ ifdown eth1

IP Aliasing A way to assign multiple IP addresses on the same interface $ ifconfig eth1:0 10.0.0.3 netmask 255.255.255.0 $ ifconfig eth1:1 10.0.0.4 netmask 255.255.255.0 Why? We could experiment new services w/out new HW We could replace problematic HW with IP aliasing on a healthy machine temporary

Route Configuration (Router VM) Default routes Usually added by route command $ route add default gw 192.168.0.1 To remove a default route $ route del default gw 192.168.0.1 To make it persistent, edit /etc/sysconfig/network NETWORKING=yes HOSTNAME=host1 DOMAINNAME=weesan.com GATEWAY=192.168.0.1

Route Configuration (Router VM) $ netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

Route Configuration (Router VM) Static routes Usually added by ifconfig command $ route add -net 10.0.0.0 netmask 255.255.255.0 eth1 $ route del -net 10.0.0.0 netmask 255.255.255.0 eth1 Edit /etc/sysconfig/static-routes eth1 net 10.0.0.0 netmask 255.255.255.0

Route Configuration (Router VM) $ netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

Enable IP Forwarding (Router VM) $ echo "1" > /proc/sys/net/ipv4/ip_forward To make it persistent, edit /etc/sysctl.conf Change net.ipv4.ip_forward to 1

Network Debugging Can be tricky Start from one component and work your way through Recommend procedures (bottom-up) Always check power first  Check the LED on the devices Check connectivity, use tools like ping, traceroute, tcpdump, etc Verify application protocol, use telnet

ping Send ICMP-REQUEST and expect ICMP-REPLY $ ping 10.0.0.1 PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data. 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=1.18 ms 64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=1.57 ms 64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=1.03 ms --- 10.0.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 1.036/1.263/1.572/0.228 ms

ping Start from known next hop Not always works for remote hosts For example, eon.cs.ucr.edu drops ICMP packets

traceroute Send UDP packets to remote host with TTL 1, 2, 3, … $ weesan@delta-1:~> traceroute www.google.com traceroute: Warning: www.google.com has multiple addresses; using 72.14.253.99 traceroute to www.l.google.com (72.14.253.99), 30 hops max, 38 byte packets 1 138.23.211.1 (138.23.211.1) 0.286 ms 0.278 ms 0.353 ms 2 c6513telecom--te-9-4.ucr.edu (138.23.3.105) 25.070 ms 20.486 ms 1.064 ms 3 c6509telecom--te-3-3.ucr.edu (138.23.3.26) 0.384 ms 0.381 ms 0.361 ms 4 riv-dc1.riv-dc1--ucr.cenic.net (137.164.24.121) 0.311 ms 0.235 ms 0.225 ms 5 dc-lax-dc1--riv-dc1-pos.cenic.net (137.164.22.228) 1.457 ms 1.459 ms 1.446 ms 6 * * * … 11 po-in-f99.google.com (72.14.253.99) 31.902 ms 30.762 ms 30.745 ms

tcpdump Originally written by Van Jacobson $ tcpdump $ tcpdump -i eth0 $ tcpdump host eon $ tcpdump src net 10.0.0.0/24 and dst port 80 $ tcpdump -vvv $ man tcpdump

Reference LAH Ch 12: TCP/IP Networking Ch 13: Routing Ch 19: Network Management And Debugging