How do I configure network settings in Manjaro?

Effective network configuration is crucial for a seamless and productive computing experience. Manjaro Linux, known for its user-friendly approach, provides a straightforward yet powerful set of tools for configuring network settings. In this comprehensive guide, we will explore the various aspects of configuring network settings in Manjaro, covering both wired and wireless connections.

Network Configuration Tools in Manjaro

Manjaro offers multiple tools to configure network settings, ensuring flexibility and ease of use. The primary tools include:

1. NetworkManager:

  • NetworkManager is a dynamic network control and configuration manager that comes pre-installed with Manjaro. It provides a graphical user interface (GUI) for manageing both wired and wireless connections.

2. nmtui (NetworkManager Text User Interface):

  • For users who prefer the command line, nmtui is a text-based interface for NetworkManager. It allows users to configure network settings in a terminal environment.

3. systemd-networkd:

  • Manjaro also includes systemd-networkd, a system daemon that manages network configurations. While it’s less common for everyday users, advanced users may choose to configure network settings directly through systemd-networkd.

Configuring Wired Network Connections

1. Using NetworkManager GUI:

  • Open the Manjaro Settings Manager from the application menu.
  • Navigate to the “Hardware Configuration” section.
  • Select the network device (Ethernet card) and click “Auto Install Proprietary Driver” if needed.
  • Open the NetworkManager applet from the system tray.
  • Choose “Wired” and select your wired connection.
  • Click on the gear icon to access the settings.
  • Configure IPv4 and IPv6 settings as per your network requirements.
  • Click “Apply” to save the changes.

2. Using nmtui (Text-Based Interface):

  • Open a terminal and type nmtui.
  • Navigate to the “Edit a connection” option.
  • Choose your wired connection and press Enter.
  • Navigate to the “IPv4 Configuration” and “IPv6 Configuration” options to set the desired settings.
  • Press F10 to save and exit.

3. Using systemd-networkd:

  • Create a configuration file for systemd-networkd. For example, create a file named /etc/systemd/network/eth0.network for the eth0 interface.
[Match]
Name=eth0

[Network]
DHCP=yes
  • Save the file and restart systemd-networkd: sudo systemctl restart systemd-networkd.

Configuring Wireless Network Connections

1. Using NetworkManager GUI:

  • Open the NetworkManager applet from the system tray.
  • Choose “Wi-Fi” and select your wireless network.
  • Enter the Wi-Fi password if required.
  • Click on the gear icon to access advanced settings.
  • Configure IPv4 and IPv6 settings as needed.
  • Click “Apply” to save the changes.

2. Using nmtui (Text-Based Interface):

  • Open a terminal and type nmtui.
  • Navigate to the “Activate a connection” option.
  • Choose your wireless network and press Enter.
  • Enter the Wi-Fi password if required.
  • Press F10 to save and exit.

3. Using systemd-networkd:

  • Create a configuration file for systemd-networkd. For example, create a file named /etc/systemd/network/wlan0.network for the wlan0 interface.
[Match]
Name=wlan0

[Network]
DHCP=yes
  • Save the file and restart systemd-networkd: sudo systemctl restart systemd-networkd.

Advanced Network Configuration

1. Static IP Configuration:

  • If you need a static IP address, you can configure it through the GUI or by editing configuration files. For NetworkManager, set the IPv4 or IPv6 method to “Manual” and enter the desired IP address, subnet mask, gateway, and DNS servers.

2. VPN Configuration:

  • Manjaro supports various VPN protocols. Use the NetworkManager GUI to configure VPN connections easily. Open the NetworkManager applet, choose “VPN Connections,” and select “Add a VPN Connection.”

3. Bridging and Bonding:

  • For advanced network setups like bridging or bonding, you can configure them using NetworkManager or systemd-networkd. Consult the relevant documentation for detailed instructions.

Troubleshooting Network Issues

1. Check Network Hardware:

  • Ensure that your network hardware is detected and functional. Use tools like ip link or lspci to list network interfaces.

2. Restart Network Services:

  • If facing connectivity issues, restart network services. For NetworkManager, use sudo systemctl restart NetworkManager. For systemd-networkd, use sudo systemctl restart systemd-networkd.

3. Check IP Configuration:

  • Verify your IP configuration by using the ip addr command. Ensure that you have an IP address, subnet mask, and gateway configured correctly.

4. DNS Configuration:

  • Check your DNS settings. If using NetworkManager, ensure that the correct DNS servers are configured in the connection settings.

5. Firewall Settings:

  • If you have a firewall enabled, ensure that it allows traffic for your network connections. Manjaro uses ufw as the default firewall tool.

6. Driver Issues:

  • Verify that the necessary drivers for your network hardware are installed. Check the Manjaro Settings Manager for proprietary drivers.

7. Check Logs:

  • Review system logs for any network-related errors. Use commands like journalctl -xe to view logs.

Conclusion

Configuring network settings in Manjaro is a straightforward process thanks to the user-friendly tools provided by the distribution. Whether you prefer the convenience of a graphical interface with NetworkManager or the efficiency of the command line with nmtui or systemd-networkd, Manjaro offers flexibility to cater to different user preferences. By following the steps outlined in this guide and troubleshooting common network issues, users can ensure a reliable and optimised network setup on their Manjaro Linux systems.

Scroll to Top