dhcp question

Your Name yusca at yus.ca
Wed Nov 5 08:00:30 PST 2003


-- 
Hi all

I would like to configure 2 network cards to have dhcp server function
but it doesnt'work

NIC rl0 is WAN port
NIC rl1 is for 192.168.0.1 network
NIC rl2 is for 10.0.0.1 network

I put dhcpd.sh in the /usr/local/etc/rc.d

#!/bin/sh
/usr/sbin/dhcpd rl1 -q
/usr/sbin/dhcpd rl2 -q


Those rl1 and rl2 are using NAT to go to outside

In the /etc/dhcpd.conf

I configured the network

authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.0.100 192.168.0.150;
  option domain-name "abc.com";
  option domain-name-servers 24.141.32.200;

  default-lease-time 600;
  max-lease-time 7200;
  option routers 192.168.0.1;
  option broadcast-address 192.168.0.255;
  default-lease-time 600;
  max-lease-time 7200;
}

subnet 10.0.0.0 netmask 255.0.0.0 {
  range 10.0.0.100 10.0.0.150;
  option domain-name "abc.com";
  option domain-name-servers 24.141.32.200;

  default-lease-time 600;
  max-lease-time 7200;
  option routers 10.0.0.1;
  option broadcast-address 10.255.255.255;
  default-lease-time 600;
  max-lease-time 7200;
}

Thank you











More information about the freebsd-questions mailing list