But now I have a special controller:
1. can not be setup by static ip, only just by DHCP
2. must be on the same lan to provide services
3. no vlan support
4. need access 192.168.123.1 to internet
I already have another DHCP Server for lan 192.168.21.x on bridge-lan.
I bridged this eth1 and eth5 interface and setup a DHCP server on eth5.vlan interface. I think "bridge" could make both interfaces communicate each other.
But now I just could get ip from vlan interface eth5 , but no ip from the interface eth1 without vlan.
What's wrong with me? how to separate two DHCP server for different lan and vlan. Is it possible both interfaces getting ip from one DHCP server?
please help!
Code: Select all
# jun/14/2022 19:46:56 by RouterOS 7.3.1
#
# model = RB5009UG+S+
/interface bridge
add igmp-snooping=yes ingress-filtering=no multicast-querier=yes name=\
bridge-lan vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name=eth1
set [ find default-name=ether5 ] name=eth5
set [ find default-name=ether8 ] name=eth8
/interface vlan
add interface=eth5 name=vlan123 vlan-id=123
/ip pool
add name=lan-dhcp-pool-21 ranges=192.168.21.201-192.168.21.250
add name=lan-dhcp-pool-123 ranges=192.168.123.50-192.168.123.254
/ip dhcp-server
add address-pool=lan-dhcp-pool-21 interface=bridge-lan name=lan-dhcp
add address-pool=lan-dhcp-pool-123 interface=vlan123 name=vlan-123-wifi_dhcp
/interface pppoe-client
add disabled=no interface=eth8 keepalive-timeout=30 name=pppoe password=xxx profile=pppoe-profile user=xxx
/interface bridge port
add bridge=bridge-lan interface=eth1 pvid=123
add bridge=bridge-lan interface=eth5
/interface bridge vlan
add bridge=bridge-lan untagged="eth5,xxx" vlan-ids=1
add bridge=bridge-lan tagged=eth5 untagged=bridge-lan,eth1 vlan-ids=123
/ip address
add address=192.168.21.1/24 interface=bridge-lan network=192.168.21.0
add address=192.168.123.1/24 interface=vlan123 network=192.168.123.0
/ip dhcp-server network
add address=192.168.21.0/24 dns-server=114.114.115.115,223.6.6.6 gateway=192.168.21.1
add address=192.168.123.0/24 dns-server=114.114.115.115,223.6.6.6 gateway=192.168.123.1