Book Image

Mastering Linux Network Administration

By : Jay LaCroix
Book Image

Mastering Linux Network Administration

By: Jay LaCroix

Overview of this book

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.
Table of Contents (17 chapters)
Mastering Linux Network Administration
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Automatically mounting network shares via fstab and systemd


As handy as mounting network shares via the mount command can be, you may not want to manually mount a share each time you wish to use it. In a network with a central file server, it makes sense to configure workstations to mount network shares automatically so that every time you boot your system, the share will automatically be mounted and ready to go.

The tried and tested approach to mounting resources automatically is the /etc/fstab file. Every Linux system has a /etc/fstab file, so go ahead and look at yours. By default, this file only contains configuration for mounting your local resources, such as partitions on your hard disk. It's standard practice to add additional lines of configuration to this file to mount anything from additional hard drives to network shares.

Note

Be careful while editing your /etc/fstab file. If you accidentally alter the configuration for your local hard disk, your system won't boot the next time you...