![]() If no arguments are given, ifconfig displays the status of the currently active interfaces. ![]() It is used to configure the network interfaces. However, the ifconfig command is still works and available for most Linux distributions. ![]() Here are three ways to configure the interfaces needed to make this happen. Nowadays ifconfig command is deprecated and replaced by the ip command in Linux. 3 ways to configure a network interface in Linux Enable Sysadmin 3 ways to configure a network interface in Linux Few things are more important to your machine than a good network connection. Set Static IP Address Using ifconfig Command (Deprecated) In addition, we will discuss how we can use the ip route command to create a static route to change the default gateway for the Linux system. There are two methods for adding a route in Linux: using the route command and using the ip command. In this article, we will review how we can assign a static IP address using ip and ifconfig commands. Displaying and Altering the Linux Routing TableĬonfiguring IP addresses and routes from the command line is a mandatory skill that every Linux administrator should learn.Its primary use is to set up static routes to specific hosts or networks via an interface after it has. The sample output should be like this: Kernel IP. Route manipulates the kernels IP routing tables. Set Static IP Address Using ifconfig Command (Deprecated) You can use the -n option with the route command to display the routing table with the IP addresses.This article will show you how to configure a static IP address from the command line on Linux and how to modify the routing table.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |