Tag: ifconfig

Packet Sniffing

Configure ‘eth0’ in promiscuous mode to gather packets (sniffing) ifconfig eth0 promisc

Configure IP Address

Configure IP Address using the ifconfig command ifconfig eth0 192.168.1.1 netmask 255.255.255.0

NIC Card Configuration

Show configuration of an ethernet network card ifconfig eth0

Find Current IP Address

Find the IP address of all the active interfaces. ifconfig | egrep -o ‘^[a-z0-9]{1,12}|inet addr:[0-9.]+’