Search:

PmWiki

pmwiki.org

edit SideBar

Main / Networking
  * using the arptables tool
  * using the brctl tool
  * Using the ethtool tool
  * Using the ftp/ftpd tool
  * Using the ifconfig/ip/udhcpc tools
  * Using the iperf tool
  * Using the iptables tool
  * Using the lynx tool
  * Using the netcat tool
  * Using the netsnmp tool
  * Using the netstat tool
  * Using the nmcli tool
  * Using the route tool
  * Using the samba (and smbd) tool
  * Using the ssh tool
  * Using the tcpdump tool
  * Using the telnet tool
  * Using the tftp/d tool
  * Using the vnc tool
  * Using the wireshark tool

Great network discovery script:

#!/bin/sh
# Uncomment for debugging
#set -x
pingf(){
    if ping -w 2 -q -c 1 192.168.0."$1" > /dev/null ;
    then 
        printf "IP %s is up\n" 192.168.0."$1"
    fi
}

main(){

    NUM=1
    while [ $NUM -lt 255  ];do 
        pingf "$NUM" &
        NUM=$(expr "$NUM" + 1)
    done
    wait
}

main

Note that on Ubuntu any network established in /etc/network/interfaces will NOT be managed, so the system won't be able to do ICS etc unless it's removed:
https://askubuntu.com/questions/71159/network-manager-says-device-not-managed

With older versions of Ubuntu and network-manager you can force the ICS IP:
https://askubuntu.com/questions/609645/configure-connection-sharing-with-specific-ip-address


Page last modified on April 25, 2025, at 04:42 PM