You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by motty cruz <mo...@gmail.com> on 2013/10/09 02:58:34 UTC

CS 4.2 KVM cluster vlan configuration

Hello,
I'm having issues configuring VLAN and network Bridge for CS 4.2. I'm using
CentOS

am I missing something?

[root@kvm4 network-scripts]# less ifcfg-eth0
DEVICE=eth0
HWADDR=00:1A:64:20:0D:20
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
TYPE=Ethernet
BRIDGE=cloudbr0


[root@kvm4 network-scripts]# less ifcfg-cloudbr0
DEVICE=cloudbr0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
DNS1=8.8.8.8
GATEWAY=192.168.0.1
IPADDR=192.168.0.10
NETMASK=255.255.255.0
IPV6INIT=no
IPV6_AUTOCONF=no
DELAY=5
STP=yes

[root@kvm4 network-scripts]# less ifcfg-eth1
DEVICE=eth1
HWADDR=00:1A:64:20:00:D2
ONBOOT=yes
HOTPLUG=no
BOOTPROTO=none
TYPE=Ethernet
Bridge=Cloudbr1

[root@kvm4 network-scripts]# less ifcfg-eth1.1
DEVICE=eth0.1
HWADDR=00:1A:64:20:D0:02
ONBOOT=yes
HOTPLUG=no
BOOTPROTO=none
TYPE=Ethernet
VLAN=yes

[root@kvm4 network-scripts]# less ifcfg-eth1.99
DEVICE=eth0.1
HWADDR=00:1A:64:20:DD:2D
ONBOOT=yes
HOTPLUG=no
BOOTPROTO=none
TYPE=Ethernet
VLAN=yes


[root@kvm4 network-scripts]# less ifcfg-cloudbr1
DEVICE=cloudbr1
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=static
IPV6INIT=no
IPV6_AUTOCONF=no
DELAY=5
STP=yes

Thanks in advance,

Re: CS 4.2 KVM cluster vlan configuration

Posted by motty cruz <mo...@gmail.com>.
I'm using interface eth1 for public/guest traffic; I have two VLANs

eth1.1(public traffic) and eth1.99(guest traffic) do I need to create two
bridges? one for each VLAN?



[root@kvm1 network-scripts]# brctl show

bridge name     bridge id               STP enabled     interfaces
cloudbr0                8000.00259088515c       no              eth0
cloudbr1                8000.00259088515d       yes             eth1.1
cloudbr2                8000.00259088515d       yes             eth1.99
virbr0          8000.5254000c79e1       yes             virbr0-nic

Also, is there a way to test my network before configuring Advance Zone?



Thanks,


On Tue, Oct 8, 2013 at 8:53 PM, motty cruz <mo...@gmail.com> wrote:

> Thank you very much Travis,
> I completely missed capitalized BRIDGE, now I recall seem same error
> before.
>
> Also, I found this link is useful, but continue to get errors
>
> http://www.cyberciti.biz/faq/rhel-linux-kvm-virtualization-bridged-networking-with-libvirt/
>
> I now my vlan are not configure right, has anybody successfully configure
> advance networking in CS 4.2 with two interfaces on KVM hypervisors?  if
> someone can provide VLAN configuration examples,
>
> Thanks in advance!
>
>
> On Tue, Oct 8, 2013 at 6:10 PM, Travis Graham <tg...@tgraham.us> wrote:
>
>> A quick glance and I'm seeing your ifcfg-eth1 is referencing
>> Bridge=Cloudbr1 and that need to be BRIDGE=cloudbr1.
>>
>> Not sure if that's totally your problem, but it would keep your eth1
>> interface from coming up. As for the rest, I'm not sure.
>>
>> Travis
>>
>>
>> On Oct 8, 2013, at 8:58 PM, motty cruz <mo...@gmail.com> wrote:
>>
>> > Hello,
>> > I'm having issues configuring VLAN and network Bridge for CS 4.2. I'm
>> using
>> > CentOS
>> >
>> > am I missing something?
>> >
>> > [root@kvm4 network-scripts]# less ifcfg-eth0
>> > DEVICE=eth0
>> > HWADDR=00:1A:64:20:0D:20
>> > ONBOOT=yes
>> > NM_CONTROLLED=yes
>> > BOOTPROTO=none
>> > TYPE=Ethernet
>> > BRIDGE=cloudbr0
>> >
>> >
>> > [root@kvm4 network-scripts]# less ifcfg-cloudbr0
>> > DEVICE=cloudbr0
>> > TYPE=Bridge
>> > ONBOOT=yes
>> > BOOTPROTO=static
>> > DNS1=8.8.8.8
>> > GATEWAY=192.168.0.1
>> > IPADDR=192.168.0.10
>> > NETMASK=255.255.255.0
>> > IPV6INIT=no
>> > IPV6_AUTOCONF=no
>> > DELAY=5
>> > STP=yes
>> >
>> > [root@kvm4 network-scripts]# less ifcfg-eth1
>> > DEVICE=eth1
>> > HWADDR=00:1A:64:20:00:D2
>> > ONBOOT=yes
>> > HOTPLUG=no
>> > BOOTPROTO=none
>> > TYPE=Ethernet
>> > Bridge=Cloudbr1
>> >
>> > [root@kvm4 network-scripts]# less ifcfg-eth1.1
>> > DEVICE=eth0.1
>> > HWADDR=00:1A:64:20:D0:02
>> > ONBOOT=yes
>> > HOTPLUG=no
>> > BOOTPROTO=none
>> > TYPE=Ethernet
>> > VLAN=yes
>> >
>> > [root@kvm4 network-scripts]# less ifcfg-eth1.99
>> > DEVICE=eth0.1
>> > HWADDR=00:1A:64:20:DD:2D
>> > ONBOOT=yes
>> > HOTPLUG=no
>> > BOOTPROTO=none
>> > TYPE=Ethernet
>> > VLAN=yes
>> >
>> >
>> > [root@kvm4 network-scripts]# less ifcfg-cloudbr1
>> > DEVICE=cloudbr1
>> > TYPE=Bridge
>> > ONBOOT=yes
>> > BOOTPROTO=static
>> > IPV6INIT=no
>> > IPV6_AUTOCONF=no
>> > DELAY=5
>> > STP=yes
>> >
>> > Thanks in advance,
>>
>>
>

