Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #165710 > unrolled thread
| Started by | Mimiko <vbvbrj@gmail.com> |
|---|---|
| First post | 2016-03-20 19:20 +0100 |
| Last post | 2016-03-21 11:50 +0100 |
| Articles | 10 — 2 participants |
Back to article view | Back to linux.debian.user
Bond and Bridge problem Mimiko <vbvbrj@gmail.com> - 2016-03-20 19:20 +0100
Re: Bond and Bridge problem Igor Cicimov <icicimov@gmail.com> - 2016-03-20 23:00 +0100
Re: Bond and Bridge problem Mimiko <vbvbrj@gmail.com> - 2016-03-21 07:40 +0100
Re: Bond and Bridge problem Igor Cicimov <icicimov@gmail.com> - 2016-03-21 08:10 +0100
Re: Bond and Bridge problem Mimiko <vbvbrj@gmail.com> - 2016-03-21 08:20 +0100
Re: Bond and Bridge problem Mimiko <vbvbrj@gmail.com> - 2016-03-21 08:40 +0100
Re: Bond and Bridge problem Igor Cicimov <icicimov@gmail.com> - 2016-03-21 08:50 +0100
Re: Bond and Bridge problem Igor Cicimov <icicimov@gmail.com> - 2016-03-21 08:40 +0100
Re: Bond and Bridge problem Mimiko <vbvbrj@gmail.com> - 2016-03-21 11:40 +0100
Re: Bond and Bridge problem Mimiko <vbvbrj@gmail.com> - 2016-03-21 11:50 +0100
| From | Mimiko <vbvbrj@gmail.com> |
|---|---|
| Date | 2016-03-20 19:20 +0100 |
| Subject | Bond and Bridge problem |
| Message-ID | <reQ7g-26U-9@gated-at.bofh.it> |
Hello. Recently I want to extend my existing bond to be also a bridge to use qemu-kvm. As seen in examples on net this is my `interfaces` file content: auto lo iface lo inet loopback auto eth0 iface eth0 inet manual # bond-master bond0 auto eth1 iface eth1 inet manual # bond-master bond0 auto bond0 iface bond0 inet manual # load balancing and fault tolerance bond-slaves eth0 eth1 # slaves none bond-mode 802.3ad bond-miimon 100 bond-downdelay 200 bond-updelay 200 bond-lacp-rate 4 auto br0 iface br0 inet static address 10.10.0.159 netmask 255.255.0.0 network 10.10.0.0 broadcast 10.10.255.255 gateway 10.10.0.254 # jumbo frame support mtu 9000 vlan-raw-device bond0 bridge_ports bond0 bridge_stp off bridge_fd 0 bridge_maxage 0 bridge_ageing 0 bridge_maxwait 0 Last 5 options are there to try to eliminate: br0: received packet on bond0 with own address as source address message. The problem is when I do `service networking restart` I get this message: RTNETLINK answers: invalid argument Failed to bring up br0 Also in route table dissapears default route to the gateway. Another error is about bridge_maxage: set max age failed: Numerical result out of range To bring up br0 interface I run this commands: service networking stop ifconfig br0 down ifconfig bond0 down brctl delbr br0 service networking start route add default gateway 10.10.0.254 There is a problem with bridging up br0 and I can't dig where is it. I think it breaks at: RTNETLINK answers: invalid argument which is shown after Waiting for br0 to get ready (MAXWAIT is 2 seconds). What means that error and why I get it? Thank you.
[toc] | [next] | [standalone]
| From | Igor Cicimov <icicimov@gmail.com> |
|---|---|
| Date | 2016-03-20 23:00 +0100 |
| Message-ID | <reTyb-4kQ-11@gated-at.bofh.it> |
| In reply to | #165710 |
[Multipart message — attachments visible in raw view] — view raw
On 21 Mar 2016 5:13 am, "Mimiko" <vbvbrj@gmail.com> wrote: > > Hello. > > Recently I want to extend my existing bond to be also a bridge to use qemu-kvm. As seen in examples on net this is my `interfaces` file content: > auto lo > iface lo inet loopback > > auto eth0 > iface eth0 inet manual > # bond-master bond0 > > auto eth1 > iface eth1 inet manual > # bond-master bond0 > > auto bond0 > iface bond0 inet manual > # load balancing and fault tolerance > bond-slaves eth0 eth1 > # slaves none > bond-mode 802.3ad > bond-miimon 100 > bond-downdelay 200 > bond-updelay 200 > bond-lacp-rate 4 > > auto br0 > iface br0 inet static > address 10.10.0.159 > netmask 255.255.0.0 > network 10.10.0.0 > broadcast 10.10.255.255 > gateway 10.10.0.254 > # jumbo frame support > mtu 9000 > vlan-raw-device bond0 > bridge_ports bond0 > bridge_stp off > bridge_fd 0 > bridge_maxage 0 > bridge_ageing 0 > bridge_maxwait 0 > > Last 5 options are there to try to eliminate: > br0: received packet on bond0 with own address as source address > message. > The problem is when I do `service networking restart` I get this message: > RTNETLINK answers: invalid argument > Failed to bring up br0 > > Also in route table dissapears default route to the gateway. Another error is about bridge_maxage: > set max age failed: Numerical result out of range > > To bring up br0 interface I run this commands: > > service networking stop > ifconfig br0 down > ifconfig bond0 down > brctl delbr br0 > service networking start > route add default gateway 10.10.0.254 > > There is a problem with bridging up br0 and I can't dig where is it. I think it breaks at: > RTNETLINK answers: invalid argument > which is shown after > Waiting for br0 to get ready (MAXWAIT is 2 seconds). > > What means that error and why I get it? > > Thank you. > Did you bring eth0 and eth1 up?
[toc] | [prev] | [next] | [standalone]
| From | Mimiko <vbvbrj@gmail.com> |
|---|---|
| Date | 2016-03-21 07:40 +0100 |
| Message-ID | <rf1Fo-1LR-17@gated-at.bofh.it> |
| In reply to | #165730 |
On 20.03.2016 23:57, Igor Cicimov wrote: > Did you bring eth0 and eth1 up? Why should I do it when script must do this all?
[toc] | [prev] | [next] | [standalone]
| From | Igor Cicimov <icicimov@gmail.com> |
|---|---|
| Date | 2016-03-21 08:10 +0100 |
| Message-ID | <rf28p-2bv-5@gated-at.bofh.it> |
| In reply to | #165750 |
[Multipart message — attachments visible in raw view] — view raw
On 21 Mar 2016 5:38 pm, "Mimiko" <vbvbrj@gmail.com> wrote: > > On 20.03.2016 23:57, Igor Cicimov wrote: >> >> Did you bring eth0 and eth1 up? > > > > Why should I do it when script must do this all? > What script are you talking about? The interfaces are set to manual in the config thus need to be manually started.
[toc] | [prev] | [next] | [standalone]
| From | Mimiko <vbvbrj@gmail.com> |
|---|---|
| Date | 2016-03-21 08:20 +0100 |
| Message-ID | <rf2i5-2fe-7@gated-at.bofh.it> |
| In reply to | #165751 |
On 21.03.2016 09:05, Igor Cicimov wrote: > What script are you talking about? The interfaces are set to manual in > the config thus need to be manually started. /etc/init.d/networking This script does all the bring-up's of manual interfaces. The bridge config is an extension from bond configuration, ie, eth0 and eth1 was not changed. It were working and both interfaces a bring-up by this script. You can see this in logs.
[toc] | [prev] | [next] | [standalone]
| From | Mimiko <vbvbrj@gmail.com> |
|---|---|
| Date | 2016-03-21 08:40 +0100 |
| Message-ID | <rf2Br-2nn-1@gated-at.bofh.it> |
| In reply to | #165710 |
On 21.03.2016 09:31, Igor Cicimov wrote: > Hold on what is vlan doing here? Remove the vlan line and try again. Igor, I tried lot of options to change and comment out, including this one, before posting here. So this option does not create a problem. It is here for future vlan tagging enabling in production. It must have to do with the /etc/network/if-preup.d/bridge script I think. But why is the: RTNETLINK answers: invalid argument Which argument? To which command? This I can't dig out by myself.
[toc] | [prev] | [next] | [standalone]
| From | Igor Cicimov <icicimov@gmail.com> |
|---|---|
| Date | 2016-03-21 08:50 +0100 |
| Message-ID | <rf2L7-2qX-3@gated-at.bofh.it> |
| In reply to | #165753 |
[Multipart message — attachments visible in raw view] — view raw
On 21 Mar 2016 6:37 pm, "Mimiko" <vbvbrj@gmail.com> wrote: > > On 21.03.2016 09:31, Igor Cicimov wrote: >> >> Hold on what is vlan doing here? Remove the vlan line and try again. > > > Igor, I tried lot of options to change and comment out, including this one, before posting here. So this option does not create a problem. It is here for future vlan tagging enabling in production. > > It must have to do with the /etc/network/if-preup.d/bridge script I think. But why is the: > RTNETLINK answers: invalid argument > > Which argument? To which command? This I can't dig out by myself. > Well then i would say you start from scratch and do all manually using ifenslave brctl first and confirm all is working before putting it in the config. Monitor syslog in the same time for errors, confirm bonding is fine in /proc/net/bonding/bond0 etc.
[toc] | [prev] | [next] | [standalone]
| From | Igor Cicimov <icicimov@gmail.com> |
|---|---|
| Date | 2016-03-21 08:40 +0100 |
| Message-ID | <rf2Br-2nn-3@gated-at.bofh.it> |
| In reply to | #165710 |
[Multipart message — attachments visible in raw view] — view raw
On 21 Mar 2016 5:13 am, "Mimiko" <vbvbrj@gmail.com> wrote: > > Hello. > > Recently I want to extend my existing bond to be also a bridge to use qemu-kvm. As seen in examples on net this is my `interfaces` file content: > auto lo > iface lo inet loopback > > auto eth0 > iface eth0 inet manual > # bond-master bond0 > > auto eth1 > iface eth1 inet manual > # bond-master bond0 > > auto bond0 > iface bond0 inet manual > # load balancing and fault tolerance > bond-slaves eth0 eth1 > # slaves none > bond-mode 802.3ad > bond-miimon 100 > bond-downdelay 200 > bond-updelay 200 > bond-lacp-rate 4 > > auto br0 > iface br0 inet static > address 10.10.0.159 > netmask 255.255.0.0 > network 10.10.0.0 > broadcast 10.10.255.255 > gateway 10.10.0.254 > # jumbo frame support > mtu 9000 > vlan-raw-device bond0 Hold on what is vlan doing here? Remove the vlan line and try again. > bridge_ports bond0 > bridge_stp off > bridge_fd 0 > bridge_maxage 0 > bridge_ageing 0 > bridge_maxwait 0 > > Last 5 options are there to try to eliminate: > br0: received packet on bond0 with own address as source address > message. > The problem is when I do `service networking restart` I get this message: > RTNETLINK answers: invalid argument > Failed to bring up br0 > > Also in route table dissapears default route to the gateway. Another error is about bridge_maxage: > set max age failed: Numerical result out of range > > To bring up br0 interface I run this commands: > > service networking stop > ifconfig br0 down > ifconfig bond0 down > brctl delbr br0 > service networking start > route add default gateway 10.10.0.254 > > There is a problem with bridging up br0 and I can't dig where is it. I think it breaks at: > RTNETLINK answers: invalid argument > which is shown after > Waiting for br0 to get ready (MAXWAIT is 2 seconds). > > What means that error and why I get it? > > Thank you. >
[toc] | [prev] | [next] | [standalone]
| From | Mimiko <vbvbrj@gmail.com> |
|---|---|
| Date | 2016-03-21 11:40 +0100 |
| Message-ID | <rf5pE-4hd-27@gated-at.bofh.it> |
| In reply to | #165754 |
On 21.03.2016 09:31, Igor Cicimov wrote: > > The problem is when I do `service networking restart` I get this message: > > RTNETLINK answers: invalid argument > > Failed to bring up br0 I found the rout cause of this error: ip link set dev br0 mtu 9000 up RTNETLINK answers: Invalid argument Failed to bring up br0. And the rest options (like adding default gateway) stops processing. Isn't incorrect to specify mtu 9000 to bridges? How about bonds? Or, to which interfaces mtu is valable?
[toc] | [prev] | [next] | [standalone]
| From | Mimiko <vbvbrj@gmail.com> |
|---|---|
| Date | 2016-03-21 11:50 +0100 |
| Message-ID | <rf5zk-4lU-11@gated-at.bofh.it> |
| In reply to | #165754 |
On 21.03.2016 09:31, Igor Cicimov wrote: > > The problem is when I do `service networking restart` I get this message: > > RTNETLINK answers: invalid argument > > Failed to bring up br0 So, to overcome MTU problem, this is my interfaces: auto eth0 iface eth0 inet manual bond-master bond0 up ip link set eth0 mtu 9000 auto eth1 iface eth1 inet manual bond-master bond0 up ip link set eth1 mtu 9000 auto bond0 iface bond0 inet manual # load balancing and fault tolerance bond-mode 802.3ad bond-miimon 100 bond-downdelay 200 bond-updelay 200 bond-lacp-rate 4 up ip link set bond0 mtu 9000 auto br0 iface br0 inet static address 10.10.0.159 netmask 255.255.0.0 gateway 10.10.0.254 # vlan-raw-device bond0 bridge_ports bond0 bridge_stp off # bridge_fd 0 # bridge_maxage 0 bridge_ageing 0 bridge_maxwait 0 up ip link set br0 mtu 9000
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web