LAN Setup Reflection. Ask yourself some questions: o Does your VM have the correct IP? o Are you able to ping some locations, internal and external?

Similar documents
LAN Setup Reflection

IT341 Introduction to System Administration Project II Setting up our LAN

How to Install a DHCP Server in Ubuntu and Debian

TCP/IP Network Essentials

Lab - Configure a NIC to Use DHCP in Windows

8.9.2 Lab: Configure an Ethernet NIC to use DHCP in Windows Vista

IP Addresses. An IPv4 address looks like this

ITS332 Quiz 1 Answers

Manually Change Default Gateway Centos Command Line Windows

Cisco Modeling Labs OVA Installation

Dhcp With Manual Address Windows Server 2008 R2 Vlan

The trace is here:

Dhcp With Manual Address Windows Server 2008 R2 Vlans

Ubuntu Set Static Ip Address Command Line

IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa

Networks Lab Pod Diagram

Linux. Computer networks - Administration 1DV202. fredag 30 mars 12

Hawk Server for Linux. Installation Guide. Beta Version MHInvent Limited. All rights reserved.

Lab Exercise Sheet 2 (Sample Solution)

Unit- 5. Linux Systems

Static Ip Address Problems Windows 7 Setup. Virtual >>>CLICK HERE<<<

Appliance Guide. Version 1.0

This document guides the user through: 1. Setting up and configuring networking for the BeagleBone black or green with the host.

DHCP in. Introduction. Step 1 router. In this lab, you. computer. Page 1 of 7

The TinyHPC Cluster. Mukarram Ahmad. Abstract

Network Administra0on

ScopTEL TM IP PBX Software. DNS Server Configuration Wizard

LAB-5: NAT64/DNS64. Lab Environment. Configure the IPv6 only client: Open the GNS3 project file: The lab topology has:

Wowza Media Server Pro for Riverbed Steelhead. Installation Guide

Setting Up a Multihomed System

Connecting CoovaAP 1.x with RADIUSdesk - Basic

ELE409 SPRING2018 LAB0

CIS Test 1- Practice - Fall 2011

DESCRIPTION OF TYPICAL NETWORK SERVICES ON SERVERS

Jackson State University Department of Computer Science CSC 437/539 Computer Security Fall 2013 Instructor: Dr. Natarajan Meghanathan

Lab #9: Basic Linux Networking

Network Configuration for Cisco UCS Director Baremetal Agent

(Refer Slide Time: 00:30)

Boost local network performance (Increase network thoroughput) by enabling Jumbo Frames on GNU / Linux

Written examination in Computer Networks

Setting up DHCP, DNS and NFS on the CLTC Server

IT341 Introduction to System Administration Project II Configuring and Using a LAN

Comodo Dome Data Protection Software Version 3.8

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

Project #3: Implementing NIS

ISC DHCP: Quick Configuration with SolarWinds IP Address Manager

CIS 76 VLab Pod Setup

CHAPTER 7 ADVANCED ADMINISTRATION PC

Getting Started with PetaLinux SDK

EL Serial Port Server Installation Guide Errata

Supplies VLab pod 192 VMs shown above. Forum

StampA5D3x/PortuxA5/PanelA5. Quickstart Guide

To see how ARP (Address Resolution Protocol) works. ARP is an essential glue protocol that is used to join Ethernet and IP.

DNS & DHCP CONFIGURATION

Enter your answers to the questions in this lab using Canvas Quiz Ch.5 Global Unicast Address + Lab. Additional questions are included in the quiz.

Much is done on the Server, it20:

An Introduction to Networking with Linux and Linux Containers (LXC) Travis P. Bonfigli Technology Evangelist

MP01 Quick Start Guide

setting IP addresses copyright 2015 Robert Montante

Introduction to TCP/IP

CIS 76 VLab Pod Setup

Creating a Virtual Network with Virt-manager

LevelOne FBR User s Manual. 1W, 4L 10/100 Mbps ADSL Router. Ver

3. Click on the Download ZIP button under Raspbian Jessie, and select a folder to save it to.

Lab Using the CLI to Gather Network Device Information Topology

Using CFEngine with Open Nebula A CFEngine Special Topics Handbook

Experimenting Internetworking using Linux Virtual Machines Part I

Advanced Linux System Administra3on

LENS Server Maintenance Guide JZ 2017/07/28

OPENSTACK CLOUD RUNNING IN A VIRTUAL MACHINE. In Preferences, add 3 Host-only Ethernet Adapters with the following IP Addresses:

Sirindhorn International Institute of Technology Thammasat University

Chapter Summaries and Reading

UIP1869V User Interface Guide

Computer Network Addressing. The TCP/IP Layers and Addresses. Topics. The Internet Communication. The TCP/IP Layers and Addresses IP Address

Let us ping! First we will learn the Hello World of a networked machine.

Static and source based routing

CCNA 1 Chapter 2 v5.0 Exam Answers %

Addressing and Routing

Scenario: V114 Configuration on Vyatta

