Links and LANs 2004-04-06. 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.

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.
DHCP -Ameeta and Haripriya -cmsc 691x. DHCP ► Dynamic Host Configuration Protocol ► It controls vital networking parameters of hosts with the help of.
1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
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)
DHCP Dynamic Host Configuration Part 7 NVCC Professional Development TCP/IP.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing & Switching.
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.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing and Switching Essentials.
Copyright 2009 Kenneth M. Chipps Ph.D. Host Addressing Last Update
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Chapter 8 Administering TCP/IP.
Chapter 23: ARP, ICMP, DHCP IS333 Spring 2015.
1 CMPT 471 Networking II DHCP © Janice Regan,
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Using a Cisco Router as a DHCP Server.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
DHCP server & Client Objectives Contents
DHCP. DHCP (Dynamic Host Configuration Protocol) is a network service that enables clients to obtain network settings (IP Address, Subnet Mask, Default.
Basic Network Training. Cable/DSL Modem The modem is the first link in the chain It is usually provided by the ISP and often has a coax cable connector.
Lesson 3 Introduction to Networking Concepts Lesson 3.
New SA Training Topic 7: DNS and DHCP To implement the underlying basis for our organizations networking, we rely on two fundamental services  DNS – the.
Day15 IP Space/Setup. IP Suite of protocols –TCP –UDP –ICMP –GRE… Gives us many benefits –Routing of packets over internet –Fragmentation/Reassembly of.
11 NETWORK PROTOCOLS AND SERVICES Chapter 10. Chapter 10: Network Protocols and Services2 NETWORK PROTOCOLS AND SERVICES  Identify how computers on TCP/IP.
DHC P Dynamic Host Configuration Protocol
Guide to TCP/IP, Second Edition1 Guide To TCP/IP, Second Edition Chapter 8 The Dynamic Host Configuration Protocol (DHCP)
MAC Address IP Addressing DHCP Client DHCP Server Scope Exclusion Range Reservations Netsh.
IT:NETWORK:MICROSOFT SERVER 2 DHCP AND WINDOWS DEPLOYMENT SERVICES.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing and Switching Essentials.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: DHCP Routing & Switching.
CTSP TRAINING Router 101 And Networking Basics. You Don’t Need Internet Access to Run or Connect your devices to an Ethernet switch or Router Enable DHCP.
Common Devices Used In Computer Networks
1 How to Enable IPv6 in Your Subnet Quincy Wu March 10, 2004.
Objectives Configure routing in Windows Server 2008 Configure Routing and Remote Access Services in Windows Server 2008 Network Address Translation 1.
DHCP Ana Chanaba Robert Huylo. DHCP Background / Server dhcpd - Dynamic Host Configuration Protocol Server allows hosts on a TCP/IP network to request.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
DHCP server & Client Objectives –to learn how to setup dhcp servers Contents –Download and Install The DHCP Package –The /etc/dhcpd.conf File –Upgrading.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
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.
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.
DHCP/BOOTP Dynamic Host Configuration Protocol Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a server to automatically.
Chapter 23: ARP, ICMP, DHCP CS332, IS333 Spring 2014.
Guide to TCP/IP, Third Edition Chapter 8: The Dynamic Host Configuration Protocol.
Module 2: Allocating IP Addressing by Using Dynamic Host Configuration Protocol (DHCP)
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
A machine that acts as the central relay between computers on a network Low cost, low function machine usually operating at Layer 1 Ties together the.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7 Dynamic Host Protocol.
Sample DNS configurations. Example 1: Master 'master' DNS and is authoritative for this zone for example.com provides 'caching' services for all other.
DHCP as server. What is Dynamic Host Configuration Protocol (DHCP)? Dynamic Host Configuration Protocol (DHCP) is network protocol for automatically assigning.
ERICSON BRANDON M. BASCUG Alternate - REGIONAL NETWORK ADMINISTRATOR HOW TO TROUBLESHOOT TCP/IP CONNECTIVITY.
1 Chapter 8: DHCP in IP Configuration Designs Designs That Include DHCP Essential DHCP Design Concepts Configuration Protection in DHCP Designs DHCP Design.
1 Objectives Discuss the basics of Dynamic Host Configuration Protocol (DHCP) Describe the components and processes of DHCP Install DHCP in a Windows Server.
 Router Configurations part2 2 nd semester
Juan Ortega 10/7/09 NTW342. Setting up the Configuration File ddns-update-style interim; Ignore client-updates; Subnet netmask
Chapter 4: server services. The Complete Guide to Linux System Administration2 Objectives Configure network interfaces using command- line and graphical.
CHAPTER 10: DHCP Routing & Switching. Objectives 10.0 Introduction 10.1 Dynamic Host Configuration Protocol v Dynamic Host Configuration Protocol.
11 MAINTAINING A NETWORK INFRASTRUCTURE Chapter 9.
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.
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
DHCP CONFIGURATION Routing & Switching. DHCPV4 OPERATION CONFIGURING A DHCPV4 SERVER A Cisco router running the Cisco IOS software can be configured to.
Troubleshooting ip Chapter 5e.
LINUX ADMINISTRATION
DHCP server & Client Objectives Contents
IP Network Layer and Ethernet Encapsulation
Routing and Switching Essentials v6.0
Allocating IP Addressing by Using Dynamic Host Configuration Protocol
Troubleshooting ip Chapter 5e.
Module 12 Network Configuration
Presentation transcript:

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. The most simple way to connect two hosts is to link the two hosts with a cross cable. Work in group of 4 people. Work in group of 4 people.

Configure IP adresses Configure the IP adresses according to values in the picture. Configure the IP adresses according to values in the picture. -Ifconfig [interface] [IP-adress] / [netmask] Use the ping command to verify your set up, try to ping from one host to another. Use the ping command to verify your set up, try to ping from one host to another.

Link between two computers via a hub Another way to connect two computers is to use a hub. A hub is a simple network device providing a common point of connection to all other devices in the network Another way to connect two computers is to use a hub. A hub is a simple network device providing a common point of connection to all other devices in the network Use a straight cable to connect a computer to the hub. Use a straight cable to connect a computer to the hub.

Configure the IP adresses according to the picture Configure the IP adresses according to the picture Ping from one host to another. Does it work? Ping from one host to another. Does it work? Start ethereal or tcpdump on one of the hosts and capture traffic on the Ethernet interface. What do you see from ethereal? Start ethereal or tcpdump on one of the hosts and capture traffic on the Ethernet interface. What do you see from ethereal?

Connect two hubs together Group A and B should work together and connect their hubs together. Group A and B should work together and connect their hubs together.

Try to ping from one host in group A to one host in group B. Does it work? Explain what you see. Try to ping from one host in group A to one host in group B. Does it work? Explain what you see. Try to configure IP address of H3 and H4 to /24 and /24 respectively. Try to configure IP address of H3 and H4 to /24 and /24 respectively. Try to ping from one host in A to one host in B. Does it work? Explain what you see. Try to ping from one host in A to one host in B. Does it work? Explain what you see.

DHCP (Dynamic Host Configuration Protocol)

DHCP In stateful address assignment there is a server that keeps track of what addresses that are currently in use and which addresses that could be assigned to new hosts. In stateful address assignment there is a server that keeps track of what addresses that are currently in use and which addresses that could be assigned to new hosts. DHCP is an example of a stateful address assignment DHCP is an example of a stateful address assignment

Getting started – server and client Work in group of 2, where one is the DHCP server and one is the client. Work in group of 2, where one is the DHCP server and one is the client.

Start with configuring the server: Start with configuring the server: -Your DHCP server should hand out addresses in the range (netmask ). - Although we neither have a router nor any DNS server in this setup, make sure that any DHCP client will get default router and name server Let th domain name be dhcp.lab. Set the default lease time to 2 minutes (very short).

Dhcp.conf file Create the dhcp.conf file Create the dhcp.conf file - vi /etc/dhcpd.conf Should look like this: # This is a very basic subnet declaration. subnet netmask { range ; option routers ; option domain-name-servers ; option domain-name "dhcp.lab"; default-lease-time 120; max-lease-time 120; }

Start the DHCP server /usr/sbin/dhcpd /usr/sbin/dhcpd You may first have to do: touch /var/lib/dhcp/dhcpd.leases touch /var/lib/dhcp/dhcpd.leases To make sure that the DHCP server started without any errors check the /var/log/messages file with: tail /var/log/messages tail /var/log/messages

Start the DHCP client dhclient [interface] (the interface that the clients use to connect to the LAN) dhclient [interface] (the interface that the clients use to connect to the LAN) What IP address were assigned to the clients? What IP address were assigned to the clients?

To verify that default gateway and name-server were configured correctly inspect the routing table with: To verify that default gateway and name-server were configured correctly inspect the routing table with: route –n and view the resolver file: cat /etc/resolv.conf If you are not getting an IP address via dhclient even you have configured everything correctly, run: If you are not getting an IP address via dhclient even you have configured everything correctly, run: iptables –F killall dhclient This command flushes the firewall rules. This command flushes the firewall rules. Use ethereal or tcpdump to check the traffic Use ethereal or tcpdump to check the traffic

Duplicate address detection in DHCP Duplicate Address Detection (DAD) is useful in stateful address assignment schemes such as DHCP, even though the DHCP server keeps track of the addresses that are supposed to be free. The reason is that some other machine could have been configured with one of these addresses (perhaps manually) without asking the DHCP server for permission! Duplicate Address Detection (DAD) is useful in stateful address assignment schemes such as DHCP, even though the DHCP server keeps track of the addresses that are supposed to be free. The reason is that some other machine could have been configured with one of these addresses (perhaps manually) without asking the DHCP server for permission! Two groups should now work together to establish the setup. One machine can monitor the network traffic with Ethereal, and one machine will be the bad guy (B). You will need a hub to connect all machines on the same LAN. Two groups should now work together to establish the setup. One machine can monitor the network traffic with Ethereal, and one machine will be the bad guy (B). You will need a hub to connect all machines on the same LAN.

Before you attach the bad guy machine (B) to the network, stop dhclient on the client (C) as usual with For client #killall dhclient Configure (manually) the IP address of machine (B) to be the address that the client (C) earlier leased ifconfig eth0 ifconfig eth0 route –n In the DHCP server (S), delete any remaining entry of ipAddressOfC in the ARP cache with arp -d arp -d Then run dhcpcd eth0 on the client (C) again, and observe the messages exchanged on the LAN. Also observe the /var/log/messages file on the DHCP server with tail /var/log/messages Will (C) get the same address again, or will it be assigned some other address? Will (C) get the same address again, or will it be assigned some other address?

Using DHCP relay agents Having a DHCP server present on every sub network may be result in lots of machines and servers for the system administrators to maintain. Having a DHCP server present on every sub network may be result in lots of machines and servers for the system administrators to maintain. In order to serve DHCP clients although no DHCP server is present, one could make the routers (or even some other machine on the link) act as DHCP relay. Then you can centralize the DHCP server and simplify management. In order to serve DHCP clients although no DHCP server is present, one could make the routers (or even some other machine on the link) act as DHCP relay. Then you can centralize the DHCP server and simplify management.

1. Configure the two routers (R1 and R2) with appropriate IP addresses for both of their Ethernet interfaces (use ifconfig as usual). 2. Enable routing on both R1 an R2 by writing the following command in a shell. sysctl -w net.ipv4.ip forward=1 # vi /etc/sysctl.conf (If you want routing to be enabled at startup you could edit the file /etc/sysctl.conf.) 3. Add routes to the networks behind the other router, i.e., on R1 do route add -net netmask gw and on R2 do route add -net netmask gw

4. On the DHCP server, add routes to both networks in the same way earlier. 5. Verify your setup by letting the DHCP server ping both and , let R1ping and let R2 ping Now, if routing seems to work alright, it is time to configure the DHCP server and DHCP relay agents. - Update the dhcpd.conf file to assign address on the /24 and /24 networks as well. - Update the dhcpd.conf file to assign address on the /24 and /24 networks as well.

Example of addition to /etc/dhcpd.conf file subnet netmask { range ; option routers ; option domain-name-servers ; option domain-name "dhcp.1.lab"; default-lease-time 180; max-lease-time 180; } subnet netmask { range ; option routers ; option domain-name-servers ; option domain-name "dhcp.2.lab"; default-lease-time 240; max-lease-time 240; }

Make sure that the host on each of the subnet are assigned a default router appropriate for that network, with Make sure that the host on each of the subnet are assigned a default router appropriate for that network, with route add default gw [ip address of default router] Start the DHCP relay agent on both R1 and R2 dhcrelay [ip address of DHCP server] 7. Hopefully everything should work now. Please attach a host to each of the two network with DHCP relay support. Did they get appropriate addresses? Are they able to ping each other? Inspect the routing table again with route –n and then view the resolver file cat /etc/resolv.conf to verify that default gateway and name-server were configured correctly for the hosts.