Using netplan to set up IP Networking on Ubuntu.

I recently set up my server again and I wanted to use it on a network. I removed Network Manager from the system as it was overwriting the /etc/resolv.conf file. Then I set up netplan instead. This allows me to setup a DHCP configuration and get my machine working on…

Read More

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…

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…

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…

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…

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…

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…

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…

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>>

Read 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*…

Read More

Networking terms and their meanings.

Some common networking terms and their meanings. IPv4 – IP version 4: This is the current networking standard that defines an IP address with a 32-bit address composed of four octects. IPv6 – IP version 6: A newer standard of IP addressing that will replace the current IPv4. This uses…

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…

Read More