Setup a static IP in Ubuntu

open /etc/network/interfaces with editor

auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.56.101
netmask 255.255.255.0
gateway 192.168.56.1

and then

service networking restart

axel

bash script for downloading with axel

#!/bin/bash

axel -a -n32 link
sleep 10
axel -a -n32 link
sleep 10
axel -a -n32 link
sleep 10
axel -a -n32 link

 

Cisco cheat sheet 1

#1: The “?”

#2: show running-configuration

#3: copy running-configuration startup-configuration

#4: show interface

#5: show ip interface

#6: config terminal, enable, interface, and router

example :

configure terminal
interface fastEthernet 0/0
ip address 10.0.0.1 255.0.0.0
no shutdow
exit

#7: no shutdown

#8: show ip route

#9: show version

#10: debug

sudo

Description :

execute a command as another user

Examples :

sudo -i

get super user shell