Linux Tutorial
Let's try ifconfig command,
# ifconfig em2 8.8.8.1 netmask 255.255.255.0 up -bash: ifconfig: command not found
command not found error, so we need to install net-tools and try again once installed.
How to install net-tools in RHEL 7/Fedora/Centos?
# yum install net-tools
Installation is in progress,
Loaded plugins: product-id, search-disabled-repos, subscription-manage Resolving Dependencies --> Running transaction check ---> Package net-tools.x86_64 0:2.0-0.24.20131004git.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================= Installing: net-tools x86_64 2.0-0.24.20131004git.el7 beaker-Server 306 k Transaction Summary ============================================================================================================================================================================= Install 1 Package Total download size: 306 k Installed size: 918 k Is this ok [y/d/N]: y Downloading packages: net-tools-2.0-0.24.20131004git.el7.x86_64.rpm | 306 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : net-tools-2.0-0.24.20131004git.el7.x86_64 1/1 Verifying : net-tools-2.0-0.24.20131004git.el7.x86_64 1/1 Installed: net-tools.x86_64 0:2.0-0.24.20131004git.el7 Complete!
Done the net-tools installation and let's try ifconfig command again,
# ifconfig em2 8.8.8.1 netmask 255.255.255.0 up
Linux Tutorial
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us | Report website issues in Github | Facebook page | Google+ page