...
- Copy the network interface MAC address as displayed in the "ifconfig" command output after the attribute "ether"
change directory to /etc/sysconfig/network-scripts
Code Block language bash theme RDark cd /etc/sysconfig/network-scripts
- agf
- srdhg
- fzg
duplicate the eth0 (first network interface) network interface configuration file for the new network interface file (eth1)
Code Block language bash theme RDark cp ifcfg-eth0 ifcfg-eth1
Edit the new file (ifcdf-eth1) and alter the following attributes based on the new network interface properties
Code Block language bash theme RDark DEVICE=eth1 BOOTPROTO=static ONBOOT=yes NM_CONTROLLED=no HWADDR=00:0c:29:14:7a:88 IPADDR=192.168.116.178 NETMASK=255.255.255.0 USERCTL=no DNS1=8.8.8.8 DNS2=8.8.4.4 IFCONFIG_OPTS="txqueuelen 10000"
DEVICE : The network interface device name should be eth1
HWADDR : The network interface MAC address as displayed at section 1.
NETMASK : The network mask based on the new interface properties (the network administrator should supply this information)Restart the network service by entering the following command
Code Block language bash theme RDark service network restart The command output should be : Restarting network (via systemctl): [ OK ]
- df
- sdf