Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
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

eBook
$29.99 $43.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m

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
Table of content icon View table of contents Preview book icon Preview Book

Mastering Linux Network Administration

Chapter 1. Setting up Your Environment

Welcome to the world of Linux networking! This book will be your guide to perfecting your Linux network management skills. In this chapter, we will go over what's needed to get your environment up and running. We'll talk about several Linux distributions that are of interest to enterprise networking, the things to keep in mind while setting up an environment in your home or office so you can follow along with this book, and some best practices for setting up a few Linux installations that we'll use throughout this book. Basically, we'll lay the groundwork that you'll use to develop your skills.

In this chapter, we will cover:

  • Getting started
  • Distributions to consider
  • Physical machines versus virtual machines
  • Setting up and configuring VirtualBox
  • Acquiring and installing Debian 8
  • Acquiring and installing CentOS 7

Getting started

Network management in Linux is a fun, diverse field that is always changing. While the core components typically remain the same throughout the years (such as the TCP/IP protocol), how these services are managed have evolved in each generation, such as the rise of systemd. Linux is definitely exciting.

In this chapter, we'll see how to set up your environment. Depending on your experience level, you can skip directly to Chapter 2, Revisiting Linux Networking Basics. If you're already comfortable setting up a distribution or two on a physical or virtual machine, you already have the knowledge needed to get started. Here, we'll discuss how to install a few distributions of interest for the exercises in this book and some general pointers.

In a nutshell, the more Linux installations you have to work with, the better. While practicing networking concepts, it's a good idea to have as many nodes as possible, so you can test how your configuration changes, will affect your environment. If you are already comfortable installing Linux, feel free to set up some nodes and then I'll meet you in the next chapter.

Distributions to consider

There are over a hundred distributions of Linux in existence today. These include distributions geared specifically toward workstations or servers (or even both) and specialist distributions, which solve a specific task, such as Kali, Mythbuntu, and Clonezilla. Naturally, the first question one might have when studying a concept such as network administration is which distributions to start with.

Let's not focus on any one distribution. In the enterprise, no two data centers are same. Some organizations that utilize Linux might standardize on a specific distribution set (for example, Ubuntu and Ubuntu Server) though it's far more common to see a mix of one or more distributions in use. Distributions such as SUSE Enterprise Linux, Red Hat Enterprise Linux, Ubuntu Server, CentOS, and Debian are extremely common among servers within Linux-based networks. In my experience, I've seen Debian (as well as its derivatives) and Red Hat-based distributions in use most often.

You are encouraged to experiment and mix up whichever distributions you might favor. There are many candidates, and websites such as www.distrowatch.com would give you a list of possibilities. Specifically for the sake of the examples in this book, CentOS and Debian are recommended for your use. In fact, these two distributions are wonderful places to start. You'll get a taste for two different forms of package management (rpm and deb packages) and familiarize yourself with two of the most popular distributions. Regarding Debian, quite a few distributions are based on it (Ubuntu, Linux Mint, and others). By learning how to manage a Debian installation, much of that knowledge would be transferable to other distributions should you consider switching. The same can be said about CentOS, which is based on Red Hat. Red Hat is a very popular distribution and since CentOS is created from its source, you're essentially learning it as well. While Fedora is more bleeding-edge than Red Hat or CentOS, much of the knowledge will be useful there as well; Fedora is popular as a workstation distribution.

The examples within this book were tested in both CentOS and Debian. Whenever an instruction is specific to a particular distribution, I will let you know. Having a CentOS and Debian installation will suit you for the purposes of this book, but feel free to experiment. As far as individual versions of these distributions are concerned, both CentOS 7 and Debian 8 were used. Install these in your environment or home lab.

Physical machines versus virtual machines

Seeing a section on virtual machines in a networking book may come as somewhat of a surprise. To be fair, it certainly is out of place. In addition to being an important enterprise platform, virtualization can also be an invaluable learning tool. In real networks, a technician may test a service in a virtual machine before rolling it out to the environment. For example, a new DNS server may begin life as a VM, and then once it is tested and proven, moved into an environment for use by the organization. One benefit of this approach is that you can take several snapshots as you develop the solution, and should you mess up and ruin it, you can just restore the snapshot and begin from a known-working state.

