CentOS6.5 configure static IP and access Baidu

1. Right-click and the following image appears, select open in Terminal

 

2. Find Windows Firewall and turn off the firewall

3. Enter the command service iptables stop on Linux to close the firewall of the virtual system, and OK appears.

 

4. Enter the command chkconfig iptables off to set the firewall to not start automatically

5. Click Computer -> Manage, find the service option in Services and Applications, set the status of VMware DHCP Service and VMware NAT Service to "Start", and set the startup type to "Automatic"

6. Find the Network and Sharing Center, click the linked network, view the properties, and check the two options for sharing

 

7. Enter ipconfig -all in the cmd terminal to view the DNS server, IPv4 address and subnet mask. Since the Ethernet 3 is selected for the home network connection above, the IPv4 address and subnet mask here are selected from Ethernet 3.

 

8. Click Edit for the virtual machine, select the virtual network editor, select VMnet8, and modify the NAT settings and DHCP settings

 

 

 

9. Right-click hadoop000, select Settings, click Network Adapters, and select NAT Mode

 

 

10. Enter the command vi /etc/sysconfig/network-scripts/ipcfg-eth0, configure the following parameters and save, and then enter the command service network restart to restart the service

 

 

11. Enter the Baidu URL test, the external network configuration is successful!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325115165&siteId=291194637