Host Discovery

IP

Local IP

ip addr show dev tun0

ipv6

ip -6 addr show dev tun0

Find local hosts:

ip neigh

IPv6 hosts:

ip -6 neigh

How do I change the state of the device to UP or DOWN?

The syntax is as follows: ip link set dev {DEVICE} {up|down}

Nmap

Useful parameters:

Nmap Prams

netdiscover

Discovers IP, MAC Address and MAC vendor on the subnet from ARP, helpful for confirming you're on the right VLAN at client site

netdiscover -r 192.168.1.0/24

Results:

 Currently scanning: Finished!   |   Screen View: Unique Hosts                  
 4 Captured ARP Req/Rep packets, from 4 hosts.   Total size: 240                
 _____________________________________________________________________________ 
   IP            At MAC Address     Count     Len  MAC Vendor / Hostname       
 ----------------------------------------------------------------------------- 
 192.168.17.1    00:50:56:c0:00:08      1      60  VMware, Inc.                 
 192.168.17.2    00:50:56:e5:1f:80      1      60  VMware, Inc.                 
 192.168.17.131  00:0c:29:31:8a:2b      1      60  VMware, Inc.                 
 192.168.17.254  00:50:56:f1:23:55      1      60  VMware, Inc.