TechHui

Hawaiʻi's Technology Community

I've got a server with three gigabit NICs. Two of them are bonded for use on the back net, for MySQL and NFS access for the other servers. Since this machine has the resources to run some VMs, I want to bridge the bonded interface so the VMs also have access to the back net.

In Hardy, the bonding is done like this:

iface bond0 inet manual
address 0.0.0.0
netmask 0.0.0.0
pre-up modprobe bonding
up ifenslave bond0 eth0 eth1
post-up ifconfig bond0 hw ether FE:FF:FF:FF:FF:FF
down ifenslave -d bond0 eth0 eth1
post-down rmmod bonding

That works; the interface is UP and includes the listed NICs.

root@stave:~/bin# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.2.3 (December 6, 2007)

Bonding Mode: transmit load balancing
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 200
Down Delay (ms): 200

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1f:c6:43:5c:f1

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:1f:c6:43:5b:a1

But starting the bridge fails. Here's the bridge spec from the interfaces file:

iface br1 inet manual
address 10.9.8.16
netmask 255.255.255.0
bridge_ports bond0
hwaddress ether FE:0F:FF:FF:FF:FF

I don't get any errors bringing it up, but it doesn't really come up.

root@stave:~/bin# ifconfig br1
br1 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:184 (184.0 B) TX bytes:468 (468.0 B)

Where's my IPv4 address? The interface is running and getting a continuous stream of martians...

Aug 15 23:55:25 stave kernel: [1600428.758311] br1: port 1(bond0) entering learning state
Aug 15 23:55:35 stave kernel: [1600439.188493] br1: no IPv6 routers present
Aug 15 23:55:40 stave kernel: [1600443.731350] br1: topology change detected, propagating
Aug 15 23:55:40 stave kernel: [1600443.731355] br1: port 1(bond0) entering forwarding state
Aug 15 23:55:53 stave kernel: [1600457.255198] martian source 10.9.8.14 from 10.9.8.11, on dev br1

Does anyone have any bridging advice for me? Troubleshootiing tips?

Thanks.

Views: 95

Sponsors

web design, web development, localization

© 2024   Created by Daniel Leuck.   Powered by

Badges  |  Report an Issue  |  Terms of Service