Book Image

Troubleshooting Ubuntu Server

By : Skanda Bhargav
Book Image

Troubleshooting Ubuntu Server

By: Skanda Bhargav

Overview of this book

Table of Contents (16 chapters)
Troubleshooting Ubuntu Server
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Networking concepts


Let's take a look at some of the important networking concepts relevant to Ubuntu and how to troubleshoot issues that may occur.

IP addressing

We will need to configure IP addresses and a default gateway for communications on local networks as well as the Internet. If we need to assign IP addresses temporarily, we would use commands such as ifconfig, ip, and route. These commands are found on most of the Linux systems, and change the network settings with immediate effect:

sudo ifconfig eth0 192.168.1.100 netmask 255.255.255.0

Remember that this setting is temporary and will be lost when we reboot the server machine. This will assign the IP on eth0 to your server machine, so any other machines can talk to this server using the recently set IP. We can verify the same using the following command:

ifconfig eth0

You will be able to see the following screen:

Use the route command to configure the default gateway. This will make sure all the network-related requests will be sent...