Bug#612357: Hint
On Fri, Jul 26, 2013 at 04:13:47AM +0200, Gianluigi Tiesi wrote: try using a non existent interface as bridge_port something like bridge_ports none It does not work. Here is an example: iface lxc0 inet manual address 10.42.42.1 netmask 255.255.255.0 bridge_ports none bridge_stp off bridge_fd 0 bridge_maxwait 0 root@hal:~# ifup lxc0 root@hal:~# ifconfig lxc0 lxc0 Link encap:Ethernet HWaddr f6:97:98:0f:58:fe adr inet6: fe80::f497:98ff:fe0f:58fe/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:0 (0.0 B) TX bytes:508 (508.0 B) The only way to get an IP assigned to the bridge is to add the following directive in the iface declaration: post-up /sbin/ip addr add 10.42.42.1/24 dev lxc0 This is a really annoying bug I come across very often. Antoine -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#612357: Hint
On 11/17/13 21:52, Antoine Sirinelli wrote: root@hal:~# ifup lxc0 root@hal:~# ifconfig lxc0 lxc0 Link encap:Ethernet HWaddr f6:97:98:0f:58:fe adr inet6: fe80::f497:98ff:fe0f:58fe/64 Scope:Lien UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:0 RX bytes:0 (0.0 B) TX bytes:508 (508.0 B) The only way to get an IP assigned to the bridge is to add the following directive in the iface declaration: post-up /sbin/ip addr add 10.42.42.1/24 dev lxc0 This is a really annoying bug I come across very often. man bridge-utils-interfaces bridge_ports interface specification this option must exist for the scripts to setup the bridge, with it you specify the ports you want to add to your bridge, either using none if you want a bridge without any interfaces or you want to add them later using brctl, or a list of the interfaces you want to add separated by spaces, for example: bridge_ports eth0 eth4 I'm using bridge utils from wheezy, version 1.5-6 You may using another version Regards -- Gianluigi Tiesi sher...@netfarm.it EDP Project Leader Netfarm S.r.l. - http://www.netfarm.it/ Free Software: http://oss.netfarm.it/ Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#612357: Hint
On 11/17/13 21:52, Antoine Sirinelli wrote: On Fri, Jul 26, 2013 at 04:13:47AM +0200, Gianluigi Tiesi wrote: try using a non existent interface as bridge_port something like bridge_ports none It does not work. Here is an example: iface lxc0 inet manual - inet static (you may also want to add auto lxc0) Regards -- Gianluigi Tiesi sher...@netfarm.it EDP Project Leader Netfarm S.r.l. - http://www.netfarm.it/ Free Software: http://oss.netfarm.it/ Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#612357: Hint
try using a non existent interface as bridge_port something like bridge_ports none ifup will add nothing if the iface is not in /sys/class/net/ -- Gianluigi Tiesi sher...@netfarm.it EDP Project Leader Netfarm S.r.l. - http://www.netfarm.it/ Free Software: http://oss.netfarm.it/ Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org