Multiple DHCP servers, networks, Vlan Help one doesn't work!

Hey chaps, I really hope someone can help as I’m baffled!

I have four networks each on its own VLAN with its own DHCP server and external IP address I have set them all up the same however one of them (Vlan 30) refuses to assign DHCP!

Can anyone help me? below is my complete configuration

# jan/06/2014 14:24:09 by RouterOS 6.6
# software id = UA4P-LDCQ
#
/interface ethernet
set [ find default-name=ether1 ] name="ether1 (Internet)"
set [ find default-name=ether2 ] name="ether2 (Tennant LAN)"
set [ find default-name=ether10 ] name="ether10 (Config)"
set [ find default-name=sfp1 ] disabled=yes
/interface vlan
add interface="ether2 (Tennant LAN)" l2mtu=1594 name=\
    "VLAN28 (tennant 3)" vlan-id=28
add interface="ether2 (Tennant LAN)" l2mtu=1594 name="VLAN29 (tennant 2)" \
    vlan-id=29
add interface="ether2 (Tennant LAN)" l2mtu=1594 name=\
    "VLAN30 (tennant 1)" vlan-id=30
add interface="ether2 (Tennant LAN)" l2mtu=1594 name=\
    "VLAN31 (tennant 4)" vlan-id=31
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m \
    mac-cookie-timeout=3d
/ip pool
add name=dhcp_pool1 ranges=192.168.28.2-192.168.28.254
add name=tennant 2_dhcp_pool2 ranges=192.168.29.2-192.168.29.254
add name=dhcp_pool2 ranges=192.168.30.2-192.168.30.254
add name=dhcp_pool3 ranges=192.168.31.2-192.168.31.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=\
    "VLAN28 (tennant 3)" name=dhcp_VLAN28
add address-pool=tennant 2_dhcp_pool2 disabled=no interface="VLAN29 (tennant 2)" \
    name=dhcp_VLAN29
add address-pool=dhcp_pool2 disabled=no interface="VLAN30 (tennant 1)" \
    name=dhcp_VLAN30
add address-pool=dhcp_pool3 disabled=no interface="VLAN31 (tennant 4)" \
    name=dhcp_VLAN31
/port
set 0 name=serial0
/queue simple
add dst=99.99.249.159/32 max-limit=1500k/1500k name="VLAN28 ()" \
    target="ether1 (Internet)"
add dst=99.99.249.161/32 max-limit=1500k/1500k name="VLAN30 ()" target=\
    "ether1 (Internet)"
add dst=99.99.170.74/32 max-limit=1500k/1500k name="VLAN31 ()" \
    target="ether1 (Internet)"
add dst=99.99.249.160/32 max-limit=1500k/1500k name="VLAN29 ()" \
    target="ether1 (Internet)"
/system logging action
set 0 memory-lines=100
set 1 disk-lines-per-file=100
/ip address
add address=10.0.0.60/24 interface="ether10 (Config)" network=10.0.0.0
add address=192.168.28.1/24 interface="VLAN28 (tennant 3)" network=\
    192.168.28.0
add address=192.168.29.1/24 interface="VLAN29 (tennant 2)" network=192.168.29.0
add address=99.99.249.159/26 interface="ether1 (Internet)" network=\
    99.99.249.128
add address=99.99.249.160/26 interface="ether1 (Internet)" network=\
    99.99.249.128
add address=192.168.30.1/24 interface="VLAN30 (tennant 1)" network=\
    192.168.30.0
add address=99.99.249.161/26 interface="ether1 (Internet)" network=\
    99.99.249.128
add address=99.99.170.70/26 interface="ether1 (Internet)" network=\
    99.99.170.64
add address=99.99.170.72/26 interface="ether1 (Internet)" network=\
    99.99.170.64
add address=99.99.170.73/26 interface="ether1 (Internet)" network=\
    99.99.170.64
add address=192.168.31.1/24 interface="VLAN31 (tennant 4)" network=\
    192.168.31.0
add address=99.99.170.74/26 interface="ether1 (Internet)" network=\
    99.99.170.64
