Using iproute2 ============== Public Domain ******************************************************************************** ### Check IPs and interfaces ip addr show ip addr show eth0 ip link show ip link show eth0 ******************************************************************************** ### Enable interface ip link set dev eth0 up ******************************************************************************** ### Add IP address ip addr add 192.168.1.1/24 dev eth0 ******************************************************************************** ### Checking route tables ip route show ******************************************************************************** ### Adding a route ip route add 10.0.0.0/8 via 192.168.1.10 ******************************************************************************** ### Find a route to ip address ip route get 8.8.8.8 ******************************************************************************** ### Checking arp table ip neigh show ******************************************************************************** ### Change MAC address ip link set dev eth0 down ip link set dev eth0 address 00:e0:7d:f3:92:60 ip link set dev eth0 up ******************************************************************************** _BY: Pejman Moghadam_ _TAG: mac, iproute_ _DATE: 2013-12-24 12:38:01_