Quote:
|
Originally Posted by ahays
Login as root and follow these setps:
1) “cd /etc”
2) “chmod 777 hosts” (changes file to Read/write)
3) “vi hosts”
4) change the IP address for the appropriate switch (using vi editing vi commands listed below)
5) ":" to end editing
6) "wq" to save hosts file and exit
7) "chmod 444 hosts" (changes file back to Read-only)
regs,
.al.
|
save a couple of steps and execute :wq! to save. You won't have to chmod the file 1st and after...