1.7. Network Configuration Using the Command-Line Interface (CLI)
man ip(8)page. The package name in Red Hat Enterprise Linux 7 is iproute. If necessary, you can check that the ip utility is installed by checking its version number as follows:
ip -Vip utility, iproute2-ss130716
ip link set ifname up
ip link set ifname down
ip link set ifnamecommand sets a network interface in
IFF_UPstate and enables it from the kernel's scope. This is different from the
ifup ifnamecommand for initscripts or NetworkManager's activation state of a device. In fact, NetworkManager always sets an interface up even if it is currently disconnected. Disconnecting the device through the nmcli tool, does not remove the
IFF_UPflag. In this way, NetworkManager gets notifications about the carrier state.
ifconfigutility because the net-tools package (which provides
ifconfig) does not support InfiniBand addresses. The command
ip helpprints a usage message. Specific help is available for OBJECTS, for example:
ip link helpand
ip addr help.
ifcfgfiles) or add the commands to a script.