1. Logon as the root user to your Linux Server.
[larry@linux1 ~]$ sudo su
[root@linux1 larry]#
2. Execute the command: ip -o link show | awk -F’: ‘ ‘{print “ip link set dev “$2″ up”}’ >ip_up.sh
[root@linux1 larry]# ip -o link show | awk -F’: ‘ ‘{print “ip link set dev “$2″ up”}’ >ip_up.sh
[root@linux1 larry]#
3. Change Permission to 775 on file ip_up.sh
[root@linux1 larry]# chmod 770 ip_up.sh
[root@linux1 larry]#
4. Execute file ip_up.sh
[root@linux1 larry]# ./ip_up.sh
[root@linux1 larry]#
5. Execute the command:
find /etc/sysconfig/network-scripts -name “ifcfg-*” -not -name “*bak”| awk -F’: ‘ ‘{print “perl -pi.bak -e ‘”‘”‘s/ONBOOT=no/ONBOOT=yes/g'”‘”‘ “$1}’ > net_ifcfg_update.sh
6. Change the permissions to 775 on file net_ifcfg_update.sh.
[root@linux1 ~]# chmod 775 net_ifcfg_update.sh
[root@linux1 ~]#
7. Execute file net_ifcfg_update.sh.
[root@linux1 ~]# ./net_ifcfg_update.sh
[root@linux1 ~]#
8. Now restart your linux server with the command: reboot.
[root@linux1 larry]# reboot
9. This completes changing your Network adapters to automatically start at system start.
Larry Catt, OCP