The speed of accessing samba from Ubuntu dual Nic of VMWare Virtual Machine doubles

Source: Internet
Author: User

Objective: To improve the speed of Samba file sharing with the Virtual Machine Ubuntu.

Solution:

Ubuntu uses a dual-nic, one bridge is connected to the physical Nic, And the other uses the host-only method to interact with the host for Samba. As shown in:

After a virtual network card with host-only access is added, start the virtual machine. In fact, the Samba share of the Virtual Machine Ubuntu can be accessed, but DHCP is used by default to obtain the IP address;

I don't know why this access speed is much slower, but it is faster than accessing Samba through another bridge physical Nic;

As long as the host-only NIC is set to static IP, the speed of the host to access the VM Ubuntu Samba will be twice the speed of the physical bridge Nic;

Physical bridging NICs are mainly used to access the Internet;

Another advantage of using the host-only NIC to access the Virtual Machine Samba is that when the network cable of the Computer host is unplugged, the Network Disk mapped to the virtual machine remains connected.

Set the host-only NIC to access through a static IP address ,:

Restart the VM and remap the Samba share of the VM to a local disk to verify the access speed, as shown in:

Copying the same file to a virtual machine's Network Disk doubles the speed!

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.