Linux to create multiple virtual network card due to business needs, to establish multiple virtual network card on a single physical network card, the operation is as follows cd/etc/sysconfig/network-scripts/# enter the network card directory cpifcfg-eth0ifcfg-eth0: 1 # Copy the ifcfg-eth0: 1 virtual network card vi... to create multiple virtual NICs in linux, you must create multiple virtual NICs on a single physical NIC due to business needs, the operation is as follows cd/etc/sysconfig/network-scripts/# enter the Nic directory cp ifcfg-eth0 ifcfg-eth0: 1 # Copy the ifcfg-eth0: 1 Virtual NIC vi ifcfg-eth0: 1 # configure the ifcfg-eth0: 1 virtual network card =================================================== ======= DEVICE = "eth0: 1 "# modify the name BOOTPROTO = noneNM_CONTROLLED =" yes "ONBOOT = yesTYPE =" Ethernet "UUID =" guest "HWADDR = 00: 0C: 29: 7B: 2A: EBIPADDR = 192.168.1.89 # modify IPPREFIX = 24 GATEWAY = 192.168.1.1DNS1 = 192.168.1.1DOMAIN = 192.168.1.1DEFROUTE = yesIPV4_FAILURE_FATAL = yesIPV6INIT = noNAME = eth0: 1 # modify the name ==================================================== ========: wq # save and quit reboot # restart the machine. after testing, the restart command of the service network restart Nic does not take effect for the new virtual network card, so restart the computer
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