A router is a device that communicates between the Internet (or public network) and the devices in a local network (or private network). A typical home router, that usually acts as a default gateway for the local devices, can be configured using a web-based configuration page that can be accessed from a web-browser if you […]
network
CIDR Notation – Explained & Examples
CIDR (Classless Inter-Domain Routing) notation is a compact method for specifying IP addresses and their routing suffixes.
Disable IPv6 on Linux – Ubuntu, Debian, CentOS
To disable IPv6 on Linux it is required to modify Linux kernel parameters. IPv6 can be temporary disabled at runtime, using sysctl command or it can be disabled permanently using either sysctl configuration file or the required kernel parameters can be passed at boot time using GRUB configuration. In this note i am showing how […]
169.254.0.0/16 – Disable ZEROCONF Route
You may notice that in your routing table you have a route 169.254.0.0/16. It is so called ZEROCONF route. Every time the system boots, the ZEROCONF route (169.254.0.0/16) is enabled and added to the routing table. And it is time to get rid of it.
Finding Active Computers in Local Network from Linux
Searching for Linux command that can list all IP addresses of devices connected to the network? Use nmap or ping commands to determine alive hosts in your local network. [nmap] Scan Network for Alive Computers Scan for active hosts on a network using nmap command: # Standard ICMP ping $ nmap -sn 192.168.1.0/24 Sample output: […]
Change Network Interface Name: eth0,eth1,eth2+
The best way to rename a network interface is through udev. Edit the file /etc/udev/rules.d/70-persistent-net.rules to change the interface name of a network device. The names of the network devices are listed in this file as follows: # PCI device 0x11ab:0x4363 (sky2) SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:00:00:00:00:00″,ATTR{dev_id}==”0x0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″ Rename network interface from eth0 to […]
HowTo: Change Speed and Duplex of Ethernet card in Linux
To change Speed and Duplex of an ethernet card, we can use ethtool – a Linux utility for Displaying or Changing ethernet card settings. 1. Install ethtool You can install ethtool by typing one of the following commands, depending upon your Linux distribution. Install ethtool in Fedora, CentOS, RHEL etc.: # yum install ethtool Install […]
Configuring Network on CentOS/RHEL — Basic Configuration
Interface configuration files control the software interfaces for individual network devices. As the system boots, it uses these files to determine what interfaces to bring up and how to configure them. These files are usually named ifcfg-<name>, where <name> refers to the name of the device that the configuration file controls. Because each device has […]