Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Mastering Linux Network Administration
Mastering Linux Network Administration

Mastering Linux Network Administration: Master the skills and techniques that are required to design, deploy, and administer real Linux-based networks

Arrow left icon
Profile Icon Jay LaCroix
Arrow right icon
Mex$631.99 Mex$902.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (7 Ratings)
eBook Nov 2015 260 pages 1st Edition
eBook
Mex$631.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial
Arrow left icon
Profile Icon Jay LaCroix
Arrow right icon
Mex$631.99 Mex$902.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (7 Ratings)
eBook Nov 2015 260 pages 1st Edition
eBook
Mex$631.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial
eBook
Mex$631.99 Mex$902.99
Paperback
Mex$1128.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Mastering Linux Network Administration

Chapter 2. Revisiting Linux Network Basics

Whether you have a lot of knowledge of Linux networking or you are just getting started, we will round off the basics of Linux networking in this chapter. While the TCP/IP stack in Linux is implemented with the same features as in other platforms, specific tools are used to manage such networks. Here, we'll discuss how Linux handles IP addressing, network device naming, as well as bringing interfaces up and down. In addition, we'll discuss the graphical and nongraphical tools used to manage our interfaces.

In this chapter, we will cover:

  • Understanding the TCP/IP protocol suite
  • Naming the network device
  • Understanding Linux hostname resolution
  • Understanding the iproute2 and net-tools suites
  • Managing network interfaces manually
  • Managing connections with Network Manager

Understanding the TCP/IP protocol suite

TCP/IP is the most popular networking protocol in existence. Not only is it the primary protocol suite of the Internet, it's something that you can find on just about any device that supports network connectivity in one form or another. Your computer understands this suite very well, but nowadays your phone, TV, and perhaps even a kitchen appliance or two supports this technology. It really is everywhere. Although TCP/IP is often referred to as a protocol, it's actually a protocol suite made up of several individual protocols. From the name, I'm sure you can gather that two of them are the TCP and IP protocols. In addition, there is also a third, UDP, which is part of this protocol suite as well.

TCP is an acronym for Transmission Control Protocol. It's responsible for breaking down network transmissions into sequences (also known as packets or segments), which are then sent to the target node and reassembled back into the original...

Naming the network device

Nowadays, it's not uncommon for a computer to have multiple network interfaces. For example, if you're using a laptop (other than an Ultrabook), it's likely that you have a wired, as well as a wireless, network interface. Each network interface will have its own IP address and they operate independently of each other. In fact, you can even route traffic between multiple interfaces, though this is typically disabled by default in most Linux distributions. Just like each interface has its own IP address, each will also be identified by the system by its own device name. Before we discuss this further, go ahead and take a look at the device names on your system. Open up a terminal and type the following command:

ip addr show

Your output will look like this:

Naming the network device

The output of the ip command, showing network interfaces and address assignments

In this example, we see three network interfaces listed. The first, lo, is the local loopback adapter. The second listing...

Understanding Linux hostname resolution

On a network, it's much more convenient to look up other resources by name, rather than remembering the IP address of every resource we connect to. By default, looking up hosts by name may not function without a little configuration. For example, you can try the ping command against the name of one of your Linux machines, and you may or may not get a response. This is because a DNS entry for the resource you're connecting to might not exist. If it doesn't, you'll see an error similar to the following:

ping: unknown host potato

However, if you ping the device by its IP, it would more than likely respond:

64 bytes from 10.10.96.10: icmp_seq=2 ttl=64 time=0.356 ms

Note

Press Ctrl + C on your keyboard to break out of your ping command, as it will ping forever if it finds a connection.

The reason for this is in order for a network host to be able to contact another, it needs to know its IP address. If you type in a name instead of an IP...

Understanding the net-tools and iproute2 suites

