[Linux-ag] dhcp-mac adresleri

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Aydin KOCAK (akocak@mu.edu.tr)
Date: Fri 16 Sep 2005 - 16:23:27 EEST


Merabalar;
Herkes durmadan ayni MAC adresi diyor. Abdullah Bey ayni MAC adresi demiyor.
MAC adreslerinin belirli bir kismi ayni basliyor diyor. MAC adresleri 48
bitten olusur.
Bunun ilk 24 bitlik kisimlar IEEE tarafindan ureticilere satilir.(verilir).
Dogal olarak
3Com bir ethernet karti aliyorsaniz ve ayni yil uretilmis veya ayni model
bir seri ise
genel olarak bu ilk 24 bit ayni olabiliyor. Kalan 24 bit ise vendor
tarafindan yine uniq olarak
belirleniyor.

 Asagidaki dosyayi incelerseniz sorununuzu cozebilirsiniz...

Iyi Calismalar,
Aydin KOCAK.

----------------------- MAC Kisimlarini kendinize uygun
degistirebilirsiniz.-----------
class "colinux" {
    match if substring(
         pick-first-value(option dhcp-client-identifier,hardware),
         0, 3) = 1:00:ff;
  }
ddns-update-style none;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# Method 1
#class "qemu" {
# match substring (hardware,1,3);
#}
#subclass "qemu" 00:FF:30;

# Method 2
class "qemu" {
  match if substring (hardware, 1, 2) = 00:FF;
  log(info, "matched hardware 00:ff:*");
}

# Method 3
#class "qemu" {
# match if binary-to-ascii (16,8,":", substring(hardware, 1, 2)) =
# "0:ff";
#}

subnet 192.168.0.0 netmask 255.255.255.0 {
  always-broadcast on;
  max-lease-time 3600;
  default-lease-time 1800;
  option domain-name "home.lan";
  option subnet-mask 255.255.255.0;
  option routers 192.168.0.1;

  # pool for qemu
  pool {
    allow members of "qemu";
    range 192.168.0.11 192.168.0.20;
    log(info, "matched hardware 00:ff:*");
  }

  # pool for other clients
  pool {
     deny members of "qemu";
     range 192.168.0.2 192.168.0.5;
     log(info, "did not match hardware 00:ff:*");
  }
}

_______________________________________________
Linux-ag mailing list
Linux-ag@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-ag


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.