
To edit the MTU for the eth0 interface, add an “MTU=” line to the /etc/sysconfig/network-scripts/ifcfg-eth0 file. You can then verify that the new MTU has taken effect by running:Īfter you’ve applied the new MTU, and verified that all is working as expected, be sure to update the interface’s configuration file, so that this change persists the next time the server is rebooted. For example, to increase the MTU of the eth0 interface from the default of 1500 bytes to 9000 bytes, run: The ip command can be used in place of ifconfig for many purposes, including increasing the MTU.
CENTOS 7 IFCONFIG INSTALL
All you have to do is install the net-tools package and ifconfig should then be available. The ifconfig utility is part of a larger utility package called net-tools. This is a utility of Linux command-line which helps to keep look on network interface functionality like manage, configure and display. How do you install ifconfig on CentOS The installation of Ifconfig on CentOS 7 (or any CentOS servers that are missing the utility) is very simple. Yes It has a short form to pronounce as ifconfig. However, I wanted to avoid making any changes other than increasing the MTU, so I use the ip command instead. Steps to install Ifconfig on centos 7 In technical terms, ifconfig is denoted as Interface configuration. If you want the ifconfig command, then you can install it by installing the net-tools package: Unfortunately for me the two servers that I was working on, like many CentOS 7 systems did not have the ifconfig command installed. I could then verify that the new MTU had been applied by running:

For example, to increase the MTU of the eth0 interface from the default of 1500 bytes to 9000 bytes, I would run

In the past I’ve used ifconfig to test this change out.
CENTOS 7 IFCONFIG HOW TO
How to make those command available Solution : By default, ifconfig and netstat utility is not installed on RHEL 7.0/CentOS 7.0/Oracle Linux 7 min. This is sometimes referred to as enabling jumbo frames. Question : I have just setup on RHEL 7.0/CentOS 7.0/Oracle Linux 7 minimal server installation but i notice ifconfig and netstat command not found. I recently needed to increase the MTU use by the NICs on a point-to-point link to 9000 bytes in order to improve DRBD performance. Ethernet interfaces normally use an MTU of 1500 bytes.
