Download The Book of GNS3 PDF

TitleThe Book of GNS3
File Size14.6 MB
Total Pages272
Table of Contents
                            Brief Contents
Contents in Detail
Foreword
Acknowledgments
Introduction
	Who This Book Is For
	What's in This Book
		My Approach
		Book Overview
Chapter 1: Introducing GNS3
	Why Use GNS3?
		Emulated Hardware
		Simulated Operating Systems
		Scalability with the GNS3 Server
		Virtual Connectivity
	Open Source Integration
		The Dynamips Hypervisor
		QEMU and VirtualBox
	A Few Limitations
		Some Assembly Required
		Limited Emulation
		Hamstrung Network Performance
	Final Thoughts
Chapter 2: Installing a Basic GNS3 System
	General Requirements
	Installing on Microsoft Windows
	Installing on OS X
	Installing on Ubuntu Linux
		Installing GNS3 from Packages
		Installing GNS3 from Source Code
	GNS3 Appliances
		A Few Pros and Cons
		GNS3 WorkBench
		Installing GNS3 WorkBench
	Final Thoughts
Chapter 3: Configuration
	Acquiring an IOS Image
	Setting Up Your First IOS Router
		Configuring Dynamips
		Adding IOS Images to GNS3
		Setting a Manual Idle-PC Value
	Final Thoughts
Chapter 4: Creating and Managing Projects
	Project Management Overview
		Terminology
		Screen Layout
	Using the GNS3 Toolbar
		First Toolbar Group
		Second Toolbar Group
		Third Toolbar Group
		Fourth Toolbar Group
	Using the Devices Toolbar
	Creating Your First Project
		Working with Routers
		Creating Links Between Your Routers
		Configuring Virtual Hardware
		Starting, Stopping, and Pausing Routers
		Logging On to Routers
	Ethernet Switch Nodes
	Changing Symbols and Organizing Your Devices
	Final Thoughts
Chapter 5: Integrating Hosts and Using Wireshark
	Virtual PC Simulator
		Installing VPCS
		VPCS Commands
		VPCS IP Addressing
	VirtualBox
		Installing on Windows
		Installing on OS X
		Installing on Linux
		Importing Appliances
		VirtualBox Preferences
		VirtualBox Virtual Machine Settings
		Using VirtualBox Hosts in a Project
		Linking VirtualBox Host Nodes to Other Devices
		Simple VirtualBox Project Using a Linux Virtual Machine
	Wireshark
		Installing on Windows
		Installing on OS X
		Installing on Linux
		Capturing Packets in GNS3
	Final Thoughts
Chapter 6: Juniper Olive and vSRX Firefly
	Installing QEMU on Windows and OS X
	Installing QEMU on Linux
	Introducing Juniper
	Installing Juniper
		Process Overview
		Acquiring FreeBSD
		Acquiring Juniper Olive Software
	Creating a Juniper Olive CD Image File
		Creating an ISO in Windows
		Creating an ISO in OS X
		Creating an ISO in Linux
	Installing and Configuring FreeBSD Using QEMU
		Preparing Your Build Directory
		Installing a Junos-Friendly FreeBSD System
	Installing the Juniper Olive Package in FreeBSD
		Getting Your Olive Up and Running
		Backing Up Juniper Olive
	Configuring a Juniper Router in GNS3
		Adding the Juniper Virtual Machine to GNS3
		Adding Ethernet Interfaces
	Testing a Juniper Router
	Running Juniper vSRX Firefly
		Creating a Firefly Virtual Machine with VirtualBox
		Giving Your Virtual Machine More Processors
		Adding vSRX Firefly to GNS3
		Creating a Project with a Zone-Based Firewall
	Final Thoughts
Chapter 7: Device Nodes, Live Switches, and the Internet
	Built-in Device Nodes
	Node Configurator
	Ethernet Hub
	EtherSwitch Router
	Frame Relay Switch
		Simple Frame Relay Hub and Spoke Configuration
		Creating a Frame Relay Switch Using IOS
	ATM Switch
	Cloud Nodes
	Connecting GNS3 Devices to Physical Hardware
		Dynamips Permissions
		Preparing Your PC for a Bridge
		Using a Loopback Adapter on Windows
		TUN/TAP Drivers on OS X
		TUN/TAP Drivers on Ubuntu Linux
	Connecting to Live Switches
		Configuring a Standard 802.1Q Trunk
		Creating the Elusive Breakout Switch
		Optional Breakout Switch Configuration
		Using Multiple Adapters in Your PC
	Connecting GNS3 Devices to the Internet
		Configuring Windows
		Configuring Unix-Based Systems
		Creating a Simple Network
	Final Thoughts
Chapter 8: Cisco ASA, IDS/IPS, and IOS-XRv
	Cisco Configuration Professional
		Project Configuration
		CCP Installation
		Running CCP
	Cisco ASA Firewall
		Acquiring an Image
		Prepping the ASA Image for GNS3
		Configuring GNS3 for ASA
		Testing an ASA in GNS3
	ASDM Installation
	Cisco IDS/IPS
		Acquiring an IDS/IPS Image
		Creating a QEMU-Ready IDS/IPS System
		Hijacking the Hardware
		Testing IDS/IPS (or Patience Is a Virtue)
		Configuring GNS3 for IDS/IPS
		Verifying IDS/IPS in GNS3
	Cisco IOS-XRv
		Configuring GNS3 for IOS-XRv
		Creating a Simple IOS-XR Project
	Final Thoughts
Chapter 9: Cisco IOS on Unix and NX-OSv
	Cisco IOU
		What IOU Means to GNS3
		Switching, Switching, and More Switching!
		IOU Images
		Things to Know Before Installing IOU
	Setting Up IOU on a Linux PC
		Installing IOU
		Creating a License File
		Configuring GNS3
	Using the GNS3 IOU Virtual Machine on Windows and OS X
		Importing the GNS3 IOU Virtual Machine into VirtualBox
		Uploading IOU Image Files
		Configuring GNS3 for IOU
		IOU in Action
	NX-OSv
		Importing NX-OSv into VirtualBox
		Configuring GNS3 for NX-OSv
		NX-OSv in Action
	Final Thoughts
Chapter 10: Cool Things to Do on a Rainy Day
	Managing Devices from an Access Server
		Installing the Virtual Interface
		Preparing the GNS3 Server
		Creating a Virtual Access Server in GNS3
		Configuring a Cisco IP Hostname Table
		Seeing the Virtual Access Server in Action
	Deploying Configurations to Real Hardware
		Exporting GNS3 Configurations to Cisco Routers
		Importing Cisco Router Configurations into GNS3
	Copying GNS3 Projects Between Platforms
		IOS-Only Projects
		Projects with IOU Devices
		Projects with VirtualBox Devices
	Exploring the GNS3 Console
	Creating Projects Using Multiple PCs
		A Dynamips Client/Server Setup
		Creating a GNS3 Uberlab
	Nerdy Labs for Fun and Profit
		Preparing for Cisco Exams
		Securing Your Networks
		Practicing Real-World Scenarios
	Final Thoughts
Appendix A: Help! I’ve Fallen and I Can’t Get Up
	Identifying the Problem
	Sudden Problems
		Stopping Dynamips Crashes
		When IOS Images Fail to Load
		Resolving IOS Memory Errors
		Resolving Network IO Errors
		Correcting Console Problems
	Feature Problems
		Configuration Issues
		Using Unsupported IOS Images
	The Nuclear Option
	Overburdened Hardware
	Resolving Port Number Conflicts
	Troubleshooting an ASA
	Conserving Resources
		Select Devices Carefully
		Optimize Idle-PC Values
	Backing Up Your Projects
	Welcome to the Jungle
	Final Thoughts
Appendix B: Cisco Hardware Compatible with GNS3
	Supported Cisco Hardware
	IOS Compatibility
Appendix C: NM-16ESW and IOU L2 Limitations
	Unsupported NM-16ESW Features
	Unsupported Features in Cisco IOU L2 Images
Glossary
Index
Resources
About the Author
                        
Document Text Contents
Page 1

B U I L D V I R T U A L
N E T W O R K S A N D
S A V E Y O U R S E L F

S O M E D O U G H

B U I L D V I R T U A L
N E T W O R K S A N D
S A V E Y O U R S E L F

S O M E D O U G H

T E C H N I C A L R E V I E W
B Y J E R E M Y G R O S S M A N N ,

C O - F O U N D E R O F G N S 3

J A S O N C . N E U M A N N

T H E B O O K O F

G N S 3
B U I L D V I R T U A L N E T W O R K L A B S U S I N G

C I S C O , J U N I P E R , A N D M O R E

GNS3 is open source software that emulates Cisco
router and switch hardware to simulate complex
networks. You can use GNS3 on any computer to
experiment with various router configurations, study
for that next big Cisco certification, or build the
ubernetwork of your wildest dreams—all without
plugging in a single physical network cable.

The Book of GNS3 will teach you how to harness the
powerful GNS3 software to create your own virtual
networks with Cisco and Juniper devices. Hands-on
tutorials throughout show you how to:

• Configure Cisco IOS and ASA devices in GNS3

• Add Juniper routers to your projects with VirtualBox
and QEMU

• Connect GNS3’s hub, switch, and cloud devices to
physical hardware

• Integrate Cisco IOU virtual machines for advanced
switching features

• Simulate a Cisco access server to practice managing
devices

• Build bigger labs by distributing project resources
across multiple computers

Why set up all of that expensive physical hardware
before you know whether it will all work together?
Learn how to build virtual networks with The Book of
GNS3, and stop reconfiguring your lab every time
you want to test something new.

A B O U T T H E A U T H O R

Jason C. Neumann is an active participant in the
GNS3 project, supplying code, moderating forums,
and beta testing the software on several platforms.
Neumann is also a network engineer with more than
20 years of experience, and holds multiple certifications
from Cisco, Juniper, Microsoft, Novell, and VMware.
He is the author of Cisco Routers for the Small Business
(Apress).

N
E

U
M

A
N

N
T

H
E

B
O

O
K

O
F

G
N

S
3

SH
ELV

E IN
:

CO
M

PU
TERS/

N
ETW

O
RKIN

G

$39.95 ($45.95 CDN)

www.nostarch.com

TH E F I N EST I N G E E K E NTE RTA I N M E NT ™

“ I L I E F LAT .”

Th is book uses a durab le b ind ing that won’t snap shut.

C O V E R S G N S 3 1. x

Page 2

THE BOOK OF GNS3

Page 136

116 Chapter 7

to Ethernet ports on your live project switches. After checking those con-
nections, start GNS3 and configure a Cloud node using the Linux VLANs
you created previously, as shown in Figure 7-14.

Figure 7-14: Configuring a Cloud node using Linux VLANs

N o T e Even though you’re using Linux, it’s important to use the Generic Ethernet NIO and
not the Linux Ethernet NIO. Otherwise, VLAN tagging may not work.

When you’re finished adding break-
out VLANs to the Cloud node, add a
couple of routers to your workspace
and create a link from each router to a
breakout VLAN on the Cloud node. In
Figure 7-15, router R1 (F0/0) is linked
to VLAN 10 in the Cloud using nio_
gen_eth:eth0.10, and R2 (F0/0) is linked
to VLAN 20 using nio_gen_eth:eth0.20.

Because the breakout switch is only
used to split VLANs into multiple physi-
cal ports, it requires no further con-
figuration. In this example, router R1
is now linked to any live switch plugged
into breakout switchport f0/2, and R2
should be linked to any live switch
plugged into port f0/3.

R1

F0/0

nio_gen_eth:eth0.10

F0/0

R2

Cloud 1

nio_gen_eth:eth0.20

Figure 7-15: Virtual routers connected
to Linux VLANs using a Cloud node

Page 137

Device Nodes, Live Switches, and the Internet 117

N o T e If you create large projects using many VLANs, you may want to assign only one
Linux VLAN interface per Cloud node to help clarify the layout in your workspace.

Your GNS3 routers should now be able to communicate with one or
more real Cisco switches.

Optional Breakout Switch Configuration
If you’re running Windows or OS X, you may be able to use a GNS3 Switch
node to link your project to a breakout switch, as shown in Figure 7-16. In
this setup, the breakout switch is configured in the same way as previously,
but you’ll need to make some tweaks to your PC. The Ethernet switch node
connects to a Cloud node using an NIO interface configured with a loop-
back adapter on Windows or a TAP interface on OS X. The virtual adapter
is bridged to your PC’s physical Ethernet adapter. This allows Cloud 1 to
connect to the breakout switch using your PC’s Ethernet adapter.

R1

F0/0

F0/0

R2

SW1
1

2

Bridged NIO
Adapter

Cloud 1

3

Use loopback on Windows
or TAP on OS X.

Figure 7-16: Breakout switch configuration using an Ethernet switch node

For the breakout switch to work, you should increase the MTU size
on your PC’s physical Ethernet adapter, but not all adapters support this
feature.

If you’re a OS X user, the MTU size must be increased on both your
physical adapter and virtual adapter. To increase the MTU size from the
command line, use the following example:

$ sudo ifconfig en0 mtu 1546
$ sudo ifconfig tap0 mtu 1546

N o T e On OS X, configure the virtual and physical adapter using the same MTU size, or
the bridge creation will fail.

You may have to check your Ethernet adapter documentation to config-
ure your adapter on Windows. On many adapters, however, the MTU setting
can be found under the Advanced properties of the adapter, as shown in
Figure 7-17. In this example the Jumbo Packet value is set to 9014 bytes on an
Intel PRO/1000 MT card.

Page 271

RESOURCES
Visit http://nostarch.com/gns3/ for resources, errata, and more information.

phone:
800.420.7240 or
415.863.9900

email:
[email protected]

web:
www.nostarch.com

ThE BOOk Of Pf, 3Rd EdiTiOn
A No-Nonsense Guide to the
OpenBSD Firewall
by peter n.m. hansteen
october 2014, 248 pp., $34.95
isbn 978-1-59327-589-1

ThE TCP/iP GUidE
A Comprehensive, Illustrated
Internet Protocols Reference
by charles m. kozierok
october 2005, 1616 pp., $99.95
isbn 978-159327-047-6
hardcover

BlaCk haT PyThOn
Python Programming for
Hackers and Pentesters
by justin seitz
dcember 2014, 192 pp., $34.95
isbn 978-1-59327-590-7

ThE linUx COmmand linE
A Complete Introduction
by william e. shotts, jr.
january 2012, 480 pp., $39.95
isbn 978-1-59327-389-7

PRaCTiCal PaCkET analySiS,
2nd EdiTiOn
Using Wireshark to Solve
Real-World Network Problems
by chris sanders
july 2011, 280 pp., $49.95
isbn 978-1-59327-266-1

ThE PRaCTiCE Of nETwORk
SECURiTy mOniTORinG
Understanding Incident Detection
and Response
by richard bejtlich
july 2013, 376 pp., $49.95
isbn 978-1-59327-509-9

More no-nonsense books from nO STaRCh PRESS

Page 272

B U I L D V I R T U A L
N E T W O R K S A N D
S A V E Y O U R S E L F

S O M E D O U G H

B U I L D V I R T U A L
N E T W O R K S A N D
S A V E Y O U R S E L F

S O M E D O U G H

T E C H N I C A L R E V I E W
B Y J E R E M Y G R O S S M A N N ,

C O - F O U N D E R O F G N S 3

J A S O N C . N E U M A N N

T H E B O O K O F

G N S 3
B U I L D V I R T U A L N E T W O R K L A B S U S I N G

C I S C O , J U N I P E R , A N D M O R E

GNS3 is open source software that emulates Cisco
router and switch hardware to simulate complex
networks. You can use GNS3 on any computer to
experiment with various router configurations, study
for that next big Cisco certification, or build the
ubernetwork of your wildest dreams—all without
plugging in a single physical network cable.

The Book of GNS3 will teach you how to harness the
powerful GNS3 software to create your own virtual
networks with Cisco and Juniper devices. Hands-on
tutorials throughout show you how to:

• Configure Cisco IOS and ASA devices in GNS3

• Add Juniper routers to your projects with VirtualBox
and QEMU

• Connect GNS3’s hub, switch, and cloud devices to
physical hardware

• Integrate Cisco IOU virtual machines for advanced
switching features

• Simulate a Cisco access server to practice managing
devices

• Build bigger labs by distributing project resources
across multiple computers

Why set up all of that expensive physical hardware
before you know whether it will all work together?
Learn how to build virtual networks with The Book of
GNS3, and stop reconfiguring your lab every time
you want to test something new.

A B O U T T H E A U T H O R

Jason C. Neumann is an active participant in the
GNS3 project, supplying code, moderating forums,
and beta testing the software on several platforms.
Neumann is also a network engineer with more than
20 years of experience, and holds multiple certifications
from Cisco, Juniper, Microsoft, Novell, and VMware.
He is the author of Cisco Routers for the Small Business
(Apress).

N
E

U
M

A
N

N
T

H
E

B
O

O
K

O
F

G
N

S
3

SH
ELV

E IN
:

CO
M

PU
TERS/

N
ETW

O
RKIN

G

$39.95 ($45.95 CDN)

www.nostarch.com

TH E F I N EST I N G E E K E NTE RTA I N M E NT ™

“ I L I E F LAT .”

Th is book uses a durab le b ind ing that won’t snap shut.

C O V E R S G N S 3 1. x

Similer Documents