请教高手dhcp的问题!

请教高手dhcp的问题!

    我用的操作系统是RedHat7.2,安装了二块网卡,地址分别是192.168.1.1和192.168.2.1,这二块网卡分别属于不同VLAN。现在我想让IP是192.168.1.1的网卡来动态分配192.168.1.2到192.168.1.253的IP地址,该子网的网关是192.168.1.254,让IP是192.168.2.1的网卡来动态分配192.168.2.2到192.168.2.253的IP地址,该子网的网关是192.168.1.254,请问我应该如何设置我的服务器配置文件?最好能详细一点,谢谢!

      
setp1: config your dhcpd.conf
setp2: dhcpd eth0
(eth0 ip address 192.168.1.1)
setp3: add dhcpd eth0 in your rc.local ,when you computer start,dhcpd is running.      
以下的dhcp.conf配置文件是根据您的实际情况改写的,实际上我也正在使用相似的配置
option domain-name "REMOTE.NET"; \\enter your domain name here and of course you can delete it if you are not using a domain
option domain-name-servers 192.168.1.1;
subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers 192.168.1.254;
        range 192.168.1.2 192.168.1.253;
        }
subnet 192.168.2.0 netmask 255.255.255.0 {
        option routers 192.168.2.254;
        range 192.168.2.2 192.168.2.253;
        }