Windows 10 bash shell not very impressive at all.

The new Windows 10 bash shell is not very impressive once you get it installed. I have tried it and I could not ping websites even though Microsoft Edge could access the Internet. It is possible to install packages if these lines are added to the /etc/hosts file. 91.189.91.14 archive.ubuntu.com…

Read More

Show interface status with the command line on a Cisco switch.

The show interface brief command, issued at the elevated command prompt will show the status of all ports on the switch/router and also show your vlan interfaces you have created. tyrion#show ip interface brief Interface IP-Address OK? Method Status Protocol Vlan1 unassigned YES NVRAM up down Vlan2 172.18.31.128 YES NVRAM…

Read More

Get information about your network interface with Linux.

Linux has quite a few commands for finding out information about your network adapters. Below is an example. Using the ethtool command as root. homer@deusexmachina ~ $ sudo ethtool eth2 [sudo] password for homer: Settings for eth2: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full…

Read More

Useful Linux networking tricks.

Change the mac address of your network adapter. sudo ifconfig wlan0 down && sudo ifconfig wlan0 hw ether 00:11:22:33:44:55 && sudo ifconfig wlan0 upsudo ifconfig wlan0 down && sudo ifconfig wlan0 hw ether 00:11:22:33:44:55 && sudo ifconfig wlan0 up This will change the mac address of your network interface instantly….

Read More

Using tcpdump to capture packets with a wireless connected computer.

Use this command to capture packets with the tcpdump command. This will output to STDOUT, but you may use redirection to divert it to a text file. [root@deusexmachina homer]# tcpdump -i wlp2s0[root@deusexmachina homer]# tcpdump -i wlp2s0 This is the output that you get when you are capturing packets. This is…

Read More

Simple MikroTik routing. Some useful links and information.

Simple static routing with a Mikrotik device. These links are useful when you are setting up a Mikrotik device and you need assistance with the complex setup of one of these tiny but powerful devices. http://wiki.mikrotik.com/wiki/Manual:Simple_Static_Routing. Creating a DMZ with a Mikrotik device. http://www.mikrotik.com/testdocs/ros/2.8/appex/dmz.php. Simple firewall script for a Mikrotik…

Read More

How to convert an IP address to binary. This is very easy with this command.

This simple one-liner allows conversion of an IP address from decimal to binary. I came up with this after playing around with cut and grep. homer@deusexmachina ~/Documents $ ipcalc 172.18.31.2 | grep Address | cut -b 33-68 10101100.00010010.00011111. 00000010homer@deusexmachina ~/Documents $ ipcalc 172.18.31.2 | grep Address | cut -b 33-68…

Read More