Правила форума
Как правильно оформить вопрос.
Прежде чем начать настройку роутера, представьте, как это работает. Попробуйте почитать статьи об устройстве интернет-сетей. Убедитесь, что всё, что Вы задумали выполнимо вообще и на данном оборудовании в частности.
Не нужно изначально строить Наполеоновских планов. Попробуйте настроить простейшую конфигурацию, а усложнения добавлять в случае успеха постепенно.
Пожалуйста, не игнорируйте правила русского языка. Отсутствие знаков препинания и неграмотность автора топика для многих гуру достаточный повод проигнорировать топик вообще.
1. Назовите технологию подключения (динамический DHCP, L2TP, PPTP или что-то иное)
2. Изучите темку «Действия до настройки роутера».
viewtopic.php?f=15&t=2083
3. Настройте согласно выбранного Вами мануала
4. Дочитайте мануал до конца и без пропусков, в 70% случаев люди просто не до конца читают статью и пропускают важные моменты.
5. Если не получается, в Winbox открываем терминал и вбиваем там /export hide-sensitive. Результат в топик под кат, интимные подробности типа личных IP изменить на другие, пароль забить звездочками.
6. Нарисуйте Вашу сеть, рисунок (схему) сюда. На словах может быть одно, в действительности другое.
-
Leo
- Сообщения: 4
- Зарегистрирован: 12 дек 2016, 10:22
- Откуда: Самара
Всем привет, подскажите или дайте ссылку.
есть железка rb951g-2hnd, хочу ее использовать в уже имеющейся сети
что и где нужно настроить чтобы mikrotik раздавал DHCP с Windows Server 2008
-
Dragon_Knight
- Сообщения: 1721
- Зарегистрирован: 26 мар 2012, 18:21
- Откуда: МО, Мытищи
- Контактная информация:
Что значит «чтобы mikrotik раздавал DHCP с Windows Server 2008«???
В сети может быть только один сервер, который и выдаёт IP. В Вашем случае это может быть или MikroTik или WinSrv.
Небольшой свод правил логики и ссылок:
- Если устройство имеет Ethernet порт, то оно обязано быть подключено через него. Компьютер, Ноутбук, Телевизор, Принтер, Камера видеонаблюдения, и т.д.
- Если нет возможности протянуть кабель, то найдите её, или страдайте со своими проблемами Wi-Fi дальше.
- Wi-Fi это сеть для мобильных устройств. Если Вы подключили свой шикарный 50″ телевизор не кабелем, то без фотоотчёта, когда он лежит у Вас в кармане дальнейшего разговора не получиться. Это относится и ко всем остальным устройствам.
- Если Ваше устройство вызывает вопросы в работе, первое что необходимо делать: NetInstall + дальнейшая настройка вручную.
- Не используйте WebFig или QuickSet — это пути к глюкам и ошибкам. Только SSH или WinBox, и да, — WinBox есть под Android.
- name.rsc — это текстовый файл, и Вы можете его открыть блокнотом.
- Если Вы хотите связаться со мной для ремонта или настройки, то: Telegram ( Не благотворительность ).
- Мой сайт по Mikrotik: Global Zone >> MikroTik.
-
Leo
- Сообщения: 4
- Зарегистрирован: 12 дек 2016, 10:22
- Откуда: Самара
Возможно не правильно выразился и меня не поняли.
Есть DHCP сервер в сети, на Windows
пытаюсь понять как сделать, чтобы микротик передавал адреса через себя т.е. если в сети скажем 188.50.24.0/24 , то клиент получает после микротика получает адрес из пула 188.50.24.0/24
-
Vlad-2
- Модератор
- Сообщения: 2527
- Зарегистрирован: 08 апр 2016, 19:19
- Откуда: Петропавловск-Камчатский (п-ов Камчатка)
- Контактная информация:
Leo писал(а):Возможно не правильно выразился и меня не поняли.
Есть DHCP сервер в сети, на Windows
пытаюсь понять как сделать, чтобы микротик передавал адреса через себя т.е. если в сети скажем 188.50.24.0/24 , то клиент получает после микротика получает адрес из пула 188.50.24.0/24
Скорее всего Вы хотите «DHCP relay» ?
Такой пункт меню есть (в винбоксе, IP-DHCP relay), изучайте, настраивайте, тестируйте.
Вроде это то, что Вам надо!
На работе(ах): 2xCCR1016-12G, RB3011UiAS и hAP lite (RB941)
Дома: CCR1016-12G, RBcAP2n (standalone), RB wAP LTE kit
Для тестов(под рукой): RB3011UiAS, hAP mini (RB931) и что-то ещё по мелочи
MTCNA
MTCRE
-
Leo
- Сообщения: 4
- Зарегистрирован: 12 дек 2016, 10:22
- Откуда: Самара
Vlad-2 писал(а):
Leo писал(а):Возможно не правильно выразился и меня не поняли.
Есть DHCP сервер в сети, на Windows
пытаюсь понять как сделать, чтобы микротик передавал адреса через себя т.е. если в сети скажем 188.50.24.0/24 , то клиент получает после микротика получает адрес из пула 188.50.24.0/24Скорее всего Вы хотите «DHCP relay» ?
Такой пункт меню есть (в винбоксе, IP-DHCP relay), изучайте, настраивайте, тестируйте.
Вроде это то, что Вам надо!
да этот пункт я видел в настройках, но помоему это не совсем то, что мне нужно
в описании идет речь об объединении нескольких подсетей и каждая видна друг другу
https://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Relay
мне же нужно что бы микротик передавал через себя уже имеющийся DHCP пул адресов настроенный на Windows
-
Vlad-2
- Модератор
- Сообщения: 2527
- Зарегистрирован: 08 апр 2016, 19:19
- Откуда: Петропавловск-Камчатский (п-ов Камчатка)
- Контактная информация:
Leo писал(а):да этот пункт я видел в настройках, но помоему это не совсем то, что мне нужно
в описании идет речь об объединении нескольких подсетей и каждая видна друг другуhttps://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Relay
мне же нужно что бы микротик передавал через себя уже имеющийся DHCP пул адресов настроенный на Windows
Мне кажется, Вы не правы в толковании.
И хоть я не юзал данный тип сервиса, вот ссылка(внизу) описывающая действительную
сущность DHCP_Relay на практике у человека (почти Ваш вариант).
http://forum.nag.ru/index.php?/topic/99 … dows-2008/
На работе(ах): 2xCCR1016-12G, RB3011UiAS и hAP lite (RB941)
Дома: CCR1016-12G, RBcAP2n (standalone), RB wAP LTE kit
Для тестов(под рукой): RB3011UiAS, hAP mini (RB931) и что-то ещё по мелочи
MTCNA
MTCRE
-
podarok66
- Модератор
- Сообщения: 4402
- Зарегистрирован: 11 фев 2012, 18:49
- Откуда: МО
Мне кажется, без схемы сети с комментариями ТС дальнейшее обсуждение скатится к простому гаданию на кофейной гуще. Схему сети в студию, пжлста.
Мануалы изучил и нигде не ошибся? Фаервол отключил? Очереди погасил? Витая пара проверена? … Тогда Netinstal’ом железку прошей и настрой ее заново. Что, все равно не фурычит? Тогда к нам. Если не подскажем, хоть посочувствуем…
-
Leo
- Сообщения: 4
- Зарегистрирован: 12 дек 2016, 10:22
- Откуда: Самара
podarok66 писал(а):Мне кажется, без схемы сети с комментариями ТС дальнейшее обсуждение скатится к простому гаданию на кофейной гуще. Схему сети в студию, пжлста.
для чего схема, если я описал всего два устройства:
1) Server Windows с ролью DHCP
2) Mikrotik
где мне нужно чтобы ip адреса с сервера с виндовс проходили через mikrotik до клиента и все
я пытаюсь понять как это сделать, но ни где нет нормального описания или примера
-
Dragon_Knight
- Сообщения: 1721
- Зарегистрирован: 26 мар 2012, 18:21
- Откуда: МО, Мытищи
- Контактная информация:
Нигде. Просто отключите DHCP в микротике…
Небольшой свод правил логики и ссылок:
- Если устройство имеет Ethernet порт, то оно обязано быть подключено через него. Компьютер, Ноутбук, Телевизор, Принтер, Камера видеонаблюдения, и т.д.
- Если нет возможности протянуть кабель, то найдите её, или страдайте со своими проблемами Wi-Fi дальше.
- Wi-Fi это сеть для мобильных устройств. Если Вы подключили свой шикарный 50″ телевизор не кабелем, то без фотоотчёта, когда он лежит у Вас в кармане дальнейшего разговора не получиться. Это относится и ко всем остальным устройствам.
- Если Ваше устройство вызывает вопросы в работе, первое что необходимо делать: NetInstall + дальнейшая настройка вручную.
- Не используйте WebFig или QuickSet — это пути к глюкам и ошибкам. Только SSH или WinBox, и да, — WinBox есть под Android.
- name.rsc — это текстовый файл, и Вы можете его открыть блокнотом.
- Если Вы хотите связаться со мной для ремонта или настройки, то: Telegram ( Не благотворительность ).
- Мой сайт по Mikrotik: Global Zone >> MikroTik.
-
podarok66
- Модератор
- Сообщения: 4402
- Зарегистрирован: 11 фев 2012, 18:49
- Откуда: МО
Ну и чем вас не устроил вариант с
https://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Relay
Вот ДХЦП-сервер. Вот клиенты. Что отличается от вашего варианта? Общение между сетями — ну пропишите маршруты, хотя и так должны вроде видеть друг друга.
Мануалы изучил и нигде не ошибся? Фаервол отключил? Очереди погасил? Витая пара проверена? … Тогда Netinstal’ом железку прошей и настрой ее заново. Что, все равно не фурычит? Тогда к нам. Если не подскажем, хоть посочувствуем…
Прочитано: 26 877
Итак, чтобы разобраться как настраивать DHCP Relay на Mikrotik я поднял для большего и наглядного понимания стенд под Virtualbox основной своей системы Ubuntu Trusty Desktop ноутбука Lenovo E555 (16Gb-оперативной памяти это позволяют).
Развернута VM с осью Windows Server 2016 (Version 10.0.14393) с ролями AD,DNS,DHCP и в настройках данной виртуальной системы указано, что: Машина — Настроить — Сеть — Адаптер №1 — Внутренняя сеть — Имя: intnet
Далее в сервисе DHCP создана область той сети которая будет находиться за шлюзом, в моем случае это 192.168.3.100-192.168.3.200, ниже скриншот для наглядного представления:
Затем поднята еще одна виртуальная система с развернутой операционной системой Mikrotik (см. заметку как развернуть Mikrotik под Virtualbox) с двумя интерфейсами:
- Первый (Адаптер №1) — Внутренняя сеть — Имя: innet → смотрит в сеть где расположен домен контроллер и ролью DHCP в которой он указан, как шлюз.
- Второй (Адаптер №2) — Внутренняя сеть — Имя: innet1 → смотрит в сеть которая уже находится за Mikrotik, т. к. сеть 192.168.3.0/24 собственно на которую я хочу прокинуть DHCP сервис от Windows Server 2016
На Mikrotik (v6.41.2 on x86) обозначены статические IP адреса, где зеленым цветом обозначен интерфейс отвечающий за сеть после Mikrotik.
Далее настроены правила NAT:
После чего настраивается функция прокладывания запросов от DHCP сервиса во внутреннюю сеть за интерфейсом ether2:
winbox — ip&user&pass — IP — DHCP Relay — Add
вкладка General:
- Name: relay1
- Interface: ether2
- DHCP Server: 192.168.2.2 → это Windows система с ролями DNS,DHCP,AD
- Local Address: 192.168.3.1 → это адрес Mikrotik интерфейс ether2 который смотрит в сеть за Mikrotikом
- Add Relay Info: отмечаю галочкой
- Relay Info Remote ID: relay1
после нажимаю Apply и Ok.
А вот сейчас развернута еще одна VM с осью Windows 7 x64 Pro (Version 6.1.7601) где настройки сети виртуальной машины: Машина — Настройки — Сеть — Адаптер №2 — Внутренняя сеть — intnet1, полученные настройки от Mikrotik идут прямиком от DHCP сервиса за ним из второй сети:
А во вкладке DHCP на системе Windows Server 2016 вижу, какой адрес выдался и указанного диапазона данной области:
Win + R → control.exe — Администрирование — DHCP — DHCP — srv-dc.polygon.local — IPv4 — Область [192.168.3.0] relay — Адресованные адреса
Итого, я для себя уяснил, как же это все делается и уже теперь наверное смогу настроить по аналогии и D-Link DFL-860E как требует поставленная задача от моего руководителя. А все выше это было самообразование с использованием тех инструментов и систем которые я могу съимитировать в своей лаборатории. Работает, что еще можно сказать. Но не буду нагромождать данную заметку. На этом всё, с уважением автор блога Олло Александр aka ekzorchik.
Mathew J. Heath Van Horn, PhD and Jacob Christensen
Typically, larger networks are segmented into smaller LANs. However, one concern that can arise from this is the issue of distributing IP addresses across individual subnets. This is because DHCP discover packets are designed to be broadcasted within local networks. While a network administrator could configure a dedicated DHCP server for each LAN, we demonstrated in Static Networking Part 1 that this can quickly become tedious to configure and maintain. Luckily, DHCP relays can be configured to re-transmit IP requests to remote servers. This way, one server can lease addresses to multiple networks at once. In this chapter, we will configure a DHCP relay with a MikroTik router to service two networks.
Estimated time for completion: 60 minutes
Learning Objectives
- Create three functional LANs
- RED – PCs
- BLUE – PCs
- GRAY – DHCP Server
- Configure a router to serve as a functional DHCP relay
- Configure a DHCP server successfully
Prerequisites
- Chapter 16 – Introduction to Routers
- Chapter 17 – IPv4 Addressing
- Chapter 18 – DHCP using Linux
Deliverables
- Screenshot of GNS Workspace with labels
- Screenshot of Wireshark DHCP
- LAN1 end devices requesting and receiving IP addresses
- LAN2 end devices requesting and receiving IP addresses
Resources
- MikroTik RouterOS Documentation – “DHCP Relay” – https://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Relay
Contributors and Testers
- Dante A. Rocca, Cybersecurity Student, ERAU-Prescott
The following steps are to create a baseline environment for completing the lab. It makes assumptions about learner knowledge from completing previous labs.
By the end of this lab your network should look like the following:
- Start GNS3
- Create a new project: LAB_08
- Build a small network will the following specifications:
- Subnet – Red
- One switch – Ethernet switch
- Two client machines – VPCS
- Minimize wasted address space for 250 hosts
Network Information Network 100.10.10.0 Netmask 255.255.255.0 (/24) Broadcast 100.10.10.255 Gateway 100.10.10.1 DHCP Lower Bound 100.10.10.2 DHCP Upper Bound 100.10.10.254
- Subnet – Blue
- One switch – Ethernet switch
- Two client machines – VPCS
- Minimize wasted address space for 100 hosts
Network Information Network 200.20.20.0 Netmask 255.255.255.128 (/25) Broadcast 200.20.20.127 Gateway 200.20.20.1 DHCP Lower Bound 200.20.20.2 DHCP Upper Bound 200.20.20.126
- Subnet – Gray
- One DHCP server – Ubuntu Server / Windows Server / Tiny Core / MikroTik CHR
NOTE: This example will use 150.30.30.5 as the server’s static IP address.
- Minimize wasted address space for 10 hosts
Network Information Network 150.30.30.0 Netmask 255.255.255.240 (/28) Broadcast 150.30.30.15 Gateway 150.30.30.1
- One DHCP server – Ubuntu Server / Windows Server / Tiny Core / MikroTik CHR
- Subnet – Red
- Add a MikroTik router to the workspace
- Connect all three networks to the router
- Configure the router with static IP addresses on all active interfaces (Chapter 16, Phase II, Step 4)
NOTE: This example uses the following router ports:
– ether1 -> Red LAN
– ether2 -> Blue LAN
– ether3 -> Gray LAN
- Label and organize your network as necessary
Figure 2 – Final network topology
Since the server is not in the same network as our clients, the router needs to serve as a relay point for the “DHCP Discover” packets.
- Setup the relay
- Open the MikroTik console
- Configure the Red subnet’s relay path
> ip dhcp-relay add name=Red-Relay interface=ether1 dhcp-server=150.30.30.5 local-address=100.10.10.1 disabled=no
Command Description ip dhcp-relay Access the DHCP relay menu. add name=Red-Relay Name this group of configuration settings “Red-Relay”. interface=ether1 Assign the ether1 interface to listen for DHCP requests. dhcp-server=150.30.30.5 DHCP request packets will forwarded to 150.30.30.5. local-address=100.10.10.1 DHCP response packets will arrive with the address 100.10.10.1. disabled=no The default setting is to disable configurations unless otherwise specified. - Configure the Blue subnet’s relay path
> ip dhcp-relay add name=Blue-Relay interface=ether2 dhcp-server=150.30.30.5 local-address=200.20.20.1 disabled=no
NOTE: Don’t forget to disable the DHCP client that is listening by default on ether1!
> ip dhcp-client remove 0
- Verify that the router’s settings are configured properly (Figure 3)
> ip address print
> ip dhcp-relay print
We are going to configure our DHCP server in a similar fashion as we’ve done in previous labs.
ALWAYS MAKE A BACKUP! In the following section and the chapters going forward, rewriting configuration files will be commonplace. Whether or not you are someone who makes mistakes, it is always good practice to make backup copies of everything you change. When something goes wrong (and it will), you will be thankful for having these.
Create a backup folder in your home directory:
> mkdir ~/backups
Verify the directory was created:
> ls ~ | grep backups
Copy an existing file to the directory:
> cp /path/to/file/example.txt ~/backups
Verify the backup was made:
> ls ~/backups
If you ever need to restore your backup:
> cp ~/backups/example.txt /path/to/file
- Start the Ubuntu Server VM
- Configure the server to have a static host address (Figure 4)
> sudo vi /etc/netplan/00-installer-config.yaml
> sudo netplan apply
NOTE: Ensure that the server’s IP is NOT the same address as its gateway and is WITHIN the range of available hosts for your subnet! Also, notice that the configuration provided includes the addition of a default gateway. This is important for the server to know how to respond to DHCP request packets. Check if you have a default route set in your server:
> ip route
Figure 5 – Server default gateway The above image illustrates that the enp0s3 interface is assigned the address 150.30.30.5 on the 150.30.30.0/24 network with a gateway address pointing towards 150.30.30.1.
- Modify the DHCP daemon configuration file to support all three subnets (Figure 6)
> sudo vi /etc/dhcp/dhcpd.conf
NOTE: Declare the Gray subnet. Although there are no clients to service here, it is good practice to help the server understand the layout of our network.
- Ensure that the daemon is enabled and active (Figure 7)
With the router configured and the DHCP server running, all that is left is to connect devices to see if everything works.
- Start capturing packets on the PC1-Relay connection
- In PC1’s terminal, request a new IP address
NOTE: If using a Tiny Core VM, it should automatically request an IP address at startup.
- Look for the DHCP broadcast packets on Wireshark (you should see the same packets from when you completed the DHCP labs)
- You can check the VPCS’s assigned IP address in its console
> show ip
- If you want to see more traffic, just add more end devices or renew current leases
- In PC1’s terminal, request a new IP address
- Repeat for the Blue clients
- Ensure that all three subnets can ping each other and have full connectivity
There are many moving pieces in this lab and future labs. You might have to do some troubleshooting. Here are some tips offered by our testers.
RTFQ (Read the “Full” Question): This trips up a lot of people. There are many devices, many IP addresses, many different commands. Whether it be configuring Windows, Linux, or GNS3, it is easy to slip up. Read slowly and the lab will work.
SERVER TROUBLESHOOTING: Testers have found that simply restarting the service resolved many of the common errors you many encounter.
> systemctl restart example.service
However, if a problem persists, you can check the logs for a more detailed explanation:
> journalctl -xeu example.service
or…
> journalctl _PID=1234
Obviously replace “example.service” and “1234” with the appropriate service name/process identifier of the daemon you are trying to troubleshoot.
TYPOS: From personal experience, most errors have typically stemmed from hard-to-catch typos. For example, subnet looks a lot like subent at a glance. Step away and come back later with a fresh mind.
MISCONFIGURED IP ADDRESSES: Does ping not work? Try not to get frustrated. Check, double check, and triple check that your IP addresses and subnet masks all make sense!!! Remember, no client can have an IP address ending in “.0” and no two machines can have the same addresses. Also, ensure that the addresses you are assigning to your hosts are within the range of your subnet! A /29 network cannot accommodate for the same number of machines as a /24 network.
REBOOT: If all else fails, try rebooting the system. GNS3, VirtualBox, and different OSs can really tax your bare-metal host machine. Sometimes a reboot can help clear up an odd issue.
MOST IMPORTANTLY… do not skip over errors. Read them carefully. If things are not working as they are supposed to, go back to a previous lab where you were successful and think about how you were able to make it work previously.
End of Lab
Three screenshots are required to receive credit for this exercise
- Screenshot of GNS Workspace with all equipment labeled
- Screenshot of Wireshark DHCP
- LAN1 end devices requesting and receiving IP addresses
- LAN2 end devices requesting and receiving IP addresses
Assignment 1 – Add another network
- Use a randomly generated IP address space
- Minimize wasted address space for 500 hosts
- Connect it to the Relay
- Make sure to change the router settings and DHCP server appropriately
- Label and organize your network as necessary
- RECOMMENDED GRADING CRITERIA
- Screenshot of GNS3 environment with every device labeled
- Screenshot of Wireshark showing DHCP handshake from a device on the new network
- Screenshot of the updated DHCP daemon configuration file
Assignment 2 – Add two networks
- Same as Assignment 1 but with two networks
List of Figures for Print Copy
Доброго дня!
Подскажите, у меня есть:
1) DHCP сервер на Win 2008r2 с пулом 10.0.100.0/24 и дополнительной областью 10.0.101.0/24
2) CAPsMAN, пользователей которого хочу отправить в до. сеть
Тестирую на животине 951Ui-2HnD (6.40.1), конфиг внизу.
Операция вроде бы не сложная, перечитал кучу мануалов, делал по разному и через DHCP-relay и через DHCP сервер с указанием relay, но не выдает адреса и ничего не пишет ни в логах микротика ни сервера…
Подскажите, где может быть проблема?
/interface bridge
add name=Wi-Fi
add fast-forward=no name=bridge1
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no mode=ap-bridge \
wireless-protocol=802.11
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=\
dynamic-keys supplicant-identity=MikroTik wpa-pre-shared-key=1234QWer \
wpa2-pre-shared-key=1234QWer
/interface bridge port
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
add bridge=bridge1 interface=wlan1
/ip address
add address=10.0.101.1/24 interface=bridge1 network=10.0.101.0
add address=10.0.100.244/24 interface=ether1 network=10.0.100.0
/ip dhcp-client
add dhcp-options=hostname,clientid interface=ether1
/ip dhcp-relay
add delay-threshold=6h dhcp-server=10.0.100.5 disabled=no interface=bridge1 \
local-address=10.0.101.1 name=relay1
/ip dhcp-server network
add address=10.0.100.0/24 gateway=10.0.100.140 netmask=24
/ip dns
set allow-remote-requests=yes servers=10.0.100.5,10.10.1.160
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=10.0.100.1 pref-src=10.0.100.244
П.С. После обновления до последней версии посыпались запросы на сервер, но ответов не получает.
Скриншот ЛОГОВ:
-
-
RackKing
Member
- Posts: 380
- Joined: Wed Oct 09, 2013 1:59 pm
Mikrotik router with Windows Server DHCP Server?
Thu May 23, 2019 3:01 pm
Hi,
Question — I have a Tik router connected behind a sonicwall router running a 192.168.33.1/24 network. There is a Windows server running DHCP on that network at 192.168.33.6. I want to get clients connected to my Tik to pick up and address from that HDCP server at 192.168.33.6
— ISP >> Sonicwall >> to Mikrotik Ether 1 with an address of 192.168.33.5 specified.
— Windows DHCP server >> Switch >> Sonicwall. All the clients connected to the switch pick up an 192.168.33.x network address properly from the HDCP server
How can I let other clients connected to/beind my mikrotik to see that Windows DHCP server? Is this situation where I need to use DHCP relay? I did not think so because they are ton the same network segment, but the mikrotik is stopping broadcast traffic to the sonicwall network? I feel like I am doing something silly to not make this work.
Thanks
-
sindy
Forum Guru
- Posts: 11558
- Joined: Mon Dec 04, 2017 9:19 pm
Re: Mikrotik router with Windows Server DHCP Server?
Thu May 23, 2019 10:12 pm
The DHCP server needs to be visible to the DHCP client at L2 (bridged, switched) level. So if your Mikrotik is routing rather than switching between the interface connected to the sonicwall & windows server and the interface(s) to which your other devices are connected, the DHCPDISCOVER from those «other devices» cannot reach the server.
So if you want those devices to be in the same IP subnet like the Mikrotik itself, you need to make all the interfaces of the Mikrotik member ports of the same bridge; if you want them to be in a different subnet, setting up a DHCP relay on the Mikrotik is just one part of the task; the other one is to configure the DHCP server to provide different settings for these clients as they need IP addresses from a different pool matching the subnet, probably a different netmask, and definitely a different gateway address.
-
anav
Forum Guru
- Posts: 23538
- Joined: Sun Feb 18, 2018 11:28 pm
- Location: Nova Scotia, Canada
- Contact:
Re: Mikrotik router with Windows Server DHCP Server?
Thu May 23, 2019 10:39 pm
Seems overly complicated or at least disjointed.
Without a full understanding of the network an optimal design/setup is not possible by guessing.
Is the Sonicwall doing all the routing?
Is the MT simply a managed switch?
Have you thought of using VLANS?
