Configure Network in Linux?


How to Configure Network in Linux?

Linux Manage multiple network interface adapters easily. Laptops are usually included in wired and wireless interfaces, and Vimax interfaces for cellular networks can be supported. A Linux desktop computer supports multiple network interfaces, and you can use your Linux computer as a multi-network client or as an internal networking rotor. This is the case with my systems.

There are three ways to configure a network interface in Linux. They are:

  1. IP Address
  2. Gateway
  3. Netmask

IP Address: Unique number is defined by the access point to your network interface. The form is xxx.xxx.xxx.xxx, where "XXX" is three or less, or smaller. This number is possible to build ultimately but usually requires a form that runs out of the other three numbers. If you use a home router with DHCP, it will do the default configuration, to your network interface will "assign". You don't have to enter the number.

Gateway: Unique number assigned to the network interface you want to communicate with your computer. Again, for the general xxx.xxx.xxx.xxx.xxx.xxx.xxx, if you use a home router, your home router creates this number because it communicates with the wide world.

Netmask: A non-unique number that defines the network. This number is generated automatically, but the method you use to configure the interface is the xxx.xxx.xxx.xxx.xxx.

Interface Configuration Files

Each network interface has its configuration file in the / etc / sysconfig / network-scripts directory. Each interface is the configuration files of the interface, and X is the case with the interface, here is zero 1, depending on the named name; For example, / etc / sysconfig / network-scripts / network-scripts / ifcfg-eth0. Most of the other files in the / etc / sysconfig / network script directory are used to start and stop various network configuration activities. Each interface configuration file is connected to a specific physical network interface by the MAC address of the interface address.