Score:0

I want to multi DHCP server

in flag

I want to use multiple subnet with multi interfaces.

-> trunk.102 10.20.1.0/24
-> trunk.103 10.30.1.0/24

... etc

Does it works well or need more something? How can i order to trunk.102 use 10.20.1.0/24 subnet or trunk.103 use 10.30.1.0/24 subnet?

/etc/dhcp/dhcpd.conf:

default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
authoritative;

#trunk.102
subnet 10.20.1.0 netmask 255.255.255.0 {
    range 10.20.1.10 10.20.1.100;
    option routers 10.20.1.254;
    option subnet-mask 255.255.255.0;
    option domain-name-servers 10.20.1.254, 8.8.8.8;
}

#trunk.103
subnet 10.30.1.0 netmask 255.255.255.0 {
    range 10.30.1.10 10.30.1.100;
    option routers 10.30.1.254;
    option subnet-mask 255.255.255.0;
    option domain-name-servers 10.30.1.254, 8.8.8.8;
}

/etc/default/isc-dhcp-server:

# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)

# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf

# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid

# Additional options to start dhcpd with.
#       Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="trunk.102 trunk.103"
INTERFACESv6=""
ru flag
This should work fine if the DHCP server is connected to both VLANs and your system is configured properly for VLAN. If the DHCP server does not exist on those VLANs, then you need to set up DHCP Relay services. Is the DHCP server on both the 102 and 103 VLANs?
AlexSwamp avatar
in flag
I use DHCP server on my firewall which using zones (my vlans is my zones) so DHCP server also available all zones/vlans. The subnet order is related to INTERFACESv4 order?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.