Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Networking All-in-One For Dummies®, 7th Edition
PREMIUM
Số trang
979
Kích thước
34.6 MB
Định dạng
PDF
Lượt xem
1578

Networking All-in-One For Dummies®, 7th Edition

Nội dung xem thử

Mô tả chi tiết

Networking

ALL-IN-ONE

Networking

ALL-IN-ONE

7th Edition

by Doug Lowe

Networking All-in-One For Dummies®, 7th Edition

Published by: John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, www.wiley.com

Copyright © 2018 by John Wiley & Sons, Inc., Hoboken, New Jersey

Published simultaneously in Canada

No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any

means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections

107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the Publisher. Requests to

the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River

Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.

Trademarks: Wiley, For Dummies, the Dummies Man logo, Dummies.com, Making Everything Easier, and related

trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc., and may not be used without written

permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated

with any product or vendor mentioned in this book.

LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHOR HAVE USED THEIR

BEST EFFORTS IN PREPARING THIS BOOK, THEY MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT

TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY

IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY

BE CREATED OR EXTENDED BY SALES REPRESENTATIVES OR WRITTEN SALES MATERIALS. THE ADVICE AND

STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION. YOU SHOULD CONSULT WITH

A PROFESSIONAL WHERE APPROPRIATE. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR

DAMAGES ARISING HEREFROM.

For general information on our other products and services, please contact our Customer Care Department within

the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit

https://hub.wiley.com/community/support/dummies.

Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with

standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to

media such as a CD or DVD that is not included in the version you purchased, you may download this material at

http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com.

Library of Congress Control Number: 2018934082

ISBN 978-1-119-47160-8 (pbk); ISBN 978-1-119-47162-2 (ebk); ISBN 978-1-119-47159-2 (ebk)

Manufactured in the United States of America

10 9 8 7 6 5 4 3 2 1

Contents at a Glance

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Book 1: Networking Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

CHAPTER 1: Welcome to Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

CHAPTER 2: Network Infrastructure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

CHAPTER 3: Switches, Routers, and VLANs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

CHAPTER 4: Servers and Virtualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

CHAPTER 5: Cloud Computing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

Book 2: Understanding Network Protocols . . . . . . . . . . . . . . . . . . 75

CHAPTER 1: Network Protocols and Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

CHAPTER 2: TCP/IP and the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

CHAPTER 3: IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

CHAPTER 4: Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

CHAPTER 5: DHCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

CHAPTER 6: DNS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

CHAPTER 7: TCP/IP Tools and Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

Book 3: Planning a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

CHAPTER 1: Local Area Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

CHAPTER 2: Wide Area Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223

CHAPTER 3: Server Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

CHAPTER 4: Virtualization Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245

CHAPTER 5: Storage Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257

Book 4: Implementing a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . 269

CHAPTER 1: Network Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271

CHAPTER 2: Wireless Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283

CHAPTER 3: Windows Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303

CHAPTER 4: Mac Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313

CHAPTER 5: Network Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323

CHAPTER 6: Virtual Private Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329

Book 5: Implementing Virtualization . . . . . . . . . . . . . . . . . . . . . . . 335

CHAPTER 1: Hyper-V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337

CHAPTER 2: VMware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355

CHAPTER 3: Azure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365

CHAPTER 4: Amazon Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379

CHAPTER 5: Desktop Virtualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397

Book 6: Implementing Windows Server 2016 . . . . . . . . . . . . . . 405

CHAPTER 1: Installing Windows Server 2016 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407

CHAPTER 2: Configuring Windows Server 2016 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421

CHAPTER 3: Configuring Active Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437

CHAPTER 4: Configuring User Accounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447

CHAPTER 5: Configuring a File Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469

CHAPTER 6: Using Group Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483

CHAPTER 7: Configuring Internet Information Services . . . . . . . . . . . . . . . . . . . . . . 495

CHAPTER 8: Configuring Exchange Server 2016 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 505

CHAPTER 9: Configuring SQL Server 2014 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523

CHAPTER 10: Windows Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537

CHAPTER 11: Using PowerShell . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565

Book 7: Implementing Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583

CHAPTER 1: Installing a Linux Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585

CHAPTER 2: Configuring Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597

CHAPTER 3: Basic Linux Network Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609

CHAPTER 4: Running DHCP and DNS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621

CHAPTER 5: Doing the Samba Dance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631

CHAPTER 6: Running Apache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639

CHAPTER 7: Running Sendmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651

CHAPTER 8: Linux Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661

Book 8: Managing a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 691

CHAPTER 1: Welcome to Network Administration . . . . . . . . . . . . . . . . . . . . . . . . . . . 693

