1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ubuntu: List all connections to a single nic command?

Discussion in 'Linux & Open Source' started by Frank Jeagar, Nov 29, 2017.

  1. Frank Jeagar

    Gangster

    Joined: Aug 25, 2013

    Posts: 374

    I've installed Ubuntu on my work PC to get around a lot of the restrictions placed on the Windows 7 install they give us, and one of the things I've done is set up a WiFi hotspot for us to use.

    I'd like to monitor connections and/or traffic on the hotspot, but if I try to list all of the connections to my PC then I get like 100 IPs because it is also showing me all of the connections from our wired work network.

    Since the work network is connected via an onboard ethernet port and the hotspot is via a wireless expansion card, I wondered if there was a way to show all of the connections to a specific nic? That way I would be able to see the connections to the hotspot and not the work network.

    Thanks in advance for any help!
     
  2. SMN

    Wise Guy

    Joined: Nov 2, 2008

    Posts: 2,355

    Location: The ether

  3. Frank Jeagar

    Gangster

    Joined: Aug 25, 2013

    Posts: 374

  4. Frank Jeagar

    Gangster

    Joined: Aug 25, 2013

    Posts: 374

    If anyone else comes across this, I've found arp-scan was also good (not installed by default "sudo apt-get install arp-scan").

    You can use "sudo arp-scan -l --interface=wlan0" where wlan0 is the name of the connection you want to look at (which you can check with "ifconfig").

    This will give you a list of IPs connected to the network connection of your choice.