Under CentOS6.5 set a static IP

A recent study using a Linux VM, using the kind with desktop after each restart Linux networking manually, since Linux is operating on XShell, each time re-entering the VM operating Linux networking will be very troublesome, so the thought of one way - to set a static IP

Edit card file

/etc/sysconfig/network-scripts/ifcfg-eth0

Before the card file settings

After the card file settings

Then restart the network card

service network restart

So Linux will automatically restart after the network, and ip is fixed.

Guess you like

Origin www.cnblogs.com/zjw-blog/p/11369578.html