Self-study address: http://www.imooc.com/view/175
Learn 2.8 Chapters, configure IP this piece, the mother egg, he jumped directly, do not know how to configure, helpless, can only search
First find the way to configure IP:
Http://www.cnblogs.com/lhj588/archive/2012/02/15/2353139.html
After writing, found a question, how to save? (That's a really stupid question.)
You can only search and find a command:
vi/etc/resolv.conf #用vi Editor to open the specified file #vi: Text editor (Exit VI Editor: WQ or: q! The former Save exit, the latter does not save fallback # out)
So in the command interface input: ": Wq", special, no movement ah, or in the editing state, also search what method, can only go to the group to ask, found is:
Press ESC first, and then enter: Wq is saved.
Now make a full note:Configure the static IP for CentOS under VMware
First make sure that the Virtual network card (VMware network Adapter VMnet8) is turned on and find this IP address, such as:
Then change the virtual machine's " network adapter " mode to "NAT"
Enter the CentOS command operator interface, type: "vim/etc/sysconfig/network-scripts/ifcfg-eth0"
Then add edits within the Red line:
After editing, press ESC, and then enter the command: ": Wq" to save
Last Restart Service: ServicesNetwork Restart , shown below to indicate success, just ping a URL to try it, (here ping like windows, exit ping state using CTRL + C)
So far, check IP by:ifconfig eth0 or ifconfig|grep ' bcast '
The bumpy road of Linux-centos Learning (a) network configuration chapter