# -*- perl -*- # DHCP support for the MOL client # # By default, the tunconfig script extracts the name server # from /etc/resolv.conf and uses NAT to redirect DNS # requests to the tun gateway (e.g. 192.168.1.1) to this server. # An alternativ is specifying the DNS servers below # (remember to comment out the DNS servers lines in the subnet # declarations). #option domain-name-servers 10.0.0.1, 10.0.0.2; # Newer dhcpd versions require the following line #ddns-update-style ad-hoc; # Support for up to 6 sessions (each with its own tun interface) subnet 192.168.1.0 netmask 255.255.255.0 { option domain-name-servers 192.168.1.1; option routers 192.168.1.1; host mol { hardware ethernet 00:00:0D:EA:DB:EE; fixed-address 192.168.1.2; } } subnet 192.168.2.0 netmask 255.255.255.0 { option domain-name-servers 192.168.2.1; option routers 192.168.2.1; host mol1 { hardware ethernet 00:00:0D:EA:DB:EE; fixed-address 192.168.2.2; } } subnet 192.168.3.0 netmask 255.255.255.0 { option domain-name-servers 192.168.3.1; option routers 192.168.3.1; host mol2 { hardware ethernet 00:00:0D:EA:DB:EE; fixed-address 192.168.3.2; } } subnet 192.168.4.0 netmask 255.255.255.0 { option domain-name-servers 192.168.4.1; option routers 192.168.4.1; host mol3 { hardware ethernet 00:00:0D:EA:DB:EE; fixed-address 192.168.4.2; } } subnet 192.168.5.0 netmask 255.255.255.0 { option domain-name-servers 192.168.5.1; option routers 192.168.5.1; host mol4 { hardware ethernet 00:00:0D:EA:DB:EE; fixed-address 192.168.5.2; } } subnet 192.168.6.0 netmask 255.255.255.0 { option domain-name-servers 192.168.6.1; option routers 192.168.6.1; host mol5 { hardware ethernet 00:00:0D:EA:DB:EE; fixed-address 192.168.6.2; } } subnet 192.168.7.0 netmask 255.255.255.0 { option domain-name-servers 192.168.7.1; option routers 192.168.7.1; host mol6 { hardware ethernet 00:00:0D:EA:DB:EE; fixed-address 192.168.7.2; } }