1.VMware Fusion Settings Select "Network Adapter"
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/A5/A4/wKioL1nA5Q3j2FKwAASBsd1EVVc022.png-wh_500x0-wm_ 3-wmp_4-s_855447703.png "title=" screen snapshot 2017-09-19 pm 4.47.18.png "alt=" Wkiol1na5q3j2fkwaasbsd1evvc022.png-wh_50 "/>
2. "Connect My network adapter" select "Share with my Mac"
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M01/06/F3/wKiom1nA5U7ytsKwAAMwtjYk_s8845.png-wh_500x0-wm_ 3-wmp_4-s_2641988476.png "title=" screenshot 2017-09-19 pm 4.47.38.png "alt=" wkiom1na5u7ytskwaamwtjyk_s8845.png-wh_50 "/ >
3. Edit the CentOS IP configuration file
[Email protected] ~]# more/etc/sysconfig/network-scripts/ifcfg-eth0device=eth0type=ethernetuuid= 135a7471-b220-4c9b-ad21-f740e2a5b196onboot=yesnm_controlled=yesbootproto=dhcphwaddr=00:0c:29:95:f9:ad#ipaddr= 192.168.68.100prefix=20#gateway=92.168.68.1defroute=yesipv4_failure_fatal=yesipv6init=noname=eth0
1) Enable DHCP 2) Note ipaddr and Gateway 3) Onboot set to Yes
4. Restart the network
Service Network restart
To view network information:
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/06/F6/wKiom1nBDxKhEvMVAANM5ZpWW5k038.png-wh_500x0-wm_ 3-wmp_4-s_3527086680.png "title=" screenshot 2017-09-19 pm 8.34.10.png "alt=" wkiom1nbdxkhevmvaanm5zpww5k038.png-wh_50 "/ >
4. Add a default gateway
[[email protected] ~]# route add default GW 192.168.39.2
5. Test Connection Status
Access to Extranet:
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/06/F3/wKiom1nA5Yryd90tAAHfZkTox6E780.png-wh_500x0-wm_ 3-wmp_4-s_1637190112.png "title=" screenshot 2017-09-19 pm 5.16.09.png "alt=" wkiom1na5yryd90taahfzktox6e780.png-wh_50 "/ >
To access the physical machine:
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/A5/A4/wKioL1nA5WvzZ6myAAGMdd80WTM334.png-wh_500x0-wm_ 3-wmp_4-s_3809362210.png "title=" screenshot 2017-09-19 pm 5.16.52.png "alt=" wkiol1na5wvzz6myaagmdd80wtm334.png-wh_50 "/ >
This article is from the "hello,world!" blog, make sure to keep this source http://bovin.blog.51cto.com/7402899/1966901
CentOS Networking under VMware fusion