Configure a bridge in Ubuntu

Source: Internet
Author: User
Install the bridge-utils Editing File: www.2cto. comvim/etc/network/interfaceJava code autoloifaceloinetloopbackifaceeth0inetmanualautobr0ifacebr0...
Before configuring the bridge configuration in Ubuntu, install bridge-utils to edit the file: invalid vim/etc/network/interface Java code auto lo iface lo inet loopback iface eth0 inet manual auto br0 iface br0 inet static address 192.168.1.104 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-internal 192.168.1.1 bridge_ports eth0 bridge_stp off bridge_fd 0 bridge_maxwait 0 note, if dns-nameservers is not configured, no pin is available. G. restart the network through the Internet:/etc/init. d/networking restart: use libvirt to start the VM. the VM uses bridging configuration. when vnc is connected to the VM, if vnc cannot connect to the VM, check/etc/libvirt/qemu. whether to enable the conf file vnc_listen = "0.0.0.0. After it is enabled, the original virtual machine needs to be restarted, and libvirt also needs to be restarted.

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.