How to configure network connections in Fedora?

There are several methods to configure network connections in Fedora, and one commonly used method is as follows:

Set up a network connection using the command line.

  1. Open the terminal and type the following command to view the names of the network interfaces: ip link.
  2. Find the network interface you need to configure based on the output results, such as eth0 or wlan0.
  3. Edit the configuration file to set up the network connection: sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0

    Note: Replace eth0 in the above command with the name of the network interface you want to configure.

  4. Add the following content to the ifcfg-eth0 file to configure the network connection:
    TYPE=Ethernet
    BOOTPROTO=dhcp
    DEFROUTE=yes
    IPv4_FAILURE_FATAL=no
    IPv6INIT=yes
    IPv6_AUTOCONF=yes
    IPv6_DEFROUTE=yes
    IPv6_FAILURE_FATAL=no
    NAME=eth0
    UUID=your-uuid-here
    DEVICE=eth0
    ONBOOT=yes
    Note: Replace ‘your-uuid-here’ with the UUID of your network interface.
  5. Save and exit the file, then restart the network service to apply the configuration changes: sudo systemctl restart network.

The above is the method to configure network connections using the command line in Fedora. You can also configure network connections through the graphical interface. For specific steps, refer to the Fedora official documentation or use network management tools for configuration.

Leave a Reply 0

Your email address will not be published. Required fields are marked *