As far as mastering our Linux networking skills are concerned, virtual machines allow you to test how a procedure differs from one distribution to another. It's easy to bring up a virtual machine, and it's even easier to trash it. If you're limited by physical hardware, then virtual machines may offer you a chance to build a small virtual network to practice on. Of course, the trade-off with virtual machines is how much RAM they use. However, without a GUI, most Linux distributions will run quite comfortably with just 512 MB RAM. Nowadays, quite a few computers ship with 8 GB or even 16 GB RAM, so you should be able to run several VMs on even the budget computers available today.

To be fair, using virtual machines for purposes of practice and study isn't always ideal. In fact, when studying networking, physical equipment is usually preferred. While you can certainly practice setting up and serving a web page via Apache running in a VM, you wouldn't be able to practice racking switches and routers in such an environment. Whenever possible, try to use physical equipment. However, virtual machines offer a unique chance for you to create a small army of nodes to maintain on your network.

Of course, not everyone has a stack of Dell towers sitting in the closet, ready and waiting for a shiny new Linux install. Depending on what you have at your disposal, you may use all physical machines or a mix of physical and virtual. In this book, no assumptions are made about your inventory. The name of the game is to manage nodes, so set up as many as possible.

In this book, VirtualBox is discussed. However, it's by no means the only solution for creating virtual machines. There are other solutions as well, such as KVM, Xen, VMware and others. VirtualBox has the benefit of being free, open source, and cross-platform (it's available for Linux, Mac OS X, and Windows), so there's a good chance it will work in your environment. In most cases, it's even easier to set up than KVM or Xen (but perhaps not nearly as cool). You don't have to use VirtualBox (or even VMs at all, for that matter) in order to follow along with this book. Use whatever solution you prefer. In this book, I try not to limit the instructions to any one specific solution, so the content works for as many people as possible.

Setting up and configuring VirtualBox

If you've decided to use VirtualBox in your environment (either for studying, testing distributions, or evaluating network services before implementation), we will set up our VirtualBox host in this activity.

Acquiring VirtualBox

Downloading and installing VirtualBox is actually fairly straightforward, but each platform has its unique quirks. In Windows, the initial installation is simply a matter of navigating to the following site and downloading the setup file and running through the installation wizard:

https://www.virtualbox.org/wiki/Downloads

After installation, all you would need to do is skip to the Downloading and installing the Extension Pack section of this chapter. Installing on Mac OS X is also straightforward.

For Linux, there are several methods to install VirtualBox. One way is to use your package manager, if your distribution already has it available in its repositories. Unfortunately, depending on the version of your distribution, the version of VirtualBox that may be included is very likely to be out of date. For example, Debian typically contains older packages in its repositories, but bleeding-edge distributions such as Arch are more likely to contain the latest and best.

Perhaps a better way of acquiring VirtualBox is to import the repositories that VirtualBox itself provides into your system. The following URL has a list of Debian repositories and even a method of adding a repository for RPM-based distributions (Fedora, Red Hat, and so on):

https://www.virtualbox.org/wiki/Linux_Downloads

For example, using the instructions on the page as a guide, we can run through the following procedure on a Debian-based system. However, Oracle may change their instructions and repository listing at any time; always consult the previous URL before installation to see if the procedure has changed.

To verify that we will add the correct version, we need to determine which repository to use. This differs based on which distribution you're running, so definitely consult the documentation on the VirtualBox site to ensure you're importing the correct repository.

For Debian 8 "Jessie", we would use the following:

deb http://download.virtualbox.org/virtualbox/debian jessie contrib

To add this repository to our Debian system, we would use the following command:

# echo "deb http://download.virtualbox.org/virtualbox/debian jessie contrib" > /etc/apt/sources.list.d/virtualbox.list

Then, we can add the public key for the repository with the following command:

# wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | apt-key add -

From now on, we can find Oracle's VirtualBox package in our repositories and install it. To do so, let's first update our package listing with the following command (as root):

# apt-get update

Then install VirtualBox with the following command:

# apt-get install dkms virtualbox-4.3

Note

