Donny Brooks
2010-Aug-31 14:45 UTC
[Xen-users] Xen bonding, vlans, bridging with dom0 included...
Ok, I am finally going to make the jump and try to move my dom0 to the bridged interface and use all 4 of my NIC''s in the server for the bond. I have a working bonding w/ vlan setup, I just need some advise on the moving of the dom0 management IP. So far I have the following set for the bond and vlans with bridge: root@xen ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 # Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet DEVICE=eth1 BOOTPROTO=none ONBOOT=yes USECTL=no MASTER=bond0 SLAVE=yes MTU=1496 eth2 and eth3 are the same with just device being set properly. [root@xen ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 ONBOOT=yes BOOTPROTO=none USERCTL=no MTU=1496 [root@xen ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0.2 DEVICE=bond0.2 VLAN=yes BRIDGE=br2 BOOTPROTO=none ONBOOT=yes TYPE=Ethernet Similar for ifcfg-bond0.3 through ifcfg-bond0.15 [root@xen ~]# cat /etc/sysconfig/network-scripts/ifcfg-br2 DEVICE=br2 TYPE=Bridge BOOTPROTO=static ONBOOT=yes Similar for ifcfg-br3 through ifcfg-br15 [root@xen ~]# cat /etc/modprobe.conf alias eth0 bnx2 alias eth1 bnx2 alias eth2 bnx2 alias eth3 bnx2 alias scsi_hostadapter megaraid_sas alias scsi_hostadapter1 ata_piix alias bond0 bonding options bond0 miimon=100 mode=4 This setup works with xen to allow the vlans to be passed to the domu''s via the "bridge=brX" config. What I cannot get to work is the dom0 "management" ip to be on the bond also unless I put it''s IP address configuration settings in the ifcfg-bond0 file. Is this normal? I thought I read somewhere that the IP settings had to go in the ifcfg-brX or ifcfg-bond0.X file but neither of those work. I am testing this on my xen test box before I go live on the production machine. Should the IP setting in the ifcfg-bond0 file be fine and still allow the vlans to pass properly to the domu''s? Just don''t want to jack anything so I am seeing if anyone has done this before that can give their two cents. Thanks! -- Donny B. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Sep-01 04:34 UTC
Re: [Xen-users] Xen bonding, vlans, bridging with dom0 included...
On Tue, Aug 31, 2010 at 9:45 PM, Donny Brooks <dbrooks@mdah.state.ms.us> wrote:> This setup works with xen to allow the vlans to be passed to the domu''s via the "bridge=brX" config. What I cannot get to work is the dom0 "management" ip to be on the bond also unless I put it''s IP address configuration settings in the ifcfg-bond0 file. Is this normal? I thought I read somewhere that the IP settings had to go in the ifcfg-brX or ifcfg-bond0.X file but neither of those work.It depends on what you need. If you need dom0 IP address on a specific vlan, then it should be on ifcfg-brX (NOT ifcfg-bond0.X). But if you want it to be on the default native vlan, then it can be on ifcfg-bond0. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users