#Check new backup NIC - MACis visible
ip a
#Copy existing configuration if available. Else use nmtui
cd /etc/sysconfig/network-scripts/
cp -pr ifcfg-ens256 ifcfg-ens225
#Change the value to reflect new nic
vi ifcfg-ens225
IPADDR=<NewIP>
NETMASK=<netmask>
DEVICE=ens225
#Bring the ip up
ifup ens225
#Add route to route table
ip route add <ip/offset> via <gatewayip>
#Check route is added.
route -n
No comments:
Post a Comment