CentOS6 Configuring Static IP

1. First configure the network connection method

VMware select edit->Virtual network editor->VMnet0 bridge mode

share picture

share picture

2, configure the network card

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

Share a picture

(1) HWADDR network card address, check whether it is local to the virtual machine The same in CentOS6.8-64-INIT.vmx in the directory

(2)ONBOOT must be yes

(3)BOOTPROTO is static

(4)IPADDR is set The static IP, NETMASK is the subnet mask, and GATEWAY is the gateway. All are the same as your own network.

Share pictures

Save the file and modify successfully

3. Restart the network card

service network restart

4. Pop-up interface eth0: Error: No suitable device was found. . .

Error:

Share a picture

There is no IPv4 when querying the host IP

share picture

Solution:

vim /etc/udev/rules.d/70- persistent-net.rules

share picture

< p>Paste the copied code below

share picture

Save and exit

service network restart

Share pictures

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4859 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.