![]() I hope this article might be helpful in configuring the static IP in arch Linux. Now check the IP address and ping some domain name() to verify if the configuring static IP address is working or not. You need to reboot the system to apply the changes. Then, we need to disable DHCP as it is enabled by default. For disabling DHCP execute the following command.įirst, we need to stop the DHCP service. In absence of a DHCP network administrator assign static IP to the device that has internet access. By default DHCP is configured in the Linux System so, we need to disable it as it provides dynamic IP to the device. Using DHCP protocol DHCP server provides a unique IP to the device that is connected to the internet. $ sudo netctl start eth0 5) DHCPĭHCP states as Dynamic Host Configuration Protocol which is used in IP as a network management protocol. To enable your network profile using the netctl command. Lastly, we need to enable and start the newly configure network profile for this we need to execute the following commands. In my context, I used the current used IP for configuring static IP. Now, change the interface named eth0 to your actual interface name, address with your desire static IP address, gateway to your actual gateway address, and lastly DNS to google public DNS or other. $ sudo cp /etc/netctl/ethernet-static /etc/netctl/eth0Īfter copying the file open the newly copied file in any editor. ![]() The cp command will rename the file if we mention the file name along with the destination. In my case, it’s eth0 so, I will copy the file as eth0. We need to copy this file in /etc/netctl/ and name it according to your network interface name. The netctl provides a sample file for static network configuration in an ethernet-static file which is located at /etc/netctl/examples/. If you want you can use only google public DNS address(8.8.8.8 or 8.8.4.4). In the scenario, I used my default gateway address as the primary DNS and google public DNS addresses (8.8.8.8, 8.8.4.4 ) as secondary and tertiary DNS respectively. ![]() It can also define as an internet phone book. In the output, the gateway address is the first IP address after default via.ĭomain Name System (DNS) helps in translating the domain name into a machine-readable IP address. It will display the IP of the gateway from where your computer gets connected to another network. We can get the gateway address using the IP route command. Gateway is the point that acts as a gate between two networks such as a router. In my context, the network interface name is eth0. We can fetch the network interface using the following command. We need the network interface name for configuring the static IP address. Network Interface is the hardware or software component that connects the computer with the internet. Before configuring the netctl profile, we must first distinguish the following things from our system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |