Annotation of embedaddon/dhcp/tests/failover/dhcp-2.cf, revision 1.1
1.1 ! misho 1: authoritative;
! 2:
! 3: class "even" {
! 4: match if ((extract-int (suffix
! 5: (pick-first-value (option dhcp-client-identifier,
! 6: hardware), 1), 8) % 2) = 0);
! 7: }
! 8: class "odd" {
! 9: match if ((extract-int (suffix
! 10: (pick-first-value (option dhcp-client-identifier,
! 11: hardware), 1), 8) % 2) = 1);
! 12: }
! 13:
! 14: lease-file-name "dhcp-2.leases";
! 15: pid-file-name "dhcp-2.pid";
! 16: local-port 50000;
! 17: remote-port 50001;
! 18: omapi-port 50005;
! 19:
! 20: ddns-update-style none;
! 21:
! 22: default-lease-time 600;
! 23: max-lease-time 600;
! 24:
! 25: failover peer "foo" {
! 26: secondary;
! 27: address 10.0.0.1;
! 28: port 51001;
! 29: peer address 10.0.0.1;
! 30: peer port 51000;
! 31: max-response-delay 60;
! 32: max-unacked-updates 10;
! 33: mclt 100;
! 34: load balance max seconds 2;
! 35: }
! 36:
! 37: option space SUNW;
! 38: option SUNW.root-mount-options code 1 = text;
! 39: option SUNW.root-server-ip-address code 2 = ip-address;
! 40: option SUNW.root-server-hostname code 3 = text;
! 41: option SUNW.root-path-name code 4 = text;
! 42: option SUNW.swap-server-ip-address code 5 = ip-address;
! 43: option SUNW.swap-file-path code 6 = text;
! 44: option SUNW.boot-file-path code 7 = text;
! 45: option SUNW.posix-timezone-string code 8 = text;
! 46: option SUNW.boot-read-size code 9 = unsigned integer 16;
! 47: option SUNW.install-server-ip-address code 10 = ip-address;
! 48: option SUNW.install-server-hostname code 11 = text;
! 49: option SUNW.install-path code 12 = text;
! 50: option SUNW.sysid-config-file-server code 13 = text;
! 51: option SUNW.JumpStart-server code 14 = text;
! 52: option SUNW.terminal-name code 15 = text;
! 53:
! 54: class "solaris-i86pc" {
! 55: match if option vendor-class-identifier = "SUNW.i86pc";
! 56: vendor-option-space SUNW;
! 57: option SUNW.boot-file-path "/platform/i86pc/kernel/unix";
! 58: option SUNW.root-path-name "/export/root/i86pc";
! 59: }
! 60:
! 61: class "solaris-sun4u" {
! 62: match if option vendor-class-identifier = "SUNW.Ultra-5_10";
! 63: vendor-option-space SUNW;
! 64: option SUNW.install-path "/export/2/s581_sparc";
! 65: option SUNW.root-path-name "/export/2/s581_sparc/Solaris_8/Tools/Boot";
! 66: }
! 67:
! 68: option domain-name "connectathon.org.";
! 69: option SUNW.root-server-ip-address 172.16.113.1;
! 70: option SUNW.root-server-hostname "sundhcp-server17-1";
! 71:
! 72: class "sniffer" {
! 73: match if option host-name = "sniffer";
! 74: }
! 75:
! 76: key FOO {
! 77: algorithm HMAC-MD5.SIG-ALG.REG.INT;
! 78: secret ABCD;
! 79: }
! 80:
! 81: zone BISBEE.FUGUE.COM. {
! 82: primary 127.0.0.1;
! 83: key FOO;
! 84: }
! 85:
! 86: zone 17.127.10.in-addr.arpa. {
! 87: primary 127.0.0.1;
! 88: key FOO;
! 89: }
! 90:
! 91: zone 0.0.10.in-addr.arpa. {
! 92: primary 127.0.0.1;
! 93: key FOO;
! 94: }
! 95:
! 96: subnet 204.152.186.128 netmask 255.255.255.192 {
! 97: not authoritative;
! 98: }
! 99:
! 100: shared-network LOCAL {
! 101: subnet 127.0.0.0 netmask 255.255.255.0 {
! 102: }
! 103: subnet 10.0.2.0 netmask 255.255.255.0 {
! 104: pool {
! 105: deny dynamic bootp clients;
! 106: failover peer "foo";
! 107: range 10.0.2.100 10.0.2.200;
! 108: }
! 109: }
! 110: }
! 111:
! 112: shared-network 187-NET {
! 113: subnet 204.152.187.0 netmask 255.255.255.0 {
! 114: }
! 115: subnet 205.140.116.224 netmask 255.255.255.248 {
! 116: }
! 117: subnet 10.0.1.0 netmask 255.255.255.0 {
! 118: pool {
! 119: deny dynamic bootp clients;
! 120: failover peer "foo";
! 121: range 10.0.1.10 10.0.1.200;
! 122: }
! 123: }
! 124: }
! 125:
! 126: subnet 10.0.0.0 netmask 255.255.255.0 {
! 127: pool {
! 128: deny dynamic bootp clients;
! 129: allow members of "even";
! 130: option impress-servers 10.0.0.0;
! 131: failover peer "foo";
! 132: range 10.0.0.10 10.0.0.54;
! 133: range 10.0.0.100 10.0.0.149;
! 134: }
! 135: pool {
! 136: deny dynamic bootp clients;
! 137: allow members of "odd";
! 138: failover peer "foo";
! 139: option impress-servers 10.0.0.1;
! 140: range 10.0.0.55 10.0.0.99;
! 141: range 10.0.0.150 10.0.0.200;
! 142: }
! 143: pool {
! 144: deny dynamic bootp clients;
! 145: allow members of "sniffer";
! 146: failover peer "foo";
! 147: range 10.0.0.9 10.0.0.9;
! 148: }
! 149: option routers 10.0.0.1;
! 150: option domain-name "bisbee.fugue.com";
! 151: option domain-name-servers 10.0.0.1;
! 152: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>