This same procedure for installation will work for Ubuntu as well, as long as you choose the appropriate matching repository.

For distributions such as Fedora, Red Hat Enterprise Linux (RHEL) and openSUSE, Oracle provides similar instructions.

The public key can be downloaded via the following command:

# wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | rpm --import -

In order to add the repository to a Fedora system, execute the following command:

# wget -P /etc/yum/repos.d/ http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

After adding the repository, VirtualBox can be installed with the following command:

# yum install VirtualBox-4.3

In addition, instructions for OpenSUSE and RHEL are also available on the VirtualBox website. See the VirtualBox website for more details at https://www.virtualbox.org.

Downloading and installing the Extension Pack

Oracle offers an Extension Pack, which enables USB support as well as support for Preboot Execution Environment (PXE) booting. You may or may not need these features. If you think you would benefit from being able to insert a flash drive on your host PC and accessing it from within your VM, it's probably a good idea to install the pack.

Note

The extension pack isn't built-in to VirtualBox due to licensing issues. Feel free to consult the VirtualBox license should you wish to learn more.

The installation procedure for the extension pack is mostly the same, regardless of whether your host computer is running Linux, Windows, or Mac OS X. However, there is one added step if your host is running Linux, which is to add your user account to the vboxusers group.

  1. When you first install VirtualBox, it should have created this group. To verify, execute the following command:
    cat /etc/group |grep vboxusers
    
  2. You should see an output similar to the following:
    vboxusers:x:1000:username
    
  3. If you don't see the output, create the group with the following command:
    # groupadd vboxusers
    
  4. Then, add yourself to that group:
    # usermod -aG vboxusers yourusername
    

Note

You'll need to log out and then log in before adding yourself to the vboxusers group takes effect.

Now, you're ready to install the extension pack. Again, this procedure should be the same regardless of your underlying operating system. First, download the Extension Pack from the following URL and save it locally:

https://www.virtualbox.org/wiki/Downloads

After downloading, follow the next steps:

  1. Open VirtualBox and go to File | Preferences....
    Downloading and installing the Extension Pack

    Accessing the file menu in VirtualBox

  2. Next, click on Extensions and then click on the green triangle icon on the right-hand side.
    Downloading and installing the Extension Pack

    VirtualBox settings

  3. Select the extension pack that you downloaded earlier and click on Open.
    Downloading and installing the Extension Pack

    Extension pack selection

  4. You'll then be asked to confirm the installation. Click on Install.
    Downloading and installing the Extension Pack

    Confirmation of extension pack installation

  5. The VirtualBox license agreement will be displayed. Feel free to check it. Then, scroll to the bottom and click on I Agree to confirm it.
    Downloading and installing the Extension Pack

    VirtualBox license agreement

  6. If you're running Linux, you may be asked for the root or sudo password. If you do, enter it and continue. After authenticating, you should see confirmation that you've successfully installed the extension pack.
    Downloading and installing the Extension Pack

    Confirmation of successfully installing the VirtualBox extension pack

After this procedure, VirtualBox will be up and running on your machine.

Note

In some distributions, the password prompt may not appear, causing the installation of the extension pack to fail. If that happens, run VirtualBox with root privileges using the following command:

sudo VirtualBox

Then, try installing the extension pack again. Once finished, close VirtualBox and then reopen it as a normal user before continuing.

Acquiring and installing Debian 8

In order to install Debian, we first need to acquire an ISO image file. To do that, go the following URL:

http://www.debian.org/distrib/netinst

There will be several options for download, but the netinst ISO will be our target. For most computers, the 64-bit (amd64) version should suffice—unless you know for sure that your computer doesn't support 64-bit. The main difference between the netinst and the complete installation image is that the netinst version will download what it needs from Debian's servers over the Internet. As long as you're not within a bandwidth-constrained area, this should not be an issue.

Of course, the ISO file by itself is not useful unless you're attaching it to a virtual machine. If you are, then you're ready to go. If you're setting up a physical machine, you'll need to either create a bootable CD with a disc mastering utility of your choice, or create a bootable flash drive.

Note

Because there is a multitude of different disc mastering utilities available, a complete walkthrough of how to create a bootable CD in your environment is not possible. In most cases, your utility should have an option to burn an ISO image in its menu. The disc will not function as Debian installation media if you simply create a data disc.

The steps for installing Debian 8 are as follows:

  1. In a Linux system, you can create a bootable Debian flash drive with the following command:
    # cp name-of-debian.iso /dev/sd? && sync
    
  2. Essentially, we're copying the downloaded ISO image directly to a flash drive. Of course, change the file name and target to what is relevant on your system. To determine the device node to use, execute the following command:
    # fdisk -l
    
  3. Within the output, you should see the node designation of your flash drive. The output of that command will look like this:
    Device     Boot Start      End  Sectors  Size Id Type
    /dev/sdb1        2048 60563455 60561408 28.9G 83 Linux
    
  4. Then, /dev/sdb would be the device to use to create the flash drive. Putting it all together, we would create the flash drive with the following command:
    # cp name-of-debian.iso /dev/sdb && sync
    

    Tip

    Downloading the example code

    You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

  5. Once you have created bootable media, insert it into your computer and follow your computer's specific directives to access the boot menu and select your Debian media. After it finishes loading, the first screen will ask you to select your language. Choose your language, then click on Continue.
    Acquiring and installing Debian 8

    The Debian installer's language selection screen

  6. After selecting your language, the next screen will have you choose your location. Select it and then click on Continue.
    Acquiring and installing Debian 8

    Language selection in the Debian installer

  7. Similarly, choose a keymap that fits your keyboard and click on Continue.
    Acquiring and installing Debian 8

    The Debian installer's keyboard selection screen

  8. At this point, the Debian installer will detect your hardware, and then allow you to configure your host name. For this option, choose a unique host name that will identify your device on the network. When finished, click on Continue.
    Acquiring and installing Debian 8

    Choosing a hostname during installation of Debian

  9. The installer will then ask for your domain name. Enter your domain name here if you have one; otherwise, just leave it blank. Click on Continue.
    Acquiring and installing Debian 8

    Domain name configuration while installing Debian

  10. Next, you'll be asked to set a password for the root account. For this, you should create a unique (and preferably randomly generated) password. As you probably know, the root account has full access to the system. After setting the password, click on Continue.
    Acquiring and installing Debian 8

    Root password entry during Debian installation

  11. In the next three screens, you'll set up your user account. First, you'll enter your first and last name, and then click on Continue.
    Acquiring and installing Debian 8

    First screen of setting up primary user account

  12. Then, type in username and click on Continue.
    Acquiring and installing Debian 8

    Creating a username

  13. The final portion of the user setup section will ask you to create a password. When done, click on Continue again.
    Acquiring and installing Debian 8

    Setting the password for the primary user

  14. Next, Debian will try to use Network Time Protocol (NTP), if available, to configure your clock. Then, you'll be presented with a screen to select your time zone. Make sure your time zone is highlighted, and click on Continue.
    Acquiring and installing Debian 8

    Configuring your location, for the time zone

  15. Now, we'll partition our disk. Feel free to partition your disk any way you want, as there are no partitioning requirements as far as this book is concerned. For the sake of this instruction, Guided - use entire disk, the default for Debian, is chosen. If you have a preferred partitioning scheme, feel free to use it. When finished, click on Continue.
    Acquiring and installing Debian 8

    First screen of the partitioning portion of the Debian installation

  16. Next, you'll have to select the hard disk on which to install Debian. In this example, there is only one hard disk available in the VM that was used to capture the procedure. If you have more than one disk, select the appropriate disk for installation and click on Continue.
    Acquiring and installing Debian 8

    Selecting the target disk for Debian

  17. In the next section, the Debian installer will ask if you would like to have a separate /home partition (recommended if you wish to retain files between installations), separate /home, /var, and /tmp partitions, or all files in one partition. This book has no partitioning requirements, so choose the one that best fits your preference. When you've made your selection, click on Continue.
    Acquiring and installing Debian 8

    Disk partitioning selection

  18. Next, Debian will display a summary of the changes it's about to make. If these changes look good to you, ensure Finish partitioning and write changes to disk is highlighted and click on Continue.
    Acquiring and installing Debian 8

    Partitioning overview

  19. Then, you'll have to confirm the details again. Select Yes and then click on Continue.
    Acquiring and installing Debian 8

    Confirmation of changes to partitioning

  20. The base system will be installed next; this might take a little while depending on the speed of your computer and hard disk. Afterwards, you'll be presented with a screen where you'll select the country nearest you in order to set up Debian's package manager.
    Acquiring and installing Debian 8

    Choosing a location for the package manager

  21. Next, you'll select a mirror for Debian's package archives. In most cases, the default selection is usually accurate. So unless it guessed incorrectly, leave the default selection as-is and click on Continue.
    Acquiring and installing Debian 8

    Choosing a mirror for Debian's package archives

  22. In the next screen, Debian will give you a chance to configure an HTTP proxy, if you have one. If not, leave it blank.
    Acquiring and installing Debian 8

    HTTP proxy configuration

  23. Next, Debian will configure your package manager and update your sources. After a few progress bars scroll by, you'll see a new screen asking you whether or not you'd like to submit usage statistics to Debian. This information is helpful to Debian's developers, but it's not required. Make your choice and click on Continue.
    Acquiring and installing Debian 8

    Choosing whether to provide anonymous statistics to Debian developers

    The next screen will offer us additional packages that we can add to our system, but these aren't required (it's a good idea to leave standard system utilities enabled, though). Most of the options presented allow us to choose a desktop environment, but you are not required to install one. Typically, servers are not installed with a desktop environment. However, if you are setting up a workstation PC, it may be of benefit.

    • GNOME: It is the default desktop environment for Debian. GNOME is state of the art, and offers a unique paradigm for interacting with your computer. GNOME uses virtual workspaces heavily, which allows you to split your workflow between several desktops. Unfortunately, GNOME has relatively modest hardware acceleration requirements; this means if you don't have a modern video card, it won't function properly.
    • Xfce: It is a very lightweight alternative to GNOME, and it has been around for a long time. Xfce is great for computers with lower end processing capabilities. Nowadays, Xfce doesn't see much active development, so it doesn't change much. This means that it is more stable in quite a few cases, though it may not interest those who prefer something with modern features.
    • KDE: It is a modern desktop environment like GNOME, but it resembles the user interface of Windows. Like GNOME, KDE also has relatively modest hardware requirements, though not quite as bad as GNOME. KDE features the Dolphin file manager, which is respected by Linux users.
    • Cinnamon: It was originally created as a fork of GNOME, but it has evolved into its own desktop environment with little GNOME dependencies. Cinnamon offers a more traditional style of desktop, with the modern feel of GNOME.
    • MATE: It is a continuation of the older 2.x versions of GNOME. As such, MATE runs well on older machines and sees more development than Xfce. It may not be as stable as Xfce, but it is close.
    • LXDEL: It is also a good choice for older computers, and it is similar to Xfce but not as popular.

    Other than the desktop environment choice, it's recommended to select SSH server from this list. Web server can also be chosen, but you may as well wait until we come to the part of the book in which Apache is discussed, as we'll walk through the installation.

    Acquiring and installing Debian 8

    Debian software selection

  24. Make your selections and then wait for the rest of the installation procedure to finish, as Debian installs the software you selected in the previous step. Then, it's time to configure GRUB. GRUB is an acronym for Grand Unified Bootloader and is necessary in order for us to boot our system. You'll be asked whether you'd like to install GRUB into the master boot record (which you more than likely will want to do), so ensure the Yes radio box is checked and click on Continue.
    Acquiring and installing Debian 8

    GRUB configuration

  25. Next, select a target on which GRUB should be installed. In most cases, this will be /dev/sda.
    Acquiring and installing Debian 8

    GRUB target selection

  26. Whew! We are finally ready to reboot into our new Debian environment. Click on Continue one last time and we're off to the races!
    Acquiring and installing Debian 8

    The final screen of the Debian installation process

