Tag Archives: network

How to scan for devices in your network in Ubuntu

sudo apt install arp-scan sudo arp-scan -l –interface=wlp2s0 Replace wlp2s0 with your NIC’s name, works for both wireless and wired Source: https://askubuntu.com/questions/82480/how-to-see-all-computers-connected-to-a-network

Posted in Linux | Tagged , , | Leave a comment

List network adapters connected to Ubuntu Server

sudo ls /sys/class/net Source: https://askubuntu.com/questions/296152/how-to-check-what-is-my-network-card-on-ubuntu

Posted in Ubuntu | Tagged , | Leave a comment

How to configure network settings in CentOS (from dhcp to static)

It’s a bit different from what we’re used to do in Ubuntu, here are the instructions, assuming our network interface is eth0: Take a backup from the “/etc/sysconfig/network-scripts/ifcfg-eth0” file, e.g. by the following command: “cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak” Open the “/etc/sysconfig/network-scripts/ifcfg-eth0” file for … Continue reading

Posted in Linux | Tagged , , , , , , , | Leave a comment

How to change hostname in Redhat & Oracle Linux

As user “root” “vi /etc/sysconfig/network”, change HOSTNAME value to the new hostname “hostname NEW_HOST_NAME” to change it for the current sessions “vi /etc/hosts”, change the old value to point to the new hostname “service network restart” to restart the networking … Continue reading

Posted in Linux | Tagged , , , , | 2 Comments

How to edit network settings manually in Ubuntu Server 12.04 (Precise)

Changing network settings in new versions of Ubuntu (don’t know when exactly this new methodology started) like Ubuntu 12.04 Precise Server Edition, has a major difference from the old methodology. The major change is that you no longer need to … Continue reading

Posted in Ubuntu | Tagged , , , , , | Leave a comment