Use the TAP Nic In Ubuntu

Source: Internet
Author: User
Because n2n is used, the TAP Nic is used. It is very easy to use in Windows. Download The openvpn installer and install only the TAP in it. However, you sometimes need to run the batch processing program under the installation directory, the system will prompt that the driver has not passed the authentication and is not compatible. Force the installation. After the installation is complete, a NIC icon will appear in the network connection. However, in Ubuntu, it is actually simpler. By default, the TAP Nic is installed. You only need to use modprobetun to load the kernel module. However

Because n2n is used, the TAP Nic is used. It is very easy to use in Windows. Download The openvpn installer and install only the TAP in it. However, you sometimes need to run the batch processing program under the installation directory, the system will prompt that the driver has not passed the authentication and is not compatible. Force the installation. After the installation is complete, a NIC icon will appear in the network connection.

However, in Ubuntu, it is actually simpler. By default, the TAP Nic is installed.

Modprobe tun

You can load the kernel module.

However, it cannot be used immediately after being loaded. You also need to download the source code of the user mode linux tool, which is about 46 k. decompress the tool and enter the tunctl directory. directly make the tool to generate tunctl, make install (Super User) and install it in the/usr/bin directory.

Finally, run the following command:

Sudo./tunctl-u root-t tap0

That is, a virtual network card named tap0 is generated, but it can only be seen using ifconfig-.

Then n2n can be used.

-------

The network service restart of Ubuntu is somewhat different from that of other systems. It uses/etc/init. d/networking restart, as if both Fedora and SUSE are changed to service network restart.

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.