Session 16 Windows 7 Professional DNS & Active Directory

CCNA Discovery Server Live CD v2.0

Lab Configuring Dynamic and Static NAT (Solution)

WA2342 NoSQL Systems Comparison. Lab Server VM Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

NETWORK LAB 2 Configuring Switch Desktop

3 Connection, Shell Serial Connection over Console Port SSH Connection Internet Connection... 5

CIS 192 Linux Lab Exercise

Lab Configuring Dynamic and Static NAT (Instructor Version Optional Lab)

Linux+ Guide to Linux Certification, Third Edition. Chapter 12 Network Configuration

Installing and Configuring Devstack Newton for Infoblox Integration

Different ways to use Kon-Boot

MAC Address Filtering Setup (3G18Wn)

Lab - Connect to a Router for the First Time

Hostname and IP Address

Lab 14 - Introduction to the PABLO Payload Autonomy Computer

Lab : Challenge OSPF Configuration Lab. Topology Diagram. Addressing Table. Default Gateway. Device Interface IP Address Subnet Mask

Network+ Guide to Networks, Seventh Edition Chapter 2, Solutions

Practical classes Lab2. Integration of global services in enterprise environments I: The INTRANET

Raspberry Pi as a VPN Wireless Access Point

Openstack Installation Guide

Lab - Configure Wireless Router in Windows

Transcription:

LAN Setup Reflection Ask yourself some questions: o Does your VM have the correct IP? o Are you able to ping some locations, internal and external? o Are you able to log into other VMs in the classroom? o What went well? What went not so well, and how did you solve it? Remember: Snapshots, Admin Logs 1

it20 is a router it20 is functioning as a router, so it is connected to two networks cs.umb.edu it.cs.umb.edu In order to do this, it20 needs two Ethernet cards Each of these cards must be configured separately

Networking and the Boot Process When any machine boots, it knows nothing about the hardware or the network to which it is connected On Linux machines it gets this information from scripts in a special directory This directory is init.d o On Ubuntu the absolute path of this directory is /etc/init.d o On Red Hat, you will find it in /etc/rc.d/init.d

Networking and the Boot Process init.d contains shell scripts that can start, stop, and restart services Not all services are started automatically when you boot the machine, but all services come up, go down, or restart using scripts in /etc/init.d To bring up the network, a Linux machine runs the script networking, which is one of the many scripts in init.d The networking script reads configuration information from text files in /etc/network

Network Interface Controllers To connect to a network, a computer needs special hardware Usually, this hardware is an Ethernet card An Ethernet card is one example of a network interface controller, usually known by its acronym NIC A NIC is a hardware device that connects a computer to a network

Configuring a NIC When a Linux machine boots, it needs information to configure its network card It gets this information in the text file interfaces which, on Ubuntu, can be found in the /etc/network directory Its absolute pathname is /etc/network/interfaces All the information a Linux machine needs to connect to the network is found in interfaces So if you want to change anything, you need to edit this file However, only root can change this file, so you must use sudo to run a text editor on it

Configuring a NIC If you want to see how a machine is configured for the network, you can either: 1. Look at interfaces, or 2. Run ifconfig utility with no arguments If the computer has more than one network card, each one must be configured in interfaces The first network card is eth0, and the second one is eth1

/etc/network/interfaces on it20: # This file describes the network interfaces available on # your system and how to activate them. For more # information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface # The green ethernet cable into the motherboard jack. auto eth1 iface eth1 inet dhcp...

/etc/network/interfaces on it20: # The inside IT network # The yellow ethernet cable into the add-on PCI NIC. auto eth0 iface eth0 inet static address 10.0.0.1 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 The network card designated as eth0 is connected to it.cs.umb.edu (internal) The network card designated as eth1 is connected to cs.umb.edu (external)

The /etc/network/interfaces File For each network interface in /etc/network/interfaces, you see a line beginning with "auto" and followed by an interface name: auto eth0 This line tells the operating system to automatically bring up this NIC every time the system is booted Each network interface controller must have its own IP address, as well as some information There are two ways give the NIC its configuration information 1. Put the information in the interfaces file 2. Use DHCP

The /etc/network/interfaces File Two types of IP addresses that can be assigned to a NIC A static IP address A dynamic IP address obtained from an address pool A static IP address never changes, hence the term "static" A static IP must be either: Written into /etc/network/interfaces, or Specifically assigned to a machine via DHCP

The /etc/network/interfaces File DHCP stands for Dynamic Host Configuration Protocol DHCP allows a machine to obtain all its network configuration information from another machine the DHCP server In the entry below, the first Ethernet card, eth1 is configured to use DHCP auto eth1 iface eth1 inet dhcp Like eth0, the operating system will bring it up automatically at startup, because we use "auto"

The /etc/network/interfaces File The second Ethernet card is eth1 because the first is eth0 The first Ethernet card is configured to use a static IP address iface eth0 inet static address 10.0.0.1 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255

The /etc/network/interfaces File Since this NIC is not using DHCP, it must get the other network configuration information it needs from /etc/network/interfaces The netmask and network values tell it20 which NIC to use to send an IP packet If the packet is addressed to the local network, it.cs.umb.edu, then it uses one card; otherwise, it uses the other it20 (at IP address 10.0.0.1) is the gateway for the IT Lab network o This information is often provided in /etc/network/interfaces o On our network, however, it is provided in another file (/etc/dhcp/dhcpd.conf)

The /etc/network/interfaces File eth1 talks to the cs.umb.edu network as well as the greater Internet, to which it is connected! The broadcast address is given by this line broadcast 10.0.0.255 A packet sent to this address is sent to every machine on the local IT Lab network it20 is special, because it is a gateway You virtual machines need other two details for their NICs: 1) A gateway address. A gateway is a router that connects the local network to the Internet 2) The address of a DNS server

The Loopback Interface Every /etc/network/interfaces file has an entry for loopback o The loopback device is named lo o It is not a physical device. o Rather, it is a software emulation of a network card Any packets sent to the loopback device come right back to the machine, without ever going out on the network The loopback device is used for testing, and some services depend on it

The /etc/hosts file Every machine on the internet has an IP address But, you don't usually type the IP address itself Instead you enter a URL, which is much easier to remember Most of the time, your machine sends this name to a DNS server, which translates the name into an IP address, which you then uses to get the web page But, there is another way to turn a name into an IP address

The /etc/hosts file Your machine can also look in the text file /etc/hosts Each line of this text file contain a hostname and an IP address Using this file (instead of DNS) is fast because you don't have to send a network message to get it Who has edited /etc/hosts prior to this class?

Private IP Addresses Inside a network, only one machine can have a given private IP address But every local network can assign its machines addresses from certain IP address blocks For IPv4 these blocks are: 10.0.0.0-10.255.255.255 172.16.0.0-172.31.255.255 192.168.0.0-192.168.255.255 These blocks are for private IP addresses!

Private IP Addresses Public IP addresses are visible to the world at large, and you have to get them from your regional Internet registry Both IPv4 and IPv6 provide for private addressing Private addresses are only visible inside a network o Only one machine can have a given public IPv4 or IPv6 address o Two different machines can both have the same private address, say 10.0.0.1, as long as they are on different local networks

Private IP Addresses Because private IP addresses are invisible outside the network, they offer security from the dangers of the Internet They also make life easier for system administrators Translation: Makes life easier for YOU! :-) Every machine that is on the public internet needs a public IP address which can only be obtained from a registry But a system administrator can assign machines private address without having to get permission from anyone This gives you another measure of control over the networking process

Configuring DHCP The configuration file for DHCP is /etc/dhcp/dhcpd.conf This file has many entries, each starting with the name of thing that is being configured followed by an open curly brace { followed by a number of lines, each of which ends with a semi-colon ; and ending with a closing curly brace }

Ex.: For our it.cs.umb.edu network Configuring DHCP subnet 10.0.0.0 netmask 255.255.255.0 { allow unknown-clients; range 10.0.0.20 10.0.0.89; option domain-name-servers 10.0.0.251,10.0.0.252; option domain-name-servers 10.0.0.1,192.168.104.12; option routers 10.0.0.1; default-lease-time 600; max-lease-time 7200; }

The line Configuring DHCP range 10.0.0.20 10.0.0.89; specifies the range of private IP addresses. The DHCP server picks an address from this range each time a machine on our network asks for one We use static IP addresses for the virtual machines in this lab, but they will get that static IP address from DHCP DHCP can provide all the information necessary, for a machine to connect to the network

Configuring DHCP The lines option domain-name-servers 10.0.0.251,10.0.0.252; option domain-name-servers 10.0.0.1,192.168.104.12; specifies the value(s) that DHCP will give your virtual machine to use for DNS services The line option routers 10.0.0.1; specifies the router address DHCP gives your virtual machine. This is the "gateway" to which we referred, earlier.

Configuring DHCP The line default-lease-time 600; specifies, in minutes, how long you can use this this address When DHCP gives a machine an IP address, it is said to give that machine a lease on the address After the lease expires, a machine that uses the IP address from DHCP will ask for an extension of the lease

The line max-lease-time 7200; Configuring DHCP specifies the maximum minutes a machine can hold its lease After the lease expires, a machine asks for a new lease Each virtual machine will be assigned a specific static IP address, which it will get from an entry in /etc/dhcp/dhcpd.conf

Configuring DHCP The entry in question looks like this: host itvm2x-yz.it.cs.umb.edu { hardware ethernet 00:0c:29:c5:37:f1; } fixed-address 10.0.0.151; The series of hexadecimal numbers is the MAC address of the virtual machine that gets this static IP address

Doing without DHCP DHCP is not the only way to give your virtual machine an IP address You can give your machine a static IP address, by entering it in your /etc/network/interfaces file One way or another, each NIC on a machine must get the following information: Network address IP address Gateway address Broadcast address Netmask DNS Nameserver addresses It can get this from a DHCP server or from /etc/network/interfaces