Network Integration  «Prev  Next»
Lesson 3 Configuring a network interface
Objective Use netcfg to configure a network interface.

Configuring Network Interface during Linux Network Integration

Question: Has the command netcfg been deprecated in Red Hat Linux?
Yes, the netcfg command has been deprecated in Red Hat Enterprise Linux 8 and later versions. It was replaced by the NetworkManager service, which provides a more modern and flexible way to manage network connections. The netcfg command was a legacy command that was used to configure network interfaces in Red Hat Linux. It was based on the ifconfig command and used a text-based interface to configure the network settings. However, the netcfg command was not very flexible and did not support many of the features of modern network interfaces.
The NetworkManager service is a more modern and flexible way to manage network connections. It uses a graphical user interface (GUI) or command-line interface (CLI) to configure the network settings. NetworkManager also supports many features that are not available in the netcfg command, such as automatic network detection and configuration, VPN support, and network bonding.
If you are using Red Hat Enterprise Linux 8 or later, you should use the NetworkManager service to configure your network connections. The netcfg command is still available, but it is no longer supported and should not be used.
Here are some of the benefits of using NetworkManager:
  1. It is more flexible and supports more features than the netcfg command.
  2. It is easier to use, with a graphical user interface or command-line interface.
  3. It is more reliable and stable.
  4. It is more secure.
If you are still using the netcfg command, I recommend that you switch to using NetworkManager. It is the preferred way to manage network connections in Red Hat Enterprise Linux 8 and later versions.

IP Address, Netmask and Gateway

Once you know the IP address, netmask, and gateway, configuration is as simple as filling out a form. netcfg, the utility you use to set these parameters, makes this an easy process.

An important Distinction

IP addresses label network interfaces, not the entire host on which the interface device sits. A single host may have many interfaces that allow it to use different subnets and even facilitate communication among the many connected subnets. For instance, your subnet gateway needs at least two interfaces: one into subnet and one out of subnet.
The following paragraph discusses how to set up an Ethernet network interface.

Configure Ethernet Connection
In this Simulation, you saw how to configure a static IP interface. If your subnet uses DHCP or BOOTP, simply indicate this with the Interface configuration protocol drop-down menu. You will probably want to set the interface to start at boot time, just as you do for the static interface. When you use DHCP or BOOTP, the remainder of the information is set dynamically each time you enable the interface.
In the next lesson, you will learn how to enable and disable network interfaces.

I am using netcfg to configure two interfaces in my archlinux VM. In VirtualBox I have set two active interfaces. The first (eth0) is the NAT interface to provide the VM with Internet access. The second (eth1) is a host-only network so I can access the VM directly from the host. I have tried to configure eth0 with dhcp since it doesnt matter what IP-address it gets from the NAT. And I have tried to configure eth1 with a static IP in the host-only network.
Everything seems to work fine, but here is the thing. If I activate the eth1 interface (host-only) I am able to ping it from the host (as expected), but if I then enable the eth0 interface (nat) I am not able to access the Internet (tried to ping But, if I then disable eth1, eth0 suddenly works fine. Long story short: The NAT interface wont work simultaneously with the host-only interface. The host-only interface seem to always work.
It is because of this I thought the problem existed in the configuration of eth1, since it obviously hindered eth0 to work properly. The configurations are very simplistic, but I have been unsuccessfull to identify the error.

Configuration of eth0 (nat)

DESCRIPTION="DHCP (NAT for Internet access"

Configuration of eth1 (host-only)
DESCRIPTION="Static IP (development)"