Power managing networks from your computer is very important, as this will let you know the status of them at all times. It is important to mention that today there are different ways to obtain information about the status of the connection, either for a internal network or for him internet access.
One of the most common ways is by verifying them directly with the router, you can also check the internet provider app, through menu of the operating system being used or even be able to manage them through networking commands in the case of Linux.
It is because of that Linux consoles are considered as one of the most useful sources when you want to get these types of data, taking into account that on many occasions these data is hard to come by. In accordance with the importance of managing networks, here we are going to explain a little more about how to carry out this process from your linux consoleTo do this, follow in detail everything that we will teach you in the post.
What are the benefits of managing networks from Linux?
Power manage networks from the Linux console undoubtedly will grant certain advantages to its users, and is that this type of process can guarantee a very good functioning of the same if they are constantly being tracked to know their behavior.
That is why below we show you some of the most important advantages for this type of process:
- Use Linux commands for manage networks it will permit you establish and modify network connections using the terminal.
- They can be used for both wired networks such as LANs and for the wireless networks such as WLAN.
- Lets you know the behavior of these networks, as well as detect any possible failure in them.
- These commands will allow you perform basic operations management both in wireless networks as wired.
What commands can be used in the console to manage networks?
As mentioned above, this OS is characterized as one of the easiest when you want to manage networks, this is because it has a series of networking commands that will allow you to carry out this process in a very easy and fast way. That is why here we are going to teach you which of them you can start using to carry out this type of activity in the terminal.
To do this, follow in detail the list of commands that we are going to show you below:
We start with netstat, this command also known as network statistics or in Spanish network statistics, stands out for presenting a basic task that is to show a list of all incoming and outgoing connections that they are active within your console. In this way, this command allows you locate any type of problem that exists in the network, as well as power check which connections have been made correctly.
It also allows you to determine if any connection or socket is stopped, and that may be affecting network performance. In addition, it offers you other types of options such as netstat –r So you can know the routing table or netstat –p so you can see the programs that are connected to open sockets.
This command takes care of indicate the name of an IP or vice versa, as well as all the information related to that of a DNS address. From a any IP address, it will be possible to know what is your domain name, and from domain name can you get to get what it is the IP or IP addresses that are associated.
Whois allows you to ask about the terminal in relation to a domain, so this command will allow you to obtain data like who owns the domain, its server and referrer url, it will also allow you to know other details such as the status, when the domain was created, when it was updated and on what date it expires, as well as the associated DNS servers.
If you think that this information is not all you need yet, then you can run the command in form of verbose with Whois, in this case you would be staying as follows “Whois – verbose”.
Ping is considered as one of the most basic executable codes of the networks, it will tell you if a IP or domain name is working correctly or it has some problemsas it may be down. In order to check all this, it takes care of send small packages to the specified address to check the connection.
Among some of its most outstanding characteristics it can be mentioned that run each few seconds automatically, although it can also be programmed to tell you how many checks do you want to perform during the day. For this you can enter as follows: ping –c 10, this means that only 10 checks will be performed.
This command allows you to get all the information that is related to DNS addresses. This means that it will let you know the server IP, the main DNS name, the address IP, among many other important details to know. It also aims to be able check if the names and IP are resolved correctly.
In this case it is applied to know what path follows a specific packet, so this command will indicate the route the packet has taken from an address or link. This will allow the user to know the list of hosts that have used the packets to reach their destination, so it will show the different jumps next to the IP or specific addresses and the time it took.
We can say that ifconfig is one of the most versatile commands that can be found in Linux terminals, it is considered to be quite complete in relationship to networks. This is how it will tell you the IP address you have assigned, which is the MAC address of the computer, among other important details that you should know.
In this way, this command can also be used to assign an IP concrete or to configure different network parameters. This allows configure a mask with the ifconfig netmask command. It also offers other very useful information such as the amount of packages sent and received with or without errors, as well as a list of packages that have been downloaded.
This command allows you modify and view the ARP table, it is in charge of map between MAC addresses and IP addresses. In this case you only see the connections in our LAN local area network segment, so this is named as “Low level.” In the same way, it allows to discover what machines have connected directly to our host or to which machines we have connected ourselves.
If you have any questions, leave them in the comments, we will answer you as soon as possible, and it will also be of great help to more members of the community. Thank you! 😉