[ovs-discuss] [ovs-dev] Problem with DHCP and TUNNEL [SOLVED]
Daniele Milani
dano1988 at hotmail.it
Thu May 24 05:32:12 PDT 2012
CC: jesse at nicira.com; dev at openvswitch.org; roberto.sassu at polito.it; paolo.smiraglia at polito.it; discuss at openvswitch.org
From: sergius_kvantos at yahoo.co.uk
Subject: Re: [ovs-discuss] [ovs-dev] Problem with DHCP and TUNNEL
Date: Thu, 24 May 2012 15:30:26 +0300
To: dano1988 at hotmail.it
On May 24, 2012, at 15:04, Daniele Milani <dano1988 at hotmail.it> wrote:
> From: jesse at nicira.com
> Date: Wed, 23 May 2012 09:20:21 -0700
> Subject: Re: [ovs-dev] Problem with DHCP and TUNNEL
> To: dano1988 at hotmail.it
> CC: discuss at openvswitch.org; dev at openvswitch.org; roberto.sassu at polito.it; paolo.smiraglia at polito.it
>
> On Wed, May 23, 2012 at 8:59 AM, Daniele Milani <dano1988 at hotmail.it> wrote:
> >
> >
> >> From: jesse at nicira.com
> >> Date: Wed, 23 May 2012 08:27:35 -0700
> >> Subject: Re: [ovs-dev] Problem with DHCP and TUNNEL
> >> To: dano1988 at hotmail.it
> >> CC: discuss at openvswitch.org; dev at openvswitch.org; roberto.sassu at polito.it;
> >> paolo.smiraglia at polito.it
> >
> >>
> >> On Wed, May 23, 2012 at 7:49 AM, Daniele Milani <dano1988 at hotmail.it>
> >> wrote:
> >> > Hi,
> >> > I have the following situation:
> >> > -two different physical hosts (H1 and H2);
> >> > -in H1 I created a bridge (br1) and I started a dnsmasq daemon listening
> >> > on
> >> > it (DHCPDAEMON1);
> >> > -in H2 I created another bridge (br2) and I started a dnsmasq daemon
> >> > listening on it (DHCPDAEMON2);
> >> > -I created a gre tunnel between H1 and H2.
> >> >
> >> > The problem is that, if I start a Virtual Machine on H1 I receive DHCP
> >> > offer
> >> > both from DHCPDAEMON1 and DHCPDAEMON2, and if I start a VM on H2 I
> >> > obtain
> >> > the same behaviour.
> >> >
> >> > My question is: is it possible to prevent DHCP traffic from passing into
> >> > the
> >> > tunnel?
> >>
> >> You can write a flow using ovs-ofctl to drop DHCP traffic.
> >
> > Where can I find an example of how to write a flow?
>
> The man page.
Does it exist an OvS command that returns the port number from port name?
Yes ovs-vsctl -- get Iterface portname ofport
Ok thanks
P.S. the flow command is ovs-ofctl add-flow bridge_name "in_port=port_number tp_src=67 tp_dst=68 actions=drop"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20120524/a662a708/attachment.htm>
More information about the discuss
mailing list