The so-called virtual network card, that is, using software to simulate the network environment, simulate the network adapter, then how to build a virtual network card in Ubuntu? The following small series will introduce the method to everyone, I hope to help you.
If you have an understanding of network operations and IP networks, you should know that in most cases, each network card will only be assigned an IP address. We are used to thinking that this is a one-to-one thing.
A network card corresponds to an IP address. You can only bind or run a single network service/port on a network card and its IP address on one machine. For example, if you want to run a web server on port 80, an IP address and port number can only be listened to by a web server. This is how it is designed.
So, the network card and IP address are not one-to-one. You can create a virtual network card that can be assigned an IP address separately. Therefore, a single physical NIC can cluster unlimited subnet cards or virtual NICs. Each can assign its own IP address to the corresponding port.
This short tutorial will show you how to do this on Ubuntu. This is a great way to run and test multiple network services on a single computer with a single physical network card and a single port number.
Let's do it, run the following command to open the network interface file.
sudo gedit /etc/network/interfaces
Then follow the steps in the figure below to add as many virtual NICs as you want. By default, Linux assigns the first NIC the name of eth0, so if your machine has only one NIC, it will be named eth0.
Add a virtual NIC, create multiple static NICs and name them eth0:1, eth0:2, eth0:3, etc. (eth0 is followed by a colon and a number).
For every card you create, but also to ensure that the network is different subnets, which is a network of common sense (translation: not the case, the virtual card can be the same IP subnet Address, as long as you need)
After you finish, save the file and restart the network service with the following command.
sudo service networking restart
That's it!
The above method is to create a virtual network card Ubuntu introduced, because most systems have built-in virtual NIC, so no need to download and install, comes as no need to own the Internet to download and install.
During the use of Linux systems, sometimes we will use some tools to backup or restore file permissi
on rhel6.3 rhel is the Linux system of Red Hat, and yum is the shell front-end package manager unde
Usually, Linux does not come with rz and sz commands, you need to manually install rz and sz package
of CentOS uninstalling lamp environment When you are learning PHP, you need to install the lamp env
What if the iPad cannot be charged in Ubuntu?
How to solve the problem of forgetting the root password under Linux?
What should I do if Unix cannot find the apue.h file?
Wget command operation example
Linux prompts [root@localhost ~]# iptraf when executing commands?
How Linux uses the kill command to force a process to terminate
How to install tracking tool jira
How to recover after the fstab file is lost under Linux?
How to solve Linux Chinese garbled?
Linux set swap swap partition steps
Windows+Windows Phone application breakthrough 560,000
How to delete the C disk log log file in batches in Win7 system?
Win10 installs Office365 when the computer does not respond, how to do
Win7 open web page prompt error code ERR_EMPTY_RESPONSE how to solve?
Use Windows 8's quick access menu win+x
Windows 7 system is restricted by router Internet access Prompt network access is restricted
Use mutexes to control Linux thread synchronization
How did the Lulu coins of the ancient century get the Raiders of the ancient century?