Re: CS 4.2 KVM cluster vlan configuration

Posted by motty cruz <mo...@gmail.com>.
I had two interfaces one going for public eth0, management is eth1

here are my actual configuration file
[root@kvm1 network-scripts]# less ifcfg-eth0
DEVICE=eth0
HWADDR=00:25:90:88:51:5C
TYPE=Ethernet
ONBOOT=yes
BRIDGE=cloudbr0

############
[root@kvm1 network-scripts]# less ifcfg-cloudbr0
DEVICE=cloudbr0
ONBOOT=yes
TYPE=Bridge
[root@kvm1 network-scripts]#


####### for management ##############
[root@kvm1 network-scripts]# less ifcfg-eth1
DEVICE=eth1
HWADDR=00:25:90:88:51:5D
TYPE=Ethernet
ONBOOT=yes
BRIDGE=cloudbr1
[root@kvm1 network-scripts]#

[root@kvm1 network-scripts]# less ifcfg-cloudbr1
DEVICE=cloudbr1
ONBOOT=yes
TYPE=Bridge
IPADDR=10.107.0.7
NETMASK=255.255.255.0

you do not have to create vlan interfaces, I was confused too, but by
chance I created bridges just as I mentioned above and install cloudstack
agent, configured zone and cloudstack created vlans

after configuring zones: (in the switch i created VLAN 99, 200 and 500)
[root@kvm1 network-scripts]# brctl show
bridge name     bridge id               STP enabled     interfaces
breth0-199              8000.00259088515c       no              eth0.199
                                                        vnet0
                                                        vnet3
breth0-200              8000.00259088515c       no              eth0.200
                                                        vnet7
breth0-500              8000.00259088515c       no              eth0.500
                                                        vnet6
cloud0          8000.fe00a9fe00a6       no              vnet1
                                                        vnet4
cloudbr0                8000.00259088515c       no              eth0
                                                        vnet2
                                                        vnet5
cloudbr1                8000.00259088515d       no              eth1
virbr0          8000.5254004059c4       yes             virbr0-nic
[root@kvm1 network-scripts]#


if you have further questions please feel free to contact me, good luck!





On Wed, Nov 27, 2013 at 11:49 AM, Thitipong <ja...@gmail.com> wrote:

>
> Can you fix the error? I got the same error, so I'm looking for someone can
> help me please.
>
>
>

Re: CS 4.2 KVM cluster vlan configuration

Posted by Thitipong <ja...@gmail.com>.
Can you fix the error? I got the same error, so I'm looking for someone can
help me please.



Re: CS 4.2 KVM cluster vlan configuration

Posted by motty cruz <mo...@gmail.com>.
Thank you very much Travis,
I completely missed capitalized BRIDGE, now I recall seem same error
before.

Also, I found this link is useful, but continue to get errors
http://www.cyberciti.biz/faq/rhel-linux-kvm-virtualization-bridged-networking-with-libvirt/

I now my vlan are not configure right, has anybody successfully configure
advance networking in CS 4.2 with two interfaces on KVM hypervisors?  if
someone can provide VLAN configuration examples,

Thanks in advance!


On Tue, Oct 8, 2013 at 6:10 PM, Travis Graham <tg...@tgraham.us> wrote:

> A quick glance and I'm seeing your ifcfg-eth1 is referencing
> Bridge=Cloudbr1 and that need to be BRIDGE=cloudbr1.
>
> Not sure if that's totally your problem, but it would keep your eth1
> interface from coming up. As for the rest, I'm not sure.
>
> Travis
>
>
> On Oct 8, 2013, at 8:58 PM, motty cruz <mo...@gmail.com> wrote:
>
> > Hello,
> > I'm having issues configuring VLAN and network Bridge for CS 4.2. I'm
> using
> > CentOS
> >
> > am I missing something?
> >
> > [root@kvm4 network-scripts]# less ifcfg-eth0
> > DEVICE=eth0
> > HWADDR=00:1A:64:20:0D:20
> > ONBOOT=yes
> > NM_CONTROLLED=yes
> > BOOTPROTO=none
> > TYPE=Ethernet
> > BRIDGE=cloudbr0
> >
> >
> > [root@kvm4 network-scripts]# less ifcfg-cloudbr0
> > DEVICE=cloudbr0
> > TYPE=Bridge
> > ONBOOT=yes
> > BOOTPROTO=static
> > DNS1=8.8.8.8
> > GATEWAY=192.168.0.1
> > IPADDR=192.168.0.10
> > NETMASK=255.255.255.0
> > IPV6INIT=no
> > IPV6_AUTOCONF=no
> > DELAY=5
> > STP=yes
> >
> > [root@kvm4 network-scripts]# less ifcfg-eth1
> > DEVICE=eth1
> > HWADDR=00:1A:64:20:00:D2
> > ONBOOT=yes
> > HOTPLUG=no
> > BOOTPROTO=none
> > TYPE=Ethernet
> > Bridge=Cloudbr1
> >
> > [root@kvm4 network-scripts]# less ifcfg-eth1.1
> > DEVICE=eth0.1
> > HWADDR=00:1A:64:20:D0:02
> > ONBOOT=yes
> > HOTPLUG=no
> > BOOTPROTO=none
> > TYPE=Ethernet
> > VLAN=yes
> >
> > [root@kvm4 network-scripts]# less ifcfg-eth1.99
> > DEVICE=eth0.1
> > HWADDR=00:1A:64:20:DD:2D
> > ONBOOT=yes
> > HOTPLUG=no
> > BOOTPROTO=none
> > TYPE=Ethernet
> > VLAN=yes
> >
> >
> > [root@kvm4 network-scripts]# less ifcfg-cloudbr1
> > DEVICE=cloudbr1
> > TYPE=Bridge
> > ONBOOT=yes
> > BOOTPROTO=static
> > IPV6INIT=no
> > IPV6_AUTOCONF=no
> > DELAY=5
> > STP=yes
> >
> > Thanks in advance,
>
>

Re: CS 4.2 KVM cluster vlan configuration

Posted by Travis Graham <tg...@tgraham.us>.
A quick glance and I'm seeing your ifcfg-eth1 is referencing Bridge=Cloudbr1 and that need to be BRIDGE=cloudbr1.

Not sure if that's totally your problem, but it would keep your eth1 interface from coming up. As for the rest, I'm not sure.

Travis 


On Oct 8, 2013, at 8:58 PM, motty cruz <mo...@gmail.com> wrote:

> Hello,
> I'm having issues configuring VLAN and network Bridge for CS 4.2. I'm using
> CentOS
> 
> am I missing something?
> 
> [root@kvm4 network-scripts]# less ifcfg-eth0
> DEVICE=eth0
> HWADDR=00:1A:64:20:0D:20
> ONBOOT=yes
> NM_CONTROLLED=yes
> BOOTPROTO=none
> TYPE=Ethernet
> BRIDGE=cloudbr0
> 
> 
> [root@kvm4 network-scripts]# less ifcfg-cloudbr0
> DEVICE=cloudbr0
> TYPE=Bridge
> ONBOOT=yes
> BOOTPROTO=static
> DNS1=8.8.8.8
> GATEWAY=192.168.0.1
> IPADDR=192.168.0.10
> NETMASK=255.255.255.0
> IPV6INIT=no
> IPV6_AUTOCONF=no
> DELAY=5
> STP=yes
> 
> [root@kvm4 network-scripts]# less ifcfg-eth1
> DEVICE=eth1
> HWADDR=00:1A:64:20:00:D2
> ONBOOT=yes
> HOTPLUG=no
> BOOTPROTO=none
> TYPE=Ethernet
> Bridge=Cloudbr1
> 
> [root@kvm4 network-scripts]# less ifcfg-eth1.1
> DEVICE=eth0.1
> HWADDR=00:1A:64:20:D0:02
> ONBOOT=yes
> HOTPLUG=no
> BOOTPROTO=none
> TYPE=Ethernet
> VLAN=yes
> 
> [root@kvm4 network-scripts]# less ifcfg-eth1.99
> DEVICE=eth0.1
> HWADDR=00:1A:64:20:DD:2D
> ONBOOT=yes
> HOTPLUG=no
> BOOTPROTO=none
> TYPE=Ethernet
> VLAN=yes
> 
> 
> [root@kvm4 network-scripts]# less ifcfg-cloudbr1
> DEVICE=cloudbr1
> TYPE=Bridge
> ONBOOT=yes
> BOOTPROTO=static
> IPV6INIT=no
> IPV6_AUTOCONF=no
> DELAY=5
> STP=yes
> 
> Thanks in advance,