Linux Bridging Virtual network card

Source: Internet
Author: User

# Vim Ifcfg-eth0

Device= "eth0" bootproto= "Static" Hwaddr= "54:04:a6:a7:ff:6c" nm_controlled= "yes" onboot= "yes" type= "Ethernet" uuid= " 9b1c6600-538a-410d-8c93-144598dc5fa4 "ipaddr=" 192.168.0.100 "netmask=" 255.255.255.0 "gateway=" 192.168.0.1 "dns1=" 202.106.46.151 "dns2=" 202.106.195.68 "bridge=" br0 "//Add such a word" br0 "for the name of the virtual network card to be created bridge=" BR1 "


Then create the configuration file

#cp Ifcfg-{eth0,br0}

# Vim Ifcfg-br0 and IVCFG-BR1

Device= "BR0"//device name, must and Bridge= "" in the same, and this network card configuration file name is the same type= "bridge"//Specify the type of bridge noboot= "yes" Bootpro to= "Static" Ipaddr= "192.168.0.101" netmask= "255.255.255.0" gateway= "192.168.0.1" dns1= "202.106.46.151" dns2= " 202.106.195.68 "delay=" 0 "//monitor traffic in the MAC address, a convenient maintenance MAC address table, can not write


Then service network restart


If necessary, you can delete/etc/udev/rule....../70-...... net .... Related lines in

Then modprobe-r the network card model and modprobe NIC model heavy-duty NIC driver to re-identify


Linux Bridging Virtual network card

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.