netkit lab single-host Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group



Similar documents
Version Author(s) Web Description

netkit lab two-hosts Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

netkit lab static-routing Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

netkit lab bgp: multi-homed Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Introduction to NetGUI

netkit lab Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1.

walkthrough Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1.

netkit lab bgp: prefix-filtering Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group

Virtual Systems with qemu

Emulating Computer Networks with Netkit. Massimo Rimondini

VM-Series Firewall Deployment Tech Note PAN-OS 5.0

How To Install Openstack On Ubuntu (Amd64)

Linux TCP/IP Network Management

netkit lab load balancer web switch 1.1 Giuseppe Di Battista, Massimo Rimondini Version Author(s)

netkit lab web server and browser 1.2 Giuseppe Di Battista, Maurizio Patrignani, Massimo Rimondini Version Author(s)

NETWORK EMULATION AND NETKIT

Workshop on Scientific Applications for the Internet of Things (IoT) March

BASIC TCP/IP NETWORKING

bigbluebutton Open Source Web Conferencing

netkit lab MPLS VPNs with overlapping address spaces 1.0 S.Filippi, L.Ricci, F.Antonini Version Author(s)

Note: Guide not yet tested in the SFU Surrey Linux Lab (SUR4080). Some changes may be needed.

Twin Peaks Software High Availability and Disaster Recovery Solution For Linux Server

netkit lab Traffic Engineering with MPLS for Linux Version Author(s) F. Di Ciccio, F. Antonini (Kasko Networks S.r.l.)

VoIP Laboratory B How to re flash an IP04

This howto is also a bit old now. But I thought of uploading it in the howtos section, as it still works.

Setting Up A High-Availability Load Balancer (With Failover and Session Support) With Perlbal/Heartbeat On Debian Etch

netkit lab dns Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version Author(s)

Corso di Configurazione e Gestione di Reti Locali

3. The Domain Name Service

Network Administration and Monitoring

McAfee Asset Manager Sensor

netkit lab load balancer dns 1.2 Massimo Rimondini Version Author(s)

CELLTRACKS ANALYZER II. Networking Guide J40169EN

Host Configuration (Linux)

cnetmon: Ncurses-based Network Interface Activity Monitor

ODP REGIONAL NODE DEPLOYMENT QUICK GUIDE FOR TRAININGS

HIGH AVAILABILITY (HA) WITH OPENSIPS

Building a Penetration Testing Virtual Computer Laboratory

High Availability in Linux Firewalls using VRRP

TCP/IP Network Essentials. Linux System Administration and IP Services

Wireless LAN Apple Bonjour Deployment Guide

Canopy Wireless Broadband Platform

Create a virtual machine at your assigned virtual server. Use the following specs

A virtual network laboratory for learning IP networking

CS244A Review Session Routing and DNS

Written by Saif ur Rab Monday, 07 December :19 - Last Updated Monday, 27 December :19

Get quick control over your Linux server with server commands

IP networks Introduction to laboratory

Lab 1: Introduction to the network lab

IP Address: the per-network unique identifier used to find you on a network

Comodo MyDLP Software Version 2.0. Installation Guide Guide Version Comodo Security Solutions 1255 Broad Street Clifton, NJ 07013

Configuration of Cisco Routers. Mario Baldi

Configuring PPPoE. PPPoE server configuration

Getting started with ARM-Linux

Red Hat Linux Networking

Advanced SSH Tunneling by Bill Brassfield, Dev Ops Technical Consultant, Taos

1.0 Basic Principles of TCP/IP Network Communications

Tcpdump Lab: Wired Network Traffic Sniffing

LAB THREE STATIC ROUTING

IT Essentials II: Network Operating Systems V 3.0

Forensic Network Analysis Tools

Linux Networking. How Networking Works Configuring Networking in Linux Using redhat-config-network Network debugging Wireless networking IPv6

Abstract. Microsoft Corporation Published: November 2011

Module I-7410 Advanced Linux FS-11 Part1: Virtualization with KVM

Trend Micro Encryption Gateway 5

HOST AUTO CONFIGURATION (BOOTP, DHCP)

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

VLAN for DekTec Network Adapters

OpenCPN Garmin Radar Plugin

SNMP Manager User s Manual

Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice.

Lab 5 Explicit Proxy Performance, Load Balancing & Redundancy

Connections and wiring Diagram

Guide to IP Layer Network Administration with Linux

System administration basics

HOWTO: Set up a Vyatta device with ThreatSTOP in router mode

Deploying Samba in IPv6 Networks

Backup & Disaster Recovery Appliance User Guide

iproute2 and Advanced Linux Routing

Configuring Your Computer and Network Adapters for Best Performance

Procédure installation Open VPN sur Xivo

IPv6.marceln.org.

Pexip Reverse Proxy and TURN Server Deployment Guide

Linux Terminal Server Project

13. Configuring FTP Services in Knoppix

Setting up WiFi with BeagleBone Black

XV0500 Video MCU User's Guide

Abstract. Microsoft Corporation Published: August 2009

Technical Support Information Belkin internal use only

Performance of VMware vcenter (VC) Operations in a ROBO Environment TECHNICAL WHITE PAPER

Network Diagnostic Tools. Jijesh Kalliyat Sr.Technical Account Manager, Red Hat 15th Nov 2014

