If you do not see any files, you can create one. Go to the netplan directory located at /etc/netplan.Without proper indentation, the file won't be read properly. Note: Be careful about spaces in the configuration file as they are part of the syntax. Configuration files for Netplan are written using YAML and end with the extension. Netplan is the default network management tool for the latest Ubuntu versions. For more info on subnetting and your usable IP ranges, check out this article. Select the output against your adapter and read it carefully. We can find the subnet mask details using the command below: ifconfig -a It is worth noting that the current IP 172.23.199.129 is dynamically assigned. 6: eth0: mtu 1500 qdisc mq state UP group default qlen 1000 It could be different for your systemĪs my current adapter is eth0, the below details are relevant. The output will look something like this:įor my network, the current adapter is eth0. Use the command below to find details of the available adapters and the respective IP information. We will need our current network details such as the current assigned IP, subnet mask, and the network adapter name so that we can apply the necessary changes in the configurations. Step 2: Note information about the current network You can launch the terminal using the shortcut Ctrl+ Shift+t. In this section, we will explore all the steps in detail needed to configure a static IP. How to Set a Static IP Using the Command Line sudo rights as we will be modifying system configuration files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |