Community discussions

MikroTik App
 
zuku
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Sat Jun 27, 2015 3:56 pm

Vlan not getting IP from windows DHCP

Mon Nov 26, 2018 2:34 pm

On mikrotik with ROS 6.38.7 I have configured vlan13 subnet (10.10.13.0/24) for pos terminals. On my main lan subnet (10.1.0.0) I have domain server 2012 with DHCP and scope for this VLAN13. My problem is that some POS terminals getting IP from DHCP some not, but if anyway any terminal will get it's IP it can't renew it in the future, it stuck with 169.x.x.x address.
Vlan13 subnet have access to dhcp server, dhcp server have access to all vlan13 subnet.
All pos terminals are added to the same TP-LINK T2600 switch, with PVID 13 of vlan 13 and then trunked to tp-link switch TL-SG2452 which have trunk to mikrotik with vlan13.

I have also configured IP Dhcp Relay on Vlan13:
add dhcp-server=10.1.0.190 disabled=no interface=vlan_13 name=relay3
On DHCP relay counters I have many request: 144 but only 38 responses.
I have set log on input vlan13, some output:
13:47:34 firewall,info DHCP-POS input: in:vlan_13 out:(none), src-mac 00:19:17:81:7d:02, proto UDP, 10.10.13.56:138->10.10.13.255:138, len 235 
13:47:34 firewall,info DHCP-POS input: in:vlan_13 out:(none), src-mac 00:19:17:81:7d:02, proto UDP, 10.10.13.56:138->10.10.13.255:138, len 235
could anyone help me with that?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19374
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Vlan not getting IP from windows DHCP

Mon Nov 26, 2018 6:01 pm

So you have a router attached to a managed switch (trunk port from router, trunk port to second managed switch) attached to a managed switch (trunk port from first switch, with pos machines on access ports).

Would need to see your router config for vlans (assuming the switches are straightforward).
If that is not the issue then it would be successfully DHCP serving a VLAN from a server on the router normal LAN, vice using the router itself??

Posting your config might help.
(I would update router to latest firmware as well, if not already done)
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Vlan not getting IP from windows DHCP

Mon Nov 26, 2018 6:15 pm

On mikrotik with ROS 6.38.7
Before you do anything about Vlan you should upgrade. Your are running an old version of RuterOS that could be hacked easely.
Also from 6.41+ you get a better way to handel vlan with one bridge solution.
 
zuku
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Sat Jun 27, 2015 3:56 pm

Re: Vlan not getting IP from windows DHCP

Mon Nov 26, 2018 9:27 pm

My config is:
Pos terminals<--------->tp-link T2600G ports with pvid 13 untagged of vlan13<---------tagged vlan13----------->tp-link TL-SG2452<--------tagged vlan13---------->vlan13 on interface sfp-sfpplus1 Mikrotik
/interface vlan
add comment="vlan_13 - POS - 10.10.13.0" interface=sfp-sfpplus1 name=vlan_13 vlan-id=13
I do not want update ROS to newest because OSPF do not working on new releases, I upgraded one of my mikrotik to 6.42.9 and ospf routes on ovpn tunels do not propagate
route,ospf,info Discarding Hello packet: mismatch in network mask
so I had to change my routes to static ones.
 
zuku
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Sat Jun 27, 2015 3:56 pm

Re: Vlan not getting IP from windows DHCP

Tue Nov 27, 2018 12:58 pm

If I create DHCP server on vlan13, then pos terminals getting IP from DHCP, so there is problem with mikrotik relay or windows dhcp server.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Vlan not getting IP from windows DHCP

Tue Nov 27, 2018 1:37 pm

Should DHCP server be on the MikroTik Router or elsewhere?
Relay means using one device as a gateway for another DHCP server.
Make a drawing of your layout.
 
zuku
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Sat Jun 27, 2015 3:56 pm

Re: Vlan not getting IP from windows DHCP

Tue Nov 27, 2018 2:03 pm

I created dhcp only for testing purposes, my main DHCP is on windows domain server and there is scope for vlan13.
Image
 
zuku
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Sat Jun 27, 2015 3:56 pm

Re: Vlan not getting IP from windows DHCP

Tue Nov 27, 2018 3:04 pm

I connected laptop to vlan13 switchport T2600G and it getting IP 10.10.13.76 from windows DHCP server - it is so weird because rest of vlan devices can't do this - faulty switch?
I have question, I do dhcp packet analyze with wireshark connected to T2600G switch, if I connect ethernet cable to vlan13 switchport I see in wireshark "DHCP Request" with my source MAC and broadcast ff:ff:ff:ff:ff:ff.
Now from what source should come "DHCP ACK" response, from my windows dhcp server so 10.1.0.190, or from my mikrotik relay interface 10.10.13.1 ?
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3300
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Vlan not getting IP from windows DHCP

Tue Nov 27, 2018 6:01 pm

So you want all DHCP to be on the Windows server?
DHCP should respond directly for clients on VLAN 1 and MikroTik Router should relay DHCP for VLAN 13 and send it to Windows Server.

As long as nothing block the request and you setup reply and network correctly on the Router it should work.
viewtopic.php?t=137206#p675850
 
zuku
Member Candidate
Member Candidate
Topic Author
Posts: 109
Joined: Sat Jun 27, 2015 3:56 pm

Re: Vlan not getting IP from windows DHCP

Mon Dec 10, 2018 2:32 pm

I'm giving up and I'm switching to static IP addresses.
The problem concern the same devices from one manufacturer - Posiflex, all they have the same etnernet card "Realtek PCIe GBE Family Controller" as I read this card is very problematic, and I think here is the problem, but for now don't know how to resolve it.

Who is online

Users browsing this forum: anav and 183 guests