auto bond0
iface bond0 inet manual
up ifconfig bond0 0.0.0.0 up
slaves eth4 eth6
bond_mode active-backup
bond_miimon 100
bond_downdelay 200
bond_updelay 200
post-up ifconfig eth4 mtu 9000
post-up ifconfig eth6 mtu 9000
post-up ifconfig bond0 mtu 9000
auto bond0.235
iface bond0.235 inet manual
auto vmbr0
iface vmbr0 inet static
address 1.2.2.69
netmask 255.255.255.0
gateway 1.2.2.1
bridge_ports bond0.235
bridge_stp off
bridge_fd 0
auto bond0
iface bond0 inet manual
up ifconfig bond0 0.0.0.0 up
slaves eth4 eth6
bond_mode active-backup
bond_miimon 100
bond_downdelay 200
bond_updelay 200
post-up ifconfig eth4 mtu 9000
post-up ifconfig eth6 mtu 9000
post-up ifconfig bond0 mtu 9000
auto vlan235
iface vlan235 inet static
address 12.2.2.69
netmask 255.255.255.0
gateway 1.2.2.1
vlan-raw-device bond0
post-up ifconfig vlan235 mtu 1500
auto lo
iface lo inet loopback
auto vmbr0
iface vmbr0 inet static
address 1.2.2.69
netmask 255.255.255.0
gateway 1.2.2.1
bridge_ports eth4.235
bridge_stp off
bridge_fd 0
auto lo
iface lo inet loopback
auto eth4.235
iface eth4.235 inet static
address 1.2.2.69
netmask 255.255.255.0
gateway 1.2.2.1
fl-vm01:~# pveversion -v
pve-manager: 1.7-10 (pve-manager/1.7/5323)
running kernel: 2.6.32-4-pve
proxmox-ve-2.6.32: 1.7-28
pve-kernel-2.6.32-4-pve: 2.6.32-28
qemu-server: 1.1-25
pve-firmware: 1.0-9
libpve-storage-perl: 1.0-16
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-9
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.13.0-2
ksm-control-daemon: 1.0-4
Thanks mightymouse2045, I really look forward to Monday to test it. Yes the switch does trunking and the module 8021q is loaded.
06:00.0 Ethernet controller: Emulex Corporation OneConnect 10Gb NIC (rev 02)
Subsystem: Emulex Corporation Device e622
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 38
Region 1: Memory at df378000 (32-bit, non-prefetchable) [size=16K]
Region 2: Memory at df380000 (64-bit, non-prefetchable) [size=128K]
Region 4: Memory at df3a0000 (64-bit, non-prefetchable) [size=128K]
Expansion ROM at df200000 [disabled] [size=512K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] MSI-X: Enable+ Mask- TabSize=32
Vector table: BAR=1 offset=00002000
PBA: BAR=1 offset=00003000
Capabilities: [c0] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <1us, L1 <16us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+
DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+ Unsupported+
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- FLReset-
MaxPayload 256 bytes, MaxReadReq 512 bytes
DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Latency L0 <1us, L1 <16us
ClockPM- Suprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 5GT/s, Width x8, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Capabilities: [100] Advanced Error Reporting <?>
Capabilities: [194] Device Serial Number 32-b5-a0-fe-ff-c9-00-00
Kernel driver in use: be2net
Kernel modules: be2net
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet manual
up ifconfig bond0 0.0.0.0 up
slaves eth4 eth6
bond_mode active-backup
bond_miimon 100
bond_downdelay 200
bond_updelay 200
post-up ifconfig bond0 mtu 9000
auto bond0.111
iface bond0.111 inet manual
up ifconfig bond0.111 0.0.0.0 up
vlan-raw-device bond0
post-up ifconfig bond0.111 mtu 1500
auto bond0.222
iface bond0.222 inet manual
up ifconfig bond0.222 0.0.0.0 up
vlan-raw-device bond0
post-up ifconfig bond0.222 mtu 9000
auto vmbr0
iface vmbr0 inet static
address 1.1.111.69
netmask 255.255.255.0
gateway 1.1.111.1
bridge_ports bond0.111
bridge_stp off
bridge_fd 0
auto vmbr1
iface vmbr1 inet static
address 10.10.10.20
netmask 255.255.255.0
bridge_ports bond0.222
bridge_stp off
bridge_fd 0
host:~# route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr1
1.1.111.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0
0.0.0.0 1.1.111.1 0.0.0.0 UG 0 0 0 vmbr0
ubuntu1004-vm01:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
1.1.111.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 1.1.111.1 0.0.0.0 UG 100 0 0 eth0
Hi,Youppi! My bridge works, (almost, see the end of the post)... My problem was an issue with the be2net driver. http://forum.proxmox.com/threads/5275-be2net-driver?p=30345#post30345 With the kernel 2.6.36.2, my system is now stable!
Here is my /etc/network/interfaces:
Teaming two emulex 10Gb with vlan...Code:auto lo iface lo inet loopback auto bond0 iface bond0 inet manual up ifconfig bond0 0.0.0.0 up slaves eth4 eth6 bond_mode active-backup bond_miimon 100 bond_downdelay 200 bond_updelay 200 post-up ifconfig bond0 mtu 9000 auto bond0.111 iface bond0.111 inet manual up ifconfig bond0.111 0.0.0.0 up vlan-raw-device bond0 post-up ifconfig bond0.111 mtu 1500 auto bond0.222 iface bond0.222 inet manual up ifconfig bond0.222 0.0.0.0 up vlan-raw-device bond0 post-up ifconfig bond0.222 mtu 9000 auto vmbr0 iface vmbr0 inet static address 1.1.111.69 netmask 255.255.255.0 gateway 1.1.111.1 bridge_ports bond0.111 bridge_stp off bridge_fd 0 auto vmbr1 iface vmbr1 inet static address 10.10.10.20 netmask 255.255.255.0 bridge_ports bond0.222 bridge_stp off bridge_fd 0
Now a new problem arise: I have created two KVM bridged over vmbr0.
- The VMs cannot ping the gateway 1.1.111.1
- The VMs can ping the host 1.1.111.69
- The host can ping the VMs
- If I create a ssh connection from the host to the VM, after a while, it connects.From then, the VMs can ping the gateway and go on the net. Strange!
Here is the command "route -n" on both host and vm:
Code:host:~# route -n Table de routage IP du noyau Destination Passerelle Genmask Indic Metric Ref Use Iface 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr1 1.1.111.0 0.0.0.0 255.255.255.0 U 0 0 0 vmbr0 0.0.0.0 1.1.111.1 0.0.0.0 UG 0 0 0 vmbr0 ubuntu1004-vm01:~# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 1.1.111.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 1.1.111.1 0.0.0.0 UG 100 0 0 eth0
We use essential cookies to make this site work, and optional cookies to enhance your experience.