For quite some time, net-tools has been the suite of tools used to manage network connections on Linux systems. The net-tools suite includes commands such as ifconfig, route, netstat, and others (which we'll discuss shortly). The problem with net-tools is that it hasn't been updated by its developers in well over a decade, making many distributions opt to abandon it in favor of the iproute2 suite, which offers the same functionality (but with different commands to achieve the same goals). Even though net-tools are being deprecated, quite a few distributions still include it. For example, Debian includes both iproute2 and net-tools, so you can use commands from either suite. In CentOS, iproute2 is present though net-tools is not installed by default. If you would like to utilize the older net-tools, you can install it in CentOS with the following command:

# yum install net-tools

So, why would you want to install net-tools if it&apos...

Manually managing network interfaces

In most cases, after you install your desired distribution of Linux, it receives an IP address via DHCP and away it goes. Whether you're using a graphical desktop environment or a shell environment with no GUI, the magic mostly happens in the background. While there are GUI tools to manage your network connections, anything you can do via a graphical tool, you can do via the shell. In the case of servers, there may not be a graphical environment at all, so learning how to manage your network connection via the shell is very important. In this section, we'll discuss the method for manually configuring an interface in Debian, and then discuss how to do the same thing with CentOS.

In the previous section, two methods were discussed for finding your current IP address. Depending on whether your distribution ships net-tools or iproute2, you can use one method or the other (or both). Of course, that's the first step. Do you have a connection...

Understanding the TCP/IP protocol suite


TCP/IP is the most popular networking protocol in existence. Not only is it the primary protocol suite of the Internet, it's something that you can find on just about any device that supports network connectivity in one form or another. Your computer understands this suite very well, but nowadays your phone, TV, and perhaps even a kitchen appliance or two supports this technology. It really is everywhere. Although TCP/IP is often referred to as a protocol, it's actually a protocol suite made up of several individual protocols. From the name, I'm sure you can gather that two of them are the TCP and IP protocols. In addition, there is also a third, UDP, which is part of this protocol suite as well.

TCP is an acronym for Transmission Control Protocol. It's responsible for breaking down network transmissions into sequences (also known as packets or segments), which are then sent to the target node and reassembled back into the original message by TCP...

Naming the network device


Nowadays, it's not uncommon for a computer to have multiple network interfaces. For example, if you're using a laptop (other than an Ultrabook), it's likely that you have a wired, as well as a wireless, network interface. Each network interface will have its own IP address and they operate independently of each other. In fact, you can even route traffic between multiple interfaces, though this is typically disabled by default in most Linux distributions. Just like each interface has its own IP address, each will also be identified by the system by its own device name. Before we discuss this further, go ahead and take a look at the device names on your system. Open up a terminal and type the following command:

ip addr show

Your output will look like this:

The output of the ip command, showing network interfaces and address assignments

In this example, we see three network interfaces listed. The first, lo, is the local loopback adapter. The second listing, eth0, is the...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Master the art of using Linux and administering network services for enterprise environments
  • Perform hands-on activities to reinforce expert-level knowledge
  • Get full coverage of both the CentOS and Debian systems, including how networking concepts differ for each

Description

Linux is everywhere. Whether you run a home office, a small business, or manage enterprise systems, Linux can empower your network to perform at its very best. Armed with the advanced tools and best practice guidance of this practical guide, you'll be able to mold Linux networks to your will, empowering your systems and their users to take advantage of all that Linux-based networks have to offer. Understand how Linux networks function and get to grips with essential tips and tricks to manage them - whether you're already managing a networks, or even just starting out. With Debian and CentOS as its source, this book will divulge all the details you need to manage a real Linux-based network. With detailed activities and instructions based on real-world scenarios, this book will be your guide to the exciting world of Linux networking.

Who is this book for?

Mastering Linux Network Administration is recommended for those who already understand the basics of using Linux and networking, and would like to push those skills to a higher level through real-world Linux networking scenarios. Whether you intend to run a home office consisting of Linux nodes or a rollout of a Linux network within your organization, this book is a great fit for those that desire to learn how to manage networked systems with the power of Linux.

What you will learn

  • Install and configure the Debian and CentOS systems
  • Set up and configure file servers
  • Administer networked nodes remotely
  • Discover how to monitor system performance for peak health
  • Configure network services such as DNS and DHCP
  • Host HTTP content via Apache
  • Troubleshoot Linux networking issues

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 03, 2015
Length: 260 pages
Edition : 1st
Language : English
ISBN-13 : 9781784390686
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 03, 2015
Length: 260 pages
Edition : 1st
Language : English
ISBN-13 : 9781784390686
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Mex$ 3,057.97
Learning Linux Shell Scripting
Mex$1128.99
Mastering Linux Shell Scripting
Mex$799.99
Mastering Linux Network Administration
Mex$1128.99
Total Mex$ 3,057.97 Stars icon
Banner background image

Table of Contents

11 Chapters
1. Setting up Your Environment Chevron down icon Chevron up icon
2. Revisiting Linux Network Basics Chevron down icon Chevron up icon
3. Communicating Between Nodes via SSH Chevron down icon Chevron up icon
4. Setting up a File Server Chevron down icon Chevron up icon
5. Monitoring System Resources Chevron down icon Chevron up icon
6. Configuring Network Services Chevron down icon Chevron up icon
7. Hosting HTTP Content via Apache Chevron down icon Chevron up icon
8. Understanding Advanced Networking Concepts Chevron down icon Chevron up icon
9. Securing Your Network Chevron down icon Chevron up icon
10. Troubleshooting Network Issues Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(7 Ratings)
5 star 71.4%
4 star 14.3%
3 star 14.3%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Jitesh Marathe Dec 23, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclosure, I received a free copy of this book for review. And writing this review only after reading complete book.This book is for system administrators who are looking to take their administrations skills to next level.Readers should have basic of system and network administration skills to get most out of this book.If you want to learn concepts of networking under linux environment or how to setup configure and secure your infrastructure or looking for how to monitor system resources with network or learn concept of hosting web content along with troubleshooting network issue, this book is geared towards you. However if you are a highly experienced system administrator you might not get as much out of it, but this can be a good reference book to brush up skills or look for quick techniques or tricks on various networking troubleshooting skills.Conclusion, If you are linux power users or administrators and looking for some direction in networking this book definitely a great value add.
Amazon Verified review Amazon
BFG Dec 05, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The perfect book to improve your skills, it covers both Centos 7 & Debian 8,A Good reference as both use the same command structure.Very well presented.
Amazon Verified review Amazon
George Jan 20, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I would not hesitate to purchase any of Jay's books. He has the ability to make you feel as if he is talking to you directly.
Amazon Verified review Amazon
Just Some Guy Nov 11, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I was worried that now (2021) this 2015-published book would be too old, but given the relatively slim pickings on Linux networking across Amazon, I took the risk and bought it. Even although it isn't completely current, I was happy to find that this book is still current enough to offer plenty of value - it's exactly what I wanted (most networking principles haven't actually changed much since '15)!The word "Mastering" in the title is overstating it – there's a ton left to learn (it never ends!) – but this book is perfect for someone like me, with beginner/intermediate networking experience and skills who wants to learn more. It's very technical and full of examples (using terminal commands, config files, etc.), but it remains easy to read and approachable to anyone with basic terminal skills.What's also nice is that the author took pains to give examples for both CentOS and Debian (which Ubuntu is also based on), so it's generally relevant to the most popular Linux distributions.If anything, my only complaint is that it's actually a little slim. At 230 pages, the author could have packed a lot more content in and added even more value. That said, it was still worth buying and reading. I am happy to recommend this book.
Amazon Verified review Amazon
Olaf Sommer Dec 07, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
In this book I found all information I ever wanted to know for my daily tasks. The structure of the chapters is very useful. All information are very good explained. My favorite chapters are about monitoring and troubleshooting. There are some tipps I did not know so far. I would buy this book again.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.