CHAPTER 2: Managing Remotely . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707

CHAPTER 3: Managing Network Assets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 725

CHAPTER 4: Managing the Help Desk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 737

CHAPTER 5: Solving Network Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 749

CHAPTER 6: Managing Software Deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 765

CHAPTER 7: Managing Email Retention . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 777

CHAPTER 8: Managing Mobile Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793

Book 9: Managing Cybersecurity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807

CHAPTER 1: Welcome to Cybersecurity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809

CHAPTER 2: Managing Firewalls and Virus Protection . . . . . . . . . . . . . . . . . . . . . . . . 821

CHAPTER 3: Managing Spam . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833

CHAPTER 4: Managing Backups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 845

CHAPTER 5: Managing Disaster Recovery and Business Continuity Planning . . . . 859

Appendix A: Directory of Useful Websites . . . . . . . . . . . . . . . . . 867

Appendix B: Glossary............................................ 875

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 899

Table of Contents ix

Table of Contents

INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

About This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Foolish Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Icons Used in This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Beyond the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Where to Go from Here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

BOOK 1: NETWORKING BASICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

CHAPTER 1: Welcome to Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Defining a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Why Bother with a Network? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Sharing files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Sharing resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

Sharing programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Servers and Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Dedicated Servers and Peers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

What Makes a Network Tick? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Networks Big and Small . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

It’s Not a Personal Computer Anymore! . . . . . . . . . . . . . . . . . . . . . . . . 17

Understanding Network Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Bus topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

Star topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Expanding stars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Ring topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

Mesh topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

The Network Administrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

CHAPTER 2: Network Infrastructure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Introducing Infrastructure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Introducing Network Protocols and Standards....................26

Understanding Cable Infrastructure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Twisted-pair cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

RJ45 connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Patch panels and patch cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Repeaters and hubs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Understanding Ports, Interfaces, and MAC Addresses . . . . . . . . . . . . 30

Understanding Packets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

Understanding Collisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

Understanding Broadcast Packets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

Understanding Wireless Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36

x Networking All-in-One For Dummies

CHAPTER 3: Switches, Routers, and VLANs . . . . . . . . . . . . . . . . . . . . . . . . . 37

Understanding Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Learning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Forwarding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

Flooding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

Looking Deeper into Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

Collision domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

Bridging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

SFP ports and uplinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

Broadcast domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

Managed and unmanaged switches . . . . . . . . . . . . . . . . . . . . . . . . . 47

Understanding Routers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

Network address translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

Virtual private network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

Understanding VLANs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

CHAPTER 4: Servers and Virtualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53

Understanding Network Operating Systems......................53

Network services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

File-sharing services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

Multitasking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

Directory services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

Security services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

What’s Important in a Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

Scalability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

Reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

Service and support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

Components of a Server Computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58

Motherboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Hard drives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Network interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Considering Server Form Factors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

Tower case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

Rack mount...............................................61

Blade servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

Considering Virtualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

CHAPTER 5: Cloud Computing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

Introducing Cloud Computing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

Looking at the Benefits of Cloud Computing . . . . . . . . . . . . . . . . . . . . 66

Table of Contents xi

Detailing the Drawbacks of Cloud Computing . . . . . . . . . . . . . . . . . . . 68

Examining Three Basic Kinds of Cloud Services . . . . . . . . . . . . . . . . . . 69

Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69

Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Infrastructure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

Public Clouds versus Private Clouds . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

Introducing Some of the Major Cloud Providers . . . . . . . . . . . . . . . . . 72

Amazon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

Google . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

Microsoft . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

Getting Into the Cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

BOOK 2: UNDERSTANDING NETWORK PROTOCOLS . . . . . . 75

CHAPTER 1: Network Protocols and Standards . . . . . . . . . . . . . . . . . . . 77

Understanding Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

Understanding Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

Seeing the Seven Layers of the OSI Reference Model . . . . . . . . . . . . . 80

The physical layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

The data link layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82

The network layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

The transport layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

The session layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

The presentation layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

The application layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

Following a Packet through the Layers . . . . . . . . . . . . . . . . . . . . . . . . . 89

The Ethernet Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90

Standard Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

Fast Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

Gigabit Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

Beyond gigabit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

The TCP/IP Protocol Suite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95

TCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

UDP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

Other Protocols Worth Knowing About . . . . . . . . . . . . . . . . . . . . . . . . . 98

CHAPTER 2: TCP/IP and the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

What Is the Internet? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

A Little Internet History.......................................101

TCP/IP Standards and RFCs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

The TCP/IP Protocol Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

Network interface layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

Network layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