The Tor VM Project. Installing the Build Environment & Building Tor VM. Copyright The Tor Project, Inc. Authors: Martin Peck and Kyle Williams

Change Log. 2 per vices corporation

Virtual machine W4M- Galaxy: Installation guide

Plexxi Control Installation Guide Release 2.1.0

.Trustwave.com Updated October 9, Secure Web Gateway Version 11.0 Setup Guide

Transcription:

Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group netkit lab single-host Version Author(s) E-mail Web Description 2.2 G. Di Battista, M. Patrignani, M. Pizzonia, M. Rimondini contact@netkit.org http://www.netkit.org/ how to set up and manage a single virtual machine

copyright notice All the pages/slides in this presentation, including but not limited to, images, photos, animations, videos, sounds, music, and text (hereby referred to as material ) are protected by copyright. This material, with the exception of some multimedia elements licensed by other organizations, is property of the authors and/or organizations appearing in the first slide. This material, or its parts, can be reproduced and used for didactical purposes within universities and schools, provided that this happens for non-profit purposes. Information contained in this material cannot be used within network design projects or other products of any kind. Any other use is prohibited, unless explicitly authorized by the authors on the basis of an explicit agreement. The authors assume no responsibility about this material and provide this material as is, with no implicit or explicit warranty about the correctness and completeness of its contents, which may be subject to changes. This copyright notice must always be redistributed together with the material, or its portions.

single host netkit little by little: just a single virtual machine suggestion: before setting up a netkit lab, always make a clear diagram of the scenario that you are going to emulate! a simple scenario: 10.0.0.0/24 pc1 eth0 collision domain 0 10.0.0.1/24

step 1 creating a virtual machine host machine list list currently active vms user@localhost:~$ vlist USER VHOST PID SIZE INTERFACES Total virtual machines: 0 (you), 0 (all users). Total consumed memory: 0 KB (you), 0 KB (all users). user@localhost:~$ vstart pc1 --eth0=a start a vm whose name is ispc1 that has a network interface on on the collision domain called A a virtual filesystem for for pc1 pc1isis automatically created; it itwill willbe bestored inside pc1.disk on on the the host hostmachine

step 2 logging on pc1 a window containing pc1 s console pops up once the bootstrap of pc1 is terminated, a shell prompt is automatically displayed pc1 --- Netkit phase 2 init script terminated pc1 login: root (automatic login) Linux pc1 2.6.11.7 #1 Tue Sep 13 18:38:01 CEST 2005 i686 GNU/Linux Welcome to Netkit pc1:~# now you are the administrator (root) of pc1

step 3 back to the host machine host machine console user@localhost:~$ vlist USER VHOST PID SIZE INTERFACES user pc1 2550 12380 eth0 @ A Total virtual machines: 1 (you you), 1 (all users). Total consumed memory: 12380 KB (you you), 12380 KB (all users). user@localhost:~$ ls -l *.disk -rw rw-r-- --r-- 1 user group 630358016 2006-02 02-02 16:07 pc1.disk user@localhost:~$ user list list vm filesystems size (actual disk usage is issmaller) list list currently active vms update time file name

step 4 configuring the network interface of pc1 pc1 pc1:~# ifconfig eth0 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255 up pc1:~# ifconfig eth0 eth0 Link encap:ethernet HWaddr FE:FD:0A:00:00 00:01 inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::fcfd fcfd:aff aff:fe00:1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:238 (238.0 b) Interrupt:5 interface status pc1:~# automatically assigned mac macaddress

step 5 checking the routing table the routing table has been automatically updated when the interface has been brought up: pc1 pc1:~# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 * 255.255.255.0 U 0 0 0 eth0 pc1:~# next hop the if ifstatus isup other labs show how to manually alter the routing table

step 6 shutting down the vm three possibilities from inside pc1 pc1:~# halt from outside host machine user@localhost:~$ vhalt pc1 Halting virtual machine "pc1" (PID 3559) owned by user [... ] user@localhost:~$

step 6 shutting down the vm from outside, brute force host machine user@localhost:~$ vcrash pc1 ============= Crashing virtual machine "pc1" (PID 4830) ========= Virtual machine owner: user Virtual machine mconsole socket: /home/user user/.netkit.netkit/mconsole mconsole/pc1/ /pc1/mconsole Crashing... done. user@localhost:~$ unless you chose to use vcrash, pc1 s filesystem is still stored in file pc1.disk, so it will be used again when pc1 is restarted

step 7 a permanent configuration after halting pc1, if you want to restart it you also have to reconfigure its network interface eth0 a permanent configuration can be obtained, e.g., by editing /etc/network/interfaces (inside the vm pc1) and appending the following lines: tips: auto eth0 iface eth0 inet static address 10.0.0.1 network 10.0.0.0 netmask 255.255.255.0 you can use an editor like vi or mcedit the permanent settings of a vm can be configured inside the same files that would be used in a real linux box removing the vm filesystem (pc1.disk) removes any permanent configuration as well

step 8 restarting network services at next boot pc1 will be automatically configured by the os which will perform the suitable ifconfig and route commands based on the contents of /etc/network/interfaces the new configuration can also be fetched without rebooting by restarting network services: pc1 pc1:~# /etc etc/init.d init.d/networking networking restart Reconfiguring network interfaces... done. pc1:~#