Tag: ethernet

Linux

How to set up eth0 interface using interfaces file

Define physical interface eth0 in file /etc/network/interfaces. Open file /etc/network/interfaces for editing. DHCP: auto eth0 iface eth0 inet dhcpauto eth0 iface eth0 inet dhcp no DHCP: iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.10iface eth0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.10

NMAP

Discover other hosts on the LAN

Using nmap network tool is easy to discover other live hosts on the lan. If your ip address is something like this: 192.168.2.8 then the only thing you have to do to discover other hosts on the network is to type in your terminal the command: nmap -sP 192.168.2.0/24 and you get something like this: …