Acquiring and installing CentOS 7

In this activity, we install CentOS 7 (which has far fewer steps than Debian). To download an ISO, navigate to the following URL:

https://www.centos.org/download/

The DVD ISO link should satisfy our needs.

Just like with the Debian walkthrough, we'll need to either create a bootable disc or flash drive to get the installation started. Unlike the Debian installer, now we need a DVD-R disc, as the image will be too large to fit onto a CD-R.

If you're installing via a flash drive, the following URL from the CentOS wiki describes the procedure:

http://wiki.centos.org/HowTos/InstallFromUSBkey

After you boot from your installation media perform the following steps:

  1. You'll first see a screen asking you to select the language to be used during installation. Choose your language and click on Continue.
    Acquiring and installing CentOS 7

    Language selection during CentOS installation

  2. The next screen that appears is one of two main sections of the installation. The items shown here (DATE & TIME, KEYBOARD, LANGUAGE SUPPORT, INSTALLATION SOURCE, SOFTWARE SELECTION, INSTALLATION DESTINATION, and NETWORK & HOSTNAME) can be completed in any order. As you can see in the screenshot, only one section (INSTALLATION DESTINATION) is actually required. Basically, you can go through each section listed and complete its task and then click on Begin Installation when you're finished. If you choose not to complete a section, its defaults will be used.
    Acquiring and installing CentOS 7

    First main section of the CentOS installation procedure

  3. For LANGUAGE SUPPORT, you'll choose your language. When finished, click on the icon labeled Done on the top-left corner.
    Acquiring and installing CentOS 7

    Language selection

  4. Don't skip the NETWORK & HOSTNAME section. By default, networking isn't even enabled at all, so you can enable it by clicking on the toggle switch next to your interface. Near the bottom, you can type in the desired host name of your computer. When finished, click on Done.
    Acquiring and installing CentOS 7

    Networking configuration during the CentOS installation

  5. In the DATE & TIME section, you can set up your clock and location. Keep in mind that if you didn't enable your network interface in the NETWORK & HOSTNAME section, you'll be unable to utilize NTP.
    Acquiring and installing CentOS 7

    Date and time configuration

  6. Completing the INSTALLATION DESTINATION section is compulsory. Here, you will select which disk to install CentOS onto, as well as your partitioning scheme. In this walkthrough, we'll select a disk and keep the default partitions, but feel free to customize the partition scheme if you prefer.
    Acquiring and installing CentOS 7

    Disk configuration section of the CentOS installer

  7. By default, CentOS will be a Minimal Install. This means that there will be no graphical user interface, just the default packages. If you prefer, you can opt for a desktop environment such as GNOME or KDE by selecting the corresponding option.
    Acquiring and installing CentOS 7

    CentOS software selection

  8. After you click on Begin Installation, you'll be brought to the second main section of the installation procedure while CentOS installs itself onto your system in the background. This section is much smaller and has just two steps. We'll set our root password and create a standard user account.
    Acquiring and installing CentOS 7

    CentOS user configuration

  9. For the root password, choose something secure. A password meter will show the presumed strength of the password. Click on Done when finished.
    Acquiring and installing CentOS 7

    Root password entry

  10. Finally, we'll create a standard user. On this screen, we'll enter the values in the Full name and Username fields, and choose a strong value for Password. You can also tick the box labeled Make this user administrator, if necessary.
    Acquiring and installing CentOS 7

    CentOS user creation

  11. Finally, when installation is complete, click on Reboot and we're all set.
    Acquiring and installing CentOS 7

    Confirmation of a completed CentOS installation

With that out of the way, feel free to set up as many Linux installations as you may need. In future chapters, we'll use these installations to configure networking and advance our knowledge.

Summary

In this chapter, we worked through setting up our environment. We discussed virtual machines and physical machines as network nodes, and we even set up a Debian and CentOS installation or two.

Now that we've set up our environment, it's time to dive in and get started. In Chapter 2, Revisiting Linux Networking Basics, we'll cover all the commands we'll need for our journey, for example, configuring network interfaces, manually connecting to networks, and setting up Network Manager. Stay tuned!

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

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 $5 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 $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 148.97
Learning Linux Shell Scripting
$54.99
Mastering Linux Shell Scripting
$38.99
Mastering Linux Network Administration
$54.99
Total $ 148.97 Stars icon

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.