Search TQA Weekly
Log into your TQA Weekly

Linux Network Administration within the Terminal

Learn how to use the Linux Terminal to Adminstrate Your Network Connections

Steve Smith, host of your TQA Weekly, explains how-to use the Terminal in Linux to administrate the various network adapters you may have running.

Episode #2-26 released on March 25, 2012

A lot of people use the internet, and a growing set of people are starting to adopt operating systems based on Linux, so today, I teach you how to ipconfig in Linux!

If your used to using Windows, and your now on a Linux operating, you may find it a little difficult at times to get tasks done when it comes to operating system level tasks, even basic tasks like checking your Ethernet or Wireless cards online status. Today, I'll explain how to check up on their progress.

First, you need to open up my favourite application in Linux, the Bash terminal, by clicking Crtl-Alt-T.

The first command we will use is the arp command. This command allows us to verify the connectivity and status of our network adapters. It tells you the type of hardware, the address of the hardware, and the interface address.

The second command I find useful is the netstat command, and it is available in Windows, too. It allows you to see active connections that have or are being made. It will echo a long list of information. You can optionally use the netstat | head to just read the top few lines of data that would be output.

Now, what do you do if your networking connections have failed. First, I'd check to make sure no pets have eaten the cables, all the plugs for routers, and Ethernet cabling are all in properly, but sometimes it can be Linux. There is a command for this :

sudo /etc/init.d/networking restart

This command restarts all the networking adapters.

You can also check on your devices by using the iwconfig command, which will post data on all your current connections, or you can use the command to specifically query one network adapter by typing in iwconfig wlan0, wlan0 could be replaced by any network adapter address, like eth0, lo or others.

If you want to identify all available Ethernet or Wireless networking adapters, you can also use another command. The first is the Ethernet example, the second is the wireless example.

ifconfig -a | grep eth
ifconfig -a | grep wlan

This will echo the available devices for networking, in your current device.

And the last command I am going to demonstrate today, is the lshw command. This is similar to ifconfig, but can show you a lot more information configured correctly. To use, type in :

sudo lshw -class network

It will echo all data about all network adapters, and this information includes vendor, bus information, logical names, series, capacity, width, clock speed, capabilities, configuration, etc...

For more information on this episode and the commands used, please go to my show notes directly by visiting http://tqaweekly.com/se2ep26.

Next Week, we will finally be looking at how to apply CSS in your web-site, correctly. I will explain the difference between ID and Class, and how these can really confuse you, how to apply styles to all sorts of objects. I'll explain the DIV tag, and how it won over the layer tag, and how to make the stylesheet an external object, and why this is always a good idea.

Remember to like, share and subscribe to TQA Weekly. For more information like our show notes, how to join our mailing list, get your own TQA Weekly branded gear and apparel, or for our Android Application, please visit tqaweekly.com. Stay safe and online, have a great day!

Host : Steve Smith | Music : Jonny Lee Hart | Editor : Steve Smith | Producer : Zed Axis Productions

Sources & Resources