/ip dhcp-server network
add address=192.168.28.0/24 dns-server=192.168.28.1 gateway=192.168.28.1 \
    netmask=24
add address=192.168.29.0/24 dns-server=192.168.29.1 gateway=192.168.29.1 \
    netmask=24
add address=192.168.30.0/24 dns-server=192.168.30.1 gateway=192.168.30.1 \
    netmask=24
add address=192.168.31.0/24 dns-server=192.168.31.1 gateway=192.168.31.1 \
    netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall filter
add chain=forward in-interface="ether1 (Internet)" out-interface=\
    "VLAN28 (tennant 3)"
add chain=forward in-interface="ether1 (Internet)" out-interface=\
    "VLAN29 (tennant 2)"
add chain=forward in-interface="ether1 (Internet)" out-interface=\
    "VLAN30 (tennant 1)"
add chain=forward in-interface="ether1 (Internet)" out-interface=\
    "VLAN31 (tennant 4)"
add chain=forward in-interface="VLAN28 (tennant 3)" out-interface=\
    "ether1 (Internet)"
add chain=forward in-interface="VLAN29 (tennant 2)" out-interface=\
    "ether1 (Internet)"
add chain=forward in-interface="VLAN30 (tennant 1)" out-interface=\
    "ether1 (Internet)"
add chain=forward in-interface="VLAN31 (tennant 4)" out-interface=\
    "ether1 (Internet)"
add action=log chain=forward
add action=drop chain=forward
/ip firewall nat
add action=src-nat chain=srcnat comment="vlan 28" src-address=192.168.28.0/24 \
    to-addresses=99.99.249.159
add action=src-nat chain=srcnat comment="vlan 29" src-address=192.168.29.0/24 \
    to-addresses=99.99.170.70
add action=src-nat chain=srcnat comment="vlan 30" src-address=192.168.30.0/24 \
    to-addresses=99.99.170.72
add action=src-nat chain=srcnat comment="vlan 31" src-address=192.168.31.0/24 \
    to-addresses=99.99.170.74
add action=dst-nat chain=dstnat comment="RDP" dst-address=99.99.170.72 \
    dst-port=3389 protocol=tcp to-addresses=192.168.30.3 to-ports=3389
/ip route
add distance=1 gateway=99.99.249.129
add distance=1 gateway=99.99.170.65
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www address=10.0.0.0/16
set ssh disabled=yes
/lcd interface
set sfp1 interface=sfp1
set "ether1 (Internet)" interface="ether1 (Internet)"
set "ether2 (Tennant LAN)" interface="ether2 (Tennant LAN)"
set ether3 interface=ether3
set ether4 interface=ether4
set ether5 interface=ether5
set ether6 interface=ether6
set ether7 interface=ether7
set ether8 interface=ether8
set ether9 interface=ether9
set "ether10 (Config)" interface="ether10 (Config)"
/system clock
set time-zone-name=Europe/London
/tool graphing queue
add simple-queue="VLAN28 ()"
add simple-queue="VLAN29 ()"
add simple-queue="VLAN30 ()"
add simple-queue="VLAN31 ()"

Hello,
what devices are tagging into vlans your own network?

And can you ping gateways from router? :slight_smile:

For testing I have a machine setup on a cisco with a 802Q configured port when I tag this as Vlan29-30 I get the DHCP correctly and all is happy however when I choose VLAN31 I get nothing!

yes all gateways are responding (192.168.29.1, 192.168.30.1, 192.168.31.1 and 192.168.28.1)

bizarrely even when setup with static ip on vlan31 i can’t see anything

Config looks fine, chances are it’s the switch. Possibly not having having VLAN31 listed as a tag on the interface. When you run torch on your physical LAN interface, and select VLANs, do you see anything from VLAN31 coming in or going out of the router?

AH I hadn’t considered that as in the past its just worked but no nothing on Vlan31, I wonder if it just takes a while for the cisco to pick it up.

Will look into that now!

Thanks

You are absolutely right! Cisco problem!

Thank you