Network configuration of Linux centos6.6
When centos is installed in the virtual machine, the steps to configure the network are as follows:
1. View the network card adapter
Ifconfig-a
two。 Set network card boot and other parameters
Vim / etc/sysconfig/network-scripts/ifcfg-eth0
3. Edit parameter
ONBOOT=yes
BOOTPROTO=static (static IP [dhcp dynamic acquisition IP])
IPADDR= (IP to be set)
NETMASK=255.255.255.240
CATEWAY= (Gateway IP)
4. As shown in the figure: