Some very useful tips when working with IP addresses on the Internet.

Get the IPv6 address of a website very easily with this simple one-liner. jason@. PWD: ~. -bash. 3.2.57. 29 $> host ipv6.google.com | awk ‘FNR==2 {print $5}’ 2404:6800:4006:811::200ejason@. PWD: ~. -bash. 3.2.57. 29 $> host ipv6.google.com | awk ‘FNR==2 {print $5}’ 2404:6800:4006:811::200e This works just fine to get the required information. I am not sure … Read more

Nice commands on Macintosh to keep track of network usage.

The Mac OSX operating system has a lot of very useful commands for keeping track of network usage. Here is a very nice one. The nettop command. As you can see, this shows a constantly updating display of network usage on Mac. This is very useful for watching network throughput in real time. Especially, if … Read more

How to setup a simple qemu VM and use networking.

This script will run a qemu VM and setup networking easily. This is very simple. 1 #!/bin/sh 2 3 export QEMU_AUDIO_DRV=alsa 4 DISKIMG=~/win7.img 5 WIN7IMG=~/Downloads/win7.iso 6 VIRTIMG=~/Downloads/virtio-win-0.1-81.iso 7 qemu-system-x86_64 –enable-kvm -drive file=${DISKIMG},if=virtio -m 4096 \ 8 -net nic,model=virtio -net user -cdrom ${WIN7IMG} \ 9 -drive file=${VIRTIMG},index=3,media=cdrom \ 10 -rtc base=localtime,clock=host -smp cores=4,threads=4 \ 11 -usbdevice … Read more

Another way to get only interface names from a Linux machine.

How to return only interface names when listing all installed network interfaces in a Linux box. jason@jason-Lenovo-H50-55:~/Documents$ ip link | grep -Po "(?<=^\d: |^\d\d:)[^:]+(?=:)" lo eth0 wlan0jason@jason-Lenovo-H50-55:~/Documents$ ip link | grep -Po "(?<=^\d: |^\d\d:)[^:]+(?=:)" lo eth0 wlan0 This is very useful to get a listing of all networking interfaces for use in a script. Do … Read more

Good networking training institute in India.

There are good places in India to learn networking and gain a Cisco certification. The CCNA cert is very important in today`s world, and this is a very good organization to attain this cert. Network Bulls. https://www.networkbulls.com/. This facility offers a fully featured 24/7 lab environment to allow physical labs to practice Cisco networking and … Read more

Some very important Linux tips for new and advanced users.

Some obscure Linux tips for the advanced Linux userDownload a new kernel for your Ubuntu Linux machine Some obscure Linux tips for the advanced Linux user The magic SysRQ key combination is used to reset the Linux system if nothing else will work. To use this key combination, press: Alt+SysRQ then tap these keys in … Read more

Use the ethtool command to get information about your Ethernet adapter.

The ethtool utility for Linux is very good at getting information about your Ethernet adapter. Below is the standard information that is available concerning the basic abilities of the Ethernet adapter. localhost% ethtool enp0s25 Settings for enp0s25: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No … Read more

OpenSwitch Finds a New Home

OpenSwitch has joined the Linux Foundation’s stable of networking projects.
This is a significant step. It means the network operating system’s development will be driven
by community needs, instead of the needs of few private companies.
more>>

Some very useful networking tricks for Linux/UNIX users.

Get your gateway IP address with curl on the command line. [homer@localhost ~]$ echo $(curl -# http://ipecho.net/plain) ######################################################################## 100.0% 153.107.97.164[homer@localhost ~]$ echo $(curl -# http://ipecho.net/plain) ######################################################################## 100.0% 153.107.97.164 Another way to list the IP addresses of your network interfaces. Using the ip command. [homer@localhost ~]$ ip a | grep inet* inet 127.0.0.1/8 scope host lo … Read more

Yet another way to get the IP address of a host and print it. And other useful networking commands.

This is a good way to get the IP address of a host and print it to the terminal. homer@deusexmachina ~ $ host yahoo.com | awk ‘/ has address / { print $4 }’ | cut -d " " -f14- 98.138.253.109homer@deusexmachina ~ $ host yahoo.com | awk ‘/ has address / { print $4 }’ … Read more

Useful networking study resources for students.

Some useful networking resources. http://www.routeralley.com/ra/docs/tcp_udp.pdf TCP and UDP reference. http://www.razorpoint.com/PDF/Rz.PortsList.pdf TCP/IP Ports listing. This is very useful for reference. http://www.gasmi.net/tcp.php Another TCP ports listing in HTML. http://www.hardwaresecrets.com/article/431 An introduction to the OSI model and how the TCP/IP  Protocol works. http://www.protocols.com/pbook/tcpip1.htm A definition of common TCP/IP names. Intro to TCP/IP. TCP/IP and subnet masking explained. Kali … Read more

Linux Mint 15 distribution coming out in May 2013 and thoughts on Linux in general.

The newest edition of the Linux Mint distribution, “Olivia” will be available from May 2013. This edition is named after the Olive tree and will provide more of the quality Linux goodness that we have come to expect from a quality Linux distribution. This distro will maintain quality and will not stoop to adding Amazon … Read more

How to add a new user in Linux and some other useful networking commands.

This is the sequence of events when you are creating a new user. Use the sudo adduser jsmith command to add a new user named jsmith. After that, you can type other information to identify your user and then set a password to secure their account. jason@Yog-Sothoth:~$ sudo adduser jsmith Adding user `jsmith’ … Adding … Read more

Setting up a simple network with Linux Mint was very easy indeed.

I recently wanted to connect my laptop running Linux Mint 12 Debian edition with my desktop machine running Linux Mint 13 Maya with a crossover cable, the desktop machine has two network cards, one connected to the Ethernet modem and one that I connected my crossover cable to. Then I clicked the Network icon on … Read more