The host machine macos cannot connect to the Virtual Machine centos

Source: Internet
Author: User

Host:

Mac OS 10.9.2

Virtual Machine:

[Root @ localhost ~] # Cat/etc/redhat-release

CentOS release 6.4 (Final)

[Root @ localhost ~] # Uname-

Linux localhost. localdomain 2.6.32-358. el6.x86 _ 64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Virtual machines are started through vagrant up

Port ing has been configured in Vagrantfile

Config. vm. network: forwarded_port, guest: 80, host: 9098

And enable access within the LAN

Config. vm. network: public_network

Problem:

The host cannot connect to the VM.

Solution: Disable the firewall of the VM.

[Root @ localhost ~] # Service iptables stop

Iptables: Flushing firewall rules: [OK]

Iptables: Setting chains to policy ACCEPT: filter [OK]

Iptables: Unloading modules: [OK]

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.