Difference between revisions of "Special:Badtitle/NS1198:Virtual Ethernet device/76/en"
(Importing a new version from external source) |
(No difference)
|
Latest revision as of 06:49, 24 September 2016
auto vzbr0 iface vzbr0 inet static
bridge_ports eth0 bridge_fd 0 address 192.168.1.100 netmask 255.255.255.0 gateway 192.168.1.254
Follow the steps below for making a veth bridge persistent with the included script. That will automatically add each container to the bridge when it is started. Finally, specify vzbr0 as the bridge when adding the network interface to a container, as describe above. No configuration is needed on CT0 for forwarding packets, proxy arp or additional routes. The interface in each CT can be configured as desired. Everything "just works" according to normal network interface configuration and default routing rules. Note that as discussed in the troubleshooting section below, bridged packets by default pass through the FORWARD iptables chain. Take care when adding rules to that table that bridged packets are not mistakenly blocked. This behavior can be disabled, if desired.