Ubuntu: Turn on the Samba service failure to open Linux shared files properly

Source: Internet
Author: User

A: Basic introduction

Description: After configuring Samba, you can go directly to the Linux shared folder from under window, allowing for file interaction between different OSes.

Action: You can enter Ubuntu IP into Windows to try it on "My Computer" or "Run" to enter "\ \ + Ubuntu machine IP" such as:\\192.168.1.130

  

Second: Encounter problems

A display that cannot be opened appears when you follow the action.

  

Note: 192.168.1.134 is the IP set for the Ubuntu virtual machine.

Three: Reasons for analysis

1. The IP address of the host computer does not correspond to the virtual machine, the two are not a network segment.

2. The DNS gateway set by the virtual machine is not a local DNS gateway.

  

IV: Solutions

1. When I set both the computer host IP and the virtual machine IP to 192.168.1.xxx (the IP cannot be the same, otherwise there will be an IP conflict), found can open

  

 

2. But at this time, but can not log on the Web page cannot internet (here using wireless Internet), the query learned that the local automatic IP address is 192.168.137.xxx,

When I set the computer host and the virtual machine IP to 192.168.137.xxx, I was able to surf the internet, but Samba couldn't open it.

Instead of connecting to a wired network, the same thing happens, either to surf the Internet or to open samba, but not both.

    

3. The ultimate compromise solution is to connect wired, wireless, and wired local connections to the Internet, using a wireless network to connect virtual machines. Finally, we can access the information on the Internet and open samba at any time.

  

At this point try to change the wireless network to Chinanet, without an account, even if the IP set to 192.168.1.xxx is also not possible.

Ubuntu: Turn on the Samba service failure to open Linux shared files properly

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.