#1  
Old 31st December 2011, 12:57
bunnyi bunnyi is offline
Junior Member
 
Join Date: Dec 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default dhcp multiple vlan

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 by bunnyi; 31st December 2011 at 13:12.
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible DHCP server and gateway (got DHCP server working though) j.smith1981 Server Operation 1 6th August 2010 10:34
DHCP using HA load balancer (LVS) cluster? paralikar HOWTO-Related Questions 0 29th January 2010 06:08
HELP DNS and DHCP I AM LOST krisarmstrong Server Operation 0 18th August 2009 23:27
ISPConfig multiple sites with dhcp cable rdtech General 15 21st March 2008 07:17
DHCP to multiple subnets from 1 machine? unclecameron Server Operation 1 29th November 2007 16:27


All times are GMT +2. The time now is 11:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.