matching performance
Adam Moffett
adamlists at plexicomm.net
Thu Sep 23 20:02:13 UTC 2010
I want to match several clients and give them a different option.
Is it better to do it this way:
if option agent.remote-id=0A:00:3E:F0:5C:84 {
option domain-name-servers 127.0.0.1;
}
if option agent.remote-id=0A:00:3E:F0:7C:7C {
option domain-name-servers 127.0.0.1;
}
if option agent.remote-id=0A:00:3E:F0:6D:3E {
option domain-name-servers 127.0.0.1;
}
Or this way:
if (option agent.remote-id = 0A:00:3E:F0:5C:84) or
(option agent.remote-id=0A:00:3E:F0:7C:7C) or
(option agent.remote-id=0A:00:3E:F0:6D:3E)
{ option domain-name-servers 127.0.0.1; }
I only ask because there could be a scenario where my "several" clients
becomes "several hundred".
More information about the dhcp-users
mailing list