dhcp multiple vlan

Discussion in 'HOWTO-Related Questions' started by bunnyi, Dec 31, 2011.

  1. bunnyi

    bunnyi New Member

    Hi Everyone!


    Please help me.I have a dhcp config problem. I read lot of dhcp article.
    I did a dhcp server. We have 3 vlan in our network.
    The isc-dhcp-server must be give ipaddress in the multiple vlan.
    The VLAN 0 is working well, but the other two VLAN do not get address from the dhcp server.
    I could not find any errors in syslog.
    Here is my all config.
    The server will be static on 192.168.3.221

    The /etc/network/interfaces file
    #
    auto lo
    iface lo inet loopback
    # The primary network interface
    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.0.221
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    #vlan 1 virtual interfaces, no cable
    allow-hotplug eth1
    iface eth1 inet static
    post-up /sbin/ifconfig eth1 mtu 1500
    address 192.168.1.221
    broadcast 192.168.1.255
    netmask 255.255.255.0
    network 192.168.1.0
    gateway 192.168.1.254
    #vlan 2 virtual interfaces, no cable
    allow-hotplug eth2
    iface eth2 inet static
    post-up /sbin/ifconfig eth2 mtu 1500
    address 192.168.2.221
    broadcast 192.168.2.255
    netmask 255.255.255.0
    network 192.168.2.0
    gateway 192.168.2.254
    ...............................................
    he /etc/default/isc-dhcp-server file
    INTERFACES="eth0 eth1 eth2"
    ...............................................
    The /etc/dhcp/dhcpd.conf file
    #
    allow client-updates;
    allow unknown-clients;
    ddns-update-style none;
    option domain-name "aaaaaa.com";
    option domain-name-servers 192.168.3.222;
    option ntp-servers 192.168.3.222;
    default-lease-time 600;
    max-lease-time 7200;
    authoritative;
    log-facility local7;
    # vlan0
    subnet 192.168.0.0 netmask 255.255.255.0 {
    option broadcast-address 192.168.0.255;
    option subnet-mask 255.255.255.0;
    option routers 192.168.0.1;
    range 192.168.0.2 192.168.0.64;
    }
    # vlan1
    subnet 192.168.1.0 netmask 255.255.255.0 {
    option broadcast-address 192.168.1.255;
    option subnet-mask 255.255.255.0;
    option routers 192.168.1.254;
    range 192.168.1.1 192.168.1.16;
    }
    # vlan2
    subnet 192.168.2.0 netmask 255.255.255.0 {
    option broadcast-address 192.168.2.255;
    option subnet-mask 255.255.255.0;
    option routers 192.168.2.254;
    range 192.168.2.1 192.168.2.32;
    }
    #
    On my cisco asa I use ip helper-address 192.168.3.201


    What do you think it is good?
    have you any idea?
    Many Thanks
     
    Last edited: Dec 31, 2011

Share This Page