[ovs-discuss] How to apply VLAN tag in different hosts?

Sanjay Sane ssane at nicira.com
Thu Sep 8 05:35:18 UTC 2011


Having the "switchport mode trunk" does not automatically mean that
the switch will carry traffic for that vlan. The vlan needs to be
created in the vlan database of the switch. Only then that vlan will
be "operational" on the trunk ports.

https://learningnetwork.cisco.com/thread/29967
show vlan can be used to find if vlan exists and is created on the switch
config## vlan X -- can be used to create the vlan

by default, a trunk port will have all the "created" vlans as
operational, but you can restrict it by using the cli "switchport
trunk allowed vlan <>".

-Sanjay


On Wed, Sep 7, 2011 at 8:47 PM, Jen-Wei Hu <jenweihu at gmail.com> wrote:
> Hi,
> It works well if the cisco switch contains the Vlan IDs which used in VMs.
> So, we have to manually add all Vlan IDs (which will be used in VMs) in
> advance?
>
> Thanks,
> Jen-Wei
> On Thu, Sep 8, 2011 at 11:30 AM, Aaron Rosen <arosen at clemson.edu> wrote:
>>
>> Is the trunk port on the cisco switch set to be the same vlan id that
>> is coming out of the VMs?
>>
>> Aaron
>>
>> On Wed, Sep 7, 2011 at 10:34 PM, Ben Pfaff <blp at nicira.com> wrote:
>> > I only know how to configure OVS.
>> >
>> > On Thu, Sep 08, 2011 at 10:31:38AM +0800, Jen-Wei Hu wrote:
>> >> Thanks for your quick reply. Could you kindly share and describe how
>> >> other
>> >> brands switch must configure when creating new VLAN ID on OVS?
>> >>
>> >> On Thu, Sep 8, 2011 at 10:01 AM, Ben Pfaff <blp at nicira.com> wrote:
>> >>
>> >> > No, I don't know how to configure a Cisco switch.  I hope that
>> >> > someone
>> >> > else can suggest how to do this.
>> >> >
>> >> > On Thu, Sep 08, 2011 at 09:39:44AM +0800, Jen-Wei Hu wrote:
>> >> > > Sorry for the poor English. I try to describe my problem clearly.
>> >> > Currently,
>> >> > > we could configure the VLAN function of OVS successfully and work
>> >> > > well
>> >> > when
>> >> > > our two servers (installed OVS) directly connected via a network
>> >> > > cable.
>> >> > But
>> >> > > when we deploy these two servers to our physical switch, we meet a
>> >> > problem
>> >> > > that the VMs on these servers (have the same VLAN ID) could not
>> >> > > ping
>> >> > > successfully. Our physical switch is Cisco 3750 and we have set the
>> >> > ports,
>> >> > > connected two servers, to be trunking ports. Would you have any
>> >> > experiences
>> >> > > for this situation?
>> >> > >
>> >> > > Thanks again
>> >> > > Jen-Wei
>> >> > > On Wed, Sep 7, 2011 at 11:16 PM, Ben Pfaff <blp at nicira.com> wrote:
>> >> > >
>> >> > > >  On Wed, Sep 07, 2011 at 05:11:58PM +0800, Jen-Wei Hu wrote:
>> >> > > > > Recently, we would like to let our deployed VMs that could be
>> >> > separated
>> >> > > > by
>> >> > > > > VLAN. In this link (
>> >> > > > >
>> >> > > >
>> >> >
>> >> > http://openvswitch.org/support/config-cookbooks/vlan-configuration-cookbook/
>> >> > > > ),
>> >> > > > > it mentions that we should set up trunking ports on physical
>> >> > switches.
>> >> > > > Our
>> >> > > > > switch is a port-based to set VLAN ID, so we need to manually
>> >> > > > > add all
>> >> > > > > created VLAN IDs in OVS? That is the only way to do? We
>> >> > > > > appreciate
>> >> > > > someone
>> >> > > > > could share nice experience or advice for this problem. Thanks!
>> >> > > >
>> >> > > > I don't understand the question.  Are you asking how to configure
>> >> > > > OVS
>> >> > or
>> >> > > > how to configure your physical switch?
>> >> > > >
>> >> >
>> > _______________________________________________
>> > discuss mailing list
>> > discuss at openvswitch.org
>> > http://openvswitch.org/mailman/listinfo/discuss
>> >
>>
>>
>>
>> --
>> Aaron O. Rosen
>> Masters Student - Network Communication
>> 306B Fluor Daniel
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
>



More information about the discuss mailing list