On Tue, Dec 04, 2018 at 08:02:48AM -0300, jmperrote wrote:
> El 2018-12-03 13:30, john doe escribió:
> > On 12/3/2018 4:27 PM, jmperrote wrote:
> > > We need help to configure dnsmasq with vlans tagged on router.
> > > 
> > > We actually have a dnsmasq server serving dns and dhcp, and 3 nics,
> > > one for each vlans:
> > > 
> > 
> > I'm not sure to fully understand the issue(s) you are facing.

In my words "VLAN is a new concept"


> > As far as dnsmasq is concerned, there is no differences between 3
> > physical "nicks" and 3 VLAN tagged interfaces  (802.1Q).
> > So for a start you could simply try:
> > 
> > # Specify DHCP range with a tag
> > dhcp-range=set:vlan99,172.23.100.200,172.23.100.230,12h
> > dhcp-range=set:vlan100,172.23.101.200,172.23.101.230,12h
> > dhcp-range=set:vlan100,172.23.102.200,172.23.102.230,12h
> 
> 
>  John Doe, sorry for my mistake, my actual configuration of dnsmasq are:
> 
>       dhcp-range=interface:eth0,set:VLAN_37,10.11.37.50,10.11.37.200,6h
>       dhcp-option=eth0,6,10.11.37.15 #dns primario
>       dhcp-option=eth0,1,255.255.255.0 # mascara de red
>       dhcp-option=eth0,option:router,10.11.37.1 # gateway
> 
>       dhcp-range=interface:eth1,set:VLAN_137,10.11.137.90,10.11.137.98,6h
>       dhcp-option=eth1,6,10.11.37.15 #dns primario
>       dhcp-option=eth1,1,255.255.255.0 # mascara de red
>       dhcp-option=eth1,option:router,10.11.137.1 # gateway
> 
>       dhcp-range=interface:eth2,set:VLAN_237,10.11.237.50,10.11.237.200,6h
>       dhcp-option=eth2,6,10.11.37.15 #dns primario
>       dhcp-option=eth2,1,255.255.255.0 # mascara de red
>       dhcp-option=eth2,option:router,10.11.237.1 # gateway
> 
> We have 3 nics on the system eth0/eth1/eth2, one for each VLAN, and try to
> replace for one nic with VLANs tagged.
> 
> We try the tag option and the dhcp assign ip on correct range for each PC on
> each vlan, but dnsmasq allways assign to the PC the same gateway, that is
> the las vlan configured.
> 
> For example on this configuraton assign the correct range to the PC, but the
> gateway always assign 10.11.237.1 gateway, to all PC
> 
> dhcp-range=interface:eth0.37,set:VLAN_37,10.11.37.90,10.11.37.98,6h
> dhcp-option=eth0.37,6,10.11.37.15 #dns primario
> dhcp-option=eth0.37,1,255.255.255.0 # mascara de red
> dhcp-option=eth0.37,option:router,10.11.37.1 # gateway
> 
> dhcp-range=interface:eth0.137,set:VLAN_137,10.11.137.90,10.11.137.98,6h
> dhcp-option=eth0.137,6,10.11.37.15 #dns primario
> dhcp-option=eth0.137,1,255.255.255.0 # mascara de red
> dhcp-option=eth0.137,option:router,10.11.137.1 # gateway
> 
> dhcp-range=interface:eth0.237,set:VLAN_237,10.11.237.50,10.11.237.200,6h
> dhcp-option=eth0.237,6,10.11.37.15 #dns primario
> dhcp-option=eth0.237,1,255.255.255.0 # mascara de red
> dhcp-option=eth0.237,option:router,10.11.237.1 # gateway
> 
> 
> It is necessary to use "vconfig" to configure virtual vlan interface on the
> operating system, or can use tagged vlans from the router ?

The above question rewritten in my words:

} Who helps me understanding VLANs?
} Where do I need to change what?  At Operating System? Router?  Both??

Seen the question.

On the 'Problem / Subject: Re: [Dnsmasq-discuss] Help with dnsmasq and vlans 
tags'
start with focus on just 'VLAN'. After that, add dnsmasq.
 

Groeten
Geert Stappers
-- 
Leven en laten leven

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to