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:
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:eth0,set:VLAN_137,10.11.137.90,10.11.137.98,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.137.1 # gateway
dhcp-range=interface:eth0,set:VLAN_237,10.11.237.50,10.11.237.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.237.1 # gateway
Know we are migratting to a dnsmasq solution with one nic a tagged
vlans: But the result is not that we want:
We configure this:
dhcp-range=tag:vlan37,set:VLAN_37,10.11.37.50,10.11.37.200,6h
dhcp-range=tag:vlan137,set:VLAN_137,10.11.137.50,10.11.137.200,6h
dhcp-range=tag:vlan237,set:VLAN_237,10.11.237.50,10.11.237.200,6h
dhcp-option=tag:vlan37,option:dns-server,10.11.37.15
dhcp-option=tag:vlan137,option:dns-server,10.11.37.15
dhcp-option=tag:vlan237,option:dns-server,10.11.37.15
dhcp-option=tag:vlan137,option:router,10.11.137.1
dhcp-option=tag:vlan37,option:router,10.11.37.1
dhcp-option=tag:vlan237,option:router,10.11.237.1
But all clients recive allways the same gateway, 10.11.237.1
regards.
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss