vi /etc/sysconfig/network-scripts/ifcfg-eth0
http://www.commandlinefu.com/commands/view/1204/save-a-file-you-edited-in-vim-without-the-needed-permissions#comment
Save a file you edited in vim without the needed permissions
:w !sudo tee %
vi /etc/sysconfig/network-scripts/ifcfg-eth0
:w !sudo tee %