To configure network settings in Ubuntu, you can use the graphical user interface or the command line interface.
Using the Graphical User Interface:
- Click on the network icon in the top right corner of the screen.
- Click on the gear icon to open the settings menu.
- Click on "Network" in the left-hand menu.
- From there, you can select your network connection and modify the settings as needed.
Using the Command Line Interface:
- Open the terminal by pressing "Ctrl + Alt + T" or searching for "terminal" in the Applications menu.
- Type the following command to open the network settings file:
sudo nano /etc/netplan/01-network-manager-all.yaml
- Modify the network settings as needed using YAML syntax. For example, to change the IP address of a network interface, you can add the following lines to the file:
addresses: [22.214.171.124, 126.96.36.199]
- Save and close the file by pressing "Ctrl + X", then "Y", and then "Enter".
- Apply the changes using the following command:
Note: The network interface name and IP address shown in the above example may differ in your system, so be sure to use the correct values for your network configuration.