Tip

Managing Red Hat Enterprise Linux network settings using NetworkManager

In Red Hat Enterprise Linux, you'll find NetworkManager as the default solution to manage network connections.  It functions almost the same as system-config-network, but with a graphical display.  After performing an installation of Red Hat Enterprise Linux, the system will get the network configuration

Requires Free Membership to View

from a DHCP server on one of the connected network devices, but additional configuration is often required.

On the graphical desktop, you'll find the NetworkManager icon in the system tray, in the upper right corner of the desktop. Use a left click to manage the current networks that are available for your environment. You can connect to wireless networks or to connect and disconnect from the wired network. You can also use it to connect to a VPN, a hidden wireless network, or to create a new Wireless network connection.

 


Left-click the NetworkManager icon to see available networks.

For network connection management, right-click the mouse on the NetworkManager icon. This opens a menu that allows you to enable or disable the wireless and wired networks, show connection information and edit current connections. If you're not too sure which network you're currently using, the Connection Information option opens a window with the current network settings, allowing you to verify the current network configuration.

 


Select Connection Information to see your current network configuration

To change your network configuration, you can use Edit Connections, which also shows after right-clicking the NetworkManager icon. This opens the Network Connections window, showing all available options on five tabs. For server environments the Wired tab shows all detected network cards . You can then select the connection you want to modify and click Edit to get access to the relevant settings.

Once you are in the edit network card menu, make sure that “Connect automatically” is selected (this is not the default). The Wired tab shows useful properties such as the MAC address, and the maximum transfer unit (MTU). The latter is important if you want to maximize performance of your network and increase the default packet size. For example, if your server needs to send jumbo frames over the selected network card, you can set the MTU size to 9000 bytes. But you should only do this if your switch is configured accordingly.

 


If your switch supports it, you can much increase the network performance by changing the MTU setting for your network card.

By default, a network card will be configured to use DHCP, but it is preferable for servers to use a fixed IP address. To set this, select IPv4 Settings and make sure the “Method” is set to Manual. Then click Add to define the required IP address configuration and click Apply to write this configuration to your server.

 


Change the method to Manual to set the IP address configuration for a network card manually.

When managing a Linux server, it is always important to know where the configuration is stored. The network configuration also is written to a configuration file: /etc/sysconfig/network-scripts/ifcfg-eth0 and a similar configuration file exists for all network cards that are configured on your server. If you open this file, you can see the settings configured in this tip via the graphical interface. You can also go directly into this file to change advanced settings such as NIC teaming. These and other parameters can't be changed using NetworkManager.

This was first published in October 2011

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.