In the process of using VMware, DHCP has been automatically assigned IP, never used static IP. This modification to the static IP is mainly due to the replication of the two virtual machine IP conflicts, and then began a variety of ping outside the invalid problem, Baidu has a lot of no solution, in groping to get a solution, may not be effective for other hosts.
1. View network operation status under DHCP
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s2.51cto.com/wyfs02/m02/85/24/wkiom1ea6yuwwizpaabf9wi1dce534.png-wh_500x0-wm_3-wmp_4-s_3735695111.png "title = "1.png" style= "Float:none;" alt= "Wkiom1ea6yuwwizpaabf9wi1dce534.png-wh_50"/>
From the above state, the network does not have any problems
2. Below we use static IP, specify IP as 192.168.163.226
Note that the static IP also needs to be leased to the DHCP server, just at the beginning I set in order to 192.168.163.38, a variety of not, from (Vmvare edit-"virtual network adapter--" DHCP settings), you can see that the DHCP server only provides 192.168.163.128-192.168.163.254 leases
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s1.51cto.com/wyfs02/m01/85/24/wkiol1ea6y2xcjzeaahh2i__vq0172.png-wh_500x0-wm_3-wmp_4-s_2607668167.png "title = "4.png" style= "Float:none;" alt= "Wkiol1ea6y2xcjzeaahh2i__vq0172.png-wh_50"/>
From below we can see that the static IP is in effect, can only ping detox host 192.168.163.1, the external network and the URL and IP are not through.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s2.51cto.com/wyfs02/m01/85/24/wkiom1ea6yzzc1oxaabldjifche628.png-wh_500x0-wm_3-wmp_4-s_4044241174.png "title = "3.png" style= "Float:none;" alt= "Wkiom1ea6yzzc1oxaabldjifche628.png-wh_50"/>
3.ping different external network, here I think is to add a default route, just beginning to think that the virtual machine gateway is 192.168.163.1, the result is still not. Later by knowing that the gateway in Nat was 192.168.163.2.
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m02/85/24/wkiol1ea6yzhjdljaaey2kalv84863.png-wh_500x0-wm_3-wmp_4-s_3688550842.png "title = "2.png" style= "Float:none;" alt= "Wkiol1ea6yzhjdljaaey2kalv84863.png-wh_50"/>
The operation is as follows:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m02/85/24/wkiom1ea6y2qix_eaaa23dipdqi414.png-wh_500x0-wm_3-wmp_4-s_2677015702.png "title = "5.png" style= "Float:none;" alt= "Wkiom1ea6y2qix_eaaa23dipdqi414.png-wh_50"/>
4. After adding a default route, you can see that the network IP can be ping, but the URL is not, then the main DNS server is not configured to continue to set up a DNS server
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s1.51cto.com/wyfs02/m02/85/24/wkiol1ea6y3hx_tmaaba-wceh1i921.png-wh_500x0-wm_3-wmp_4-s_173689950.png "title= "6.png" style= "Float:none;" alt= "Wkiol1ea6y3hx_tmaaba-wceh1i921.png-wh_50"/>
5. You can see that the network is no longer connected to the problem, but after restarting the network found that the default route is invalid
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s5.51cto.com/wyfs02/m00/85/24/wkiom1ea6y3x_gjmaaaikw1ulwa567.png-wh_500x0-wm_3-wmp_4-s_1013013900.png "title = "7.png" style= "Float:none;" alt= "Wkiom1ea6y3x_gjmaaaikw1ulwa567.png-wh_50"/>
6. Continue to recall the network knowledge previously learned, and then modify the configuration file to increase the default gateway
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s4.51cto.com/wyfs02/m00/85/24/wkiol1ea6y7qphd-aaas_exfh7a969.png-wh_500x0-wm_3-wmp_4-s_1937188318.png "title = "8.png" style= "Float:none;" alt= "Wkiol1ea6y7qphd-aaas_exfh7a969.png-wh_50"/>
7. After modification, restart the network, see Route discovery has a default route, and then Ping, found that there is no problem at all
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s2.51cto.com/wyfs02/m00/85/24/wkiol1ea6yvwkoqcaaa3jru_gti100.png-wh_500x0-wm_3-wmp_4-s_3968123424.png "title = "9.png" style= "Float:none;" alt= "Wkiol1ea6yvwkoqcaaa3jru_gti100.png-wh_50"/>
After 8.reboot, there is no problem at all, the problem that has been troubled for a long time solved smoothly.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/85/24/wKiom1ea6j7Ar5RZAABe1yluGyg248.png-wh_500x0-wm_3 -wmp_4-s_2847439528.png "title=" 10.png "alt=" Wkiom1ea6j7ar5rzaabe1ylugyg248.png-wh_50 "/>
This article is from the "Big Waste" blog, please be sure to keep this source http://bigtrash.blog.51cto.com/8966424/1831667
A solution to the NAT mode static IP in Vmvare not connected to the external network