Transport layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

Application layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

xii Networking All-in-One For Dummies

CHAPTER 3: IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

Understanding Binary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

Counting by ones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

Doing the logic thing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

Working with the binary Windows Calculator . . . . . . . . . . . . . . . . 111

Introducing IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

Networks and hosts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112

The dotted-decimal dance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

Classifying IP Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114

Class A addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

Class B addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

Class C addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118

Subnetting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118

Subnets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

Subnet masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

Network prefix notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

Default subnets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

The great subnet roundup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

IP block parties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

Private and public addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

Network Address Translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124

CHAPTER 4: Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

Considering the Usefulness of Routers . . . . . . . . . . . . . . . . . . . . . . . . 126

Connecting to the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

Connecting remote locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

Splitting up large networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129

Understanding Routing Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

CHAPTER 5: DHCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

Understanding DHCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135

Configuration information provided by DHCP . . . . . . . . . . . . . . . 136

DHCP servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136

How DHCP actually works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137

Understanding Scopes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

Feeling excluded? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

Reservations suggested . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140

How long to lease? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

Working with a DHCP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

Installing a Windows Server 2016 DHCP server . . . . . . . . . . . . . . 142

Configuring a new scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143

How to Configure a Windows DHCP Client . . . . . . . . . . . . . . . . . . . . . 147

Automatic private IP addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

Renewing and releasing leases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

Table of Contents xiii

CHAPTER 6: DNS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

Understanding DNS Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151

Domains and domain names...............................152

Fully qualified domain names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

Top-Level Domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

Generic domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

Geographic domains . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

The Hosts File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

Understanding DNS Servers and Zones . . . . . . . . . . . . . . . . . . . . . . . . 160

Zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

Primary and secondary servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162

Root servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164

Caching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

Understanding DNS Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167

A real-life DNS example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168

Zone Files and Resource Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169

SOA records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170

NS records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

A records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

CNAME records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

PTR records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

MX records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173

Reverse Lookup Zones . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174

Working with the Windows DNS Server . . . . . . . . . . . . . . . . . . . . . . . . 175

How to Configure a Windows DNS Client . . . . . . . . . . . . . . . . . . . . . . 177

CHAPTER 7: TCP/IP Tools and Commands . . . . . . . . . . . . . . . . . . . . . . . . 179

Using the arp Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179

Using the hostname Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180

Using the ipconfig Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

Displaying basic IP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . 181

Displaying detailed configuration information . . . . . . . . . . . . . . . 181

Renewing an IP lease . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182

Releasing an IP lease . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

Flushing the local DNS cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

Using the nbtstat Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

Using the netstat Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

Displaying connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

Displaying interface statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186

Using the nslookup Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188

Looking up an IP address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188

Using nslookup subcommands . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

Displaying DNS records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

Locating the mail server for an email address . . . . . . . . . . . . . . . 192

Taking a ride through DNS-Land . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

xiv Networking All-in-One For Dummies

Using the pathping Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196

Using the ping Command.....................................197

Using the route Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198

Displaying the routing table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198

Modifying the routing table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201

Using the tracert Command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202

BOOK 3: PLANNING A NETWORK . . . . . . . . . . . . . . . . . . . . . . . . . . . 205

CHAPTER 1: Local Area Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

Making a Network Plan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

Being Purposeful . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208

Taking Stock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

What you need to know . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

Programs that gather information for you . . . . . . . . . . . . . . . . . . 211

Considering Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212

Surmising Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213

Planning the Network Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216

Planning the TCP/IP Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . 217

Drawing Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219

More Questions Your Network Plan Should Address . . . . . . . . . . . . 220

CHAPTER 2: Wide Area Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223

Connecting to the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223

Connecting with cable or DSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224

Connecting with T1 lines...................................225

Connecting with fiber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226

Connecting with a cellular network . . . . . . . . . . . . . . . . . . . . . . . . 227

Choosing a Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227

Choosing a small office router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228

Choosing an enterprise router . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229

Choosing a cellular router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230

Securing Your Connection with a Firewall . . . . . . . . . . . . . . . . . . . . . . 230

Providing Redundancy for Your Internet Connection . . . . . . . . . . . . 232

Securing Connections to Remote Locations and Users . . . . . . . . . . . 233

CHAPTER 3: Server Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235

Deciding How Many Servers You Need . . . . . . . . . . . . . . . . . . . . . . . . 235

Deciding Which Servers You Need . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236

Domain controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236

DHCP servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237

Mail servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237

File servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238

Print servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239

Web servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239

Database servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240

Tải ngay đi em, còn do dự, trời tối mất!