The following settings i have tried:
Case 1 listen-address=192.168.120.2 listen-address=192.168.140.2 listen-address=192.168.141.2 dhcp-range=set:4tp,192.168.120.30,192.168.120.250,24h dhcp-range=set:p4r,192.168.140.30,192.168.140.250,24h dhcp-range=set:demo,192.168.141.30,192.168.141.250,24h dhcp-option=tag:4tp,3,192.168.120.1 dhcp-option=tag:p4r,3,192.168.140.1 dhcp-option=tag:demo,3,192.168.141.1 Case 2 #listen-address=192.168.120.2 #listen-address=192.168.140.2 #listen-address=192.168.141.2 dhcp-range=set:4tp,192.168.120.30,192.168.120.250,24h dhcp-range=set:p4r,192.168.140.30,192.168.140.250,24h dhcp-range=set:demo,192.168.141.30,192.168.141.250,24h dhcp-option=tag:4tp,3,192.168.120.1 dhcp-option=tag:p4r,3,192.168.140.1 dhcp-option=tag:demo,3,192.168.141.1 Case 3 interface=net0 interface=net1 interface=net2 dhcp-range=interface:net0,192.168.120.30,192.168.120.250,24h dhcp-range= interface:net1,192.168.140.30,192.168.140.250,24h dhcp-range= interface:net2,192.168.141.30,192.168.141.250,24h dhcp-option= interface:net0,3,192.168.120.1 dhcp-option= interface:net1,3,192.168.140.1 dhcp-option= interface:net2,3,192.168.141.1 and many, many more…. But it looks like the server just uses FiFo, the first scope that gets a request is winner and is served decently but the other nics have assigned only addresses when the wind blows from West to South.. I think there is a problem with the zone config, or the virtual nics in the first place. This I my /usbkey/config from the SmartOS host: # # This file was auto-generated and must be source-able by bash. # admin_nic=fc:15:b4:0f:2f:58 admin_ip=192.168.120.4 admin_netmask=255.255.255.0 admin_network= admin_gateway=192.168.120.4 test_nic=fc:15:b4:0f:2f:59 test0_ip=dhcp test0_netmask=... nicp4r_nic=fc:15:b4:f:2f:5a nicp4r0_ip=dhcp nicp4r0_netmask=... demo_nic=fc:15:b4:f:2f:5b demo0_ip=dhcp headnode_default_gateway=192.168.120.1 dns_resolvers=8.8.8.8,8.8.4.4 dns_domain=poor.local ntp_hosts=0.smartos.pool.ntp.org compute_node_ntp_hosts=192.168.120.4 hostname=PR-ZWS01 Van: Jorge Schrauwen [mailto:[email protected]] Verzonden: dinsdag 30 mei 2017 16:33 Aan: [email protected] CC: 'the outsider' <[email protected]> Onderwerp: Re: [smartos-discuss] DNS server in zone For every IP you want to listen on add a --listen-address flag to the command line or if you have a config, add it there. You can have multiple of those. Regards Jorge On 2017-05-30 16:00, the outsider wrote: And how do i do that ? Problem is that helpfiles and most forums show different ways to “bind” and I am lost Van: Jorge Schrauwen [mailto:[email protected]] Verzonden: dinsdag 30 mei 2017 15:37 Aan: [email protected] <mailto:[email protected]> CC: the outsider <[email protected] <mailto:[email protected]> > Onderwerp: Re: [smartos-discuss] DNS server in zone Have you tried listening on the IP instead of using the default bind-interface thing? I had issues with dnsmasq that. Regards Jorge On 2017-05-30 14:31, the outsider wrote: I try to get DNSMASQ running inside a plain SmartOS zone with 3 nics. Each nic is connected to a switchport and each switchport has its own VLAN defined. There is no VLAN config on SmartOS , nor on the zone itself. These nics are defined as follows: [ { "interface": "net0", "mac": "92:dd:b6:c5:20:60", "nic_tag": "admin", "gateway": "192.168.120.1", "gateways": [ "192.168.120.1" ], "netmask": "255.255.255.0", "ip": "192.168.120.2", "ips": [ "192.168.120.2/24" ], "dhcp_server": "1", "allow_dhcp_spoofing": true, "allow_ip_spoofing": true, "primary": true }, { "interface": "net1", "mac": "92:dd:b6:c5:20:61", "nic_tag": "nicp4r", "netmask": "255.255.255.0", "ip": "192.168.140.2", "ips": [ "192.168.140.2/24" ], "dhcp_server": "1", "allow_dhcp_spoofing": true, "allow_ip_spoofing": true }, { "interface": "net2", "mac": "92:dd:b6:c5:20:62", "nic_tag": "demo", "netmask": "255.255.255.0", "ip": "192.168.141.2", "ips": [ "192.168.141.2/24" ], "dhcp_server": "1", "allow_dhcp_spoofing": true, "allow_ip_spoofing": true } ] It all works from time to time, but it lags and stalls a lot. So I have 3 subnets: Net0 -> 192.168.120.x Net1 -> 192.168.140.x Net2 -> 192.168.141.x Sometimes it all works great but after a few hours people start complaining about not getting an IP-address. Has anyone experience with this setup ? smartos-discuss | <https://www.listbox.com/member/archive/184463/=now> Archives <https://www.listbox.com/member/archive/rss/184463/26452851-88b650c7> | <https://www.listbox.com/member/?&> Modify Your Subscription <http://www.listbox.com> ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
