dhcpd

1.1 DHCPの基本設定
以下ではCisco WLCのIPをオプション43にて通知している。

[root@pc ~]# vim /etc/dhcp/dhcpd.conf
# dhcpd.conf
# [[DHCP]] Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#   see 'man 5 dhcpd.conf'
#


# option definitions common to all supported networks...
option domain-name "linux.home";
option domain-name-servers ns1.linux.home, ns2.linux.home;


default-lease-time 3600;
max-lease-time 10800;

# Use this to enble / disable dynamic dns updates globally.
ddns-update-style none;

# 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;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

subnet 172.16.1.0 netmask 255.255.255.0 {
}

subnet 192.168.4.0 netmask 255.255.255.0 {
}



# [[Wireless]] Management Network
option space Cisco_LWAPP_AP;
option Cisco_LWAPP_AP.server-address code 241 = array of ip-address;
subnet 192.168.9.0 netmask 255.255.255.0 {
  option domain-name-servers 192.168.4.1;
  option subnet-mask 255.255.255.0;
  option domain-name "network.home";
  option routers 192.168.9.254;
  option broadcast-address 192.168.9.255;
       class "Cisco AP c1250" {
               match if option vendor-class-identifier = "Cisco AP c1250";
               option vendor-class-identifier "Cisco AP c1250";
               vendor-option-space Cisco_LWAPP_AP;
               option Cisco_LWAPP_AP.server-address 192.168.8.250;
       }
	host LAP-01 {
		hardware ethernet xx:xx:xx:xx:xx:xx;
		fixed-address 192.168.9.1;
	}
	host LAP-02 {
		hardware ethernet xx:xx:xx:xx:xx:xx;
		fixed-address 192.168.9.1;
	}
}

# Wireless Network 01
subnet 192.168.10.0 netmask 255.255.255.0 {
  range 192.168.10.33 192.168.10.63;
  option domain-name-servers 192.168.4.1;
  option subnet-mask 255.255.255.0;
  option routers 192.168.10.254;
  option broadcast-address 192.168.10.255;
}
最終更新:2015年02月25日 02:55