Second, similar to the ip instructions we practiced previously, we can use ifconfig to bring an interface down or up: sudo ifconfig ens3 down That appears to be a rather basic procedure. When executed without any options, the ifconfig command shows information about your interfaces, similar to what we saw with ip addr show earlier in this tutorial. The "net-tools" package is no longer installed by default in Ubuntu Server 22.04, although it is still available if you choose to manually install it. The "ifconfig" command is part of the deprecated "net-tools" package of utilities (for the most part). prevent it from connecting to networks) and then restart it with the following command: sudo ip link set ens3 down In addition, the ip command allows us to control the state of an interface. In addition to the IP address (if any) and MAC addresses of each device, the output contains a variety of other useful information about the system. The outcome will be the same regardless of the circumstances. You can even shorten the command to ip an if you want to be really efficient. ![]() Consequently, you will get an output that looks something like what is seen in the screenshot below: If we want to know what our current IP address is, we may use the command ip addr show to find out: ip addr show ![]() Using the ip command, we may inspect information about our network interfaces and manage them. This can be accomplished with two simple commands: ip (which is highly recommended) and ifconfig (which is optional) (which was the previous method). The major goal of this section is to accomplish just that. First and foremost, we must learn how to analyze the current connection parameters that our server's network card is now employing to communicate with the outside world.
0 Comments
Leave a Reply. |