![]() ![]() 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. Nowadays ifconfig command is deprecated and replaced by the ip command in Linux. Example 8-8 starts with adding two unequal-cost routes to the same destination prefix via the route and different prefixes via the ip route command sequence to. ![]() 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. In this article, we will review how we can assign a static IP address using ip and ifconfig commands. Once that happens, the contents of the routing table will be erased. route add 10.51.0.0 mask 255.255.0.0 10.23.0.1 Static route with persistent: As stated earlier, this route will only stay in the routing table until Windows is rebooted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |