Using VMware Fusion to install CentOS under "OD Hadoop" Mac

Source: Internet
Author: User

Label:

One, Nat mode network access

(1) Enter commands in Linux ifconfig view network information

(2) Enter commands in Mac Ifconfig view network information

lo0:flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> MTU16384Options=3<RXCSUM,TXCSUM>Inet6::1Prefixlen -inet127.0.0.1Netmask0xff000000inet6 FE80::1%lo0 Prefixlen -ScopeID0x1Nd6 Options=1<PERFORMNUD>Gif0:flags=8010<POINTOPOINT,MULTICAST> MTU theStf0:flags=0<> MTU theEn0:flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> MTU theether a4:5e: -: ec:ff:3f inet6 fe80::a65e:60ff:feec:ff3f%en0 Prefixlen -ScopeID0x4inet192.168.199.185Netmask0xffffff00Broadcast192.168.199.255Nd6 Options=1<PERFORMNUD>Media:autoselect status:activeen1:flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> MTU theOptions= -<TSO4,TSO6>Ether 6a:xx:xx: -: 6a:e0 media:autoselect<full-duplex>Status:inactiveen2:flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> MTU theOptions= -<TSO4,TSO6>Ether 6a:xx:xx: -: 6a:e1 media:autoselect<full-duplex>Status:inactivep2p0:flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> MTU2304ether .: 5e: -: ec:ff:3f media:autoselect status:inactiveawdl0:flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> MTU1452ether 7a:d1:9a:f2:6c:TenInet6 FE80::78D1:9AFF:FEF2:6C10%awdl0 Prefixlen -ScopeID0x8Nd6 Options=1<PERFORMNUD>Media:autoselect status:activebridge0:flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> MTU theOptions= the<RXCSUM,TXCSUM,TSO4,TSO6>ether a6:5e: -: ce:c0:xxConfiguration:ID 0:0:0:0:0:0Priority0Hellotime0Fwddelay0MaxAge0Holdcnt0Proto STP Maxaddr -Timeout -RootID 0:0:0:0:0:0Priority0Ifcost0Port0IPFilter Disabled Flags0x2MEMBER:EN1 Flags=3<LEARNING,DISCOVER>ifmaxaddr0Port5Priority0Path cost0MEMBER:EN2 Flags=3<LEARNING,DISCOVER>ifmaxaddr0Port6Priority0Path cost0Nd6 Options=1<PERFORMNUD>Media:<unknown type>Status:inactivevboxnet0:flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> MTU theether 0a:xx: -:xx:xx:xxinet192.168.56.2Netmask0xffffff00Broadcast192.168.56.255Vmnet1:flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> MTU theetherxx: -: About: C0:xx: oninet192.168.227.1Netmask0xffffff00Broadcast192.168.227.255Vmnet8:flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> MTU theetherxx: -: About: C0:xx: ,inet172.16.53.1Netmask0xffffff00Broadcast172.16.53.255

Found two more Vmnet1,vmnet8 interface, played by VMware know this is a virtual network, VMNET1 is Host-only way, Vmnet8 is the way of Nat.

(3) View VMware Fusion Configuration

@webm? ~sudo  More/library/preferences/vmware\ fusion/networkingversion=1,0answer vnet_1_dhcp yesanswer vnet_1_dhcp_cfg_hash ****answer vnet_1_hostonly_netmask255.255.255.0Answer Vnet_1_hostonly_subnet192.168.227.0answer vnet_1_virtual_adapter yesanswer vnet_8_dhcp yesanswer vnet_8_dhcp_cfg_hash ****answer VNET_8_HOSTONLY_ NETMASK255.255.255.0Answer Vnet_8_hostonly_subnet172.16.53.0answer Vnet_8_nat yesanswer vnet_8_virtual_adapter Yes

(4) Edit the system Ech0 Network,

Select Ip4settings

Method Select "Manual"

Click Add

IP address: 172.16.53.100

netmask: 255.255.255.0

Gateway: 172.16.53.2

(5)Vi/etc/sysoconfig/network-scripts/ifcfg-eth0

Add a line dns1=172.16.53.2(gateway address)

(6) Vi/etc/sysconfig/network

Networking=yes

Hostname=yeahwell.abc.com

(6) Vi/etc/hosts

Add a line to the end of the file 172.16.53.100 yeahwell.abc.com

Service Network restart

(7) Network disconnected and reconnected

(8) Ping www.baidu.com

Using VMware Fusion to install CentOS under "OD Hadoop" Mac

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: