Farid Ahmadian / General

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

Checking route tables

ip route show

Adding a route

ip route add via

Find a route to ip address

ip route get

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

Farid Ahmadian / General [ TXT ]

With many thanks and best wishes for dear Pejman Moghadam, someone who taught me alot in linux and life :)