Hi,
I would like to use my hapac2 router to have following configuration,
ether1 → connects to the ISP (not available yet)
lte1 → connects to the internet
ether2 → with Ip address in subnet 192.168.110.1/24 to be used only for router managment
ether3 → work as VLAN 30 (VIP) with DHCP range 10.30.30.1/24
ether4 → work as VLAN 40 (ROOMMATE) with DHCP range 10.40.40.1/24
ether5 → work as Trunk port for VLAN30, VLAN40, VLAN99(GUEST) (which does not have dedicated ether port, but has dedicated wireless)
wlan3 (virtual wlan derived from physical wlan1 via CAPSMAN) to have ssid:vip24
wlan4 (virtual wlan derived from physical wlan1 via CAPSMAN) to have ssid:rmt24
wlan5 (virtual wlan derived from physical wlan1 via CAPSMAN) to have ssid:gst24
wlan6 (virtual wlan derived from physical wlan2 5Ghz via CAPSMAN) to have ssid:vip50
wlan7 (virtual wlan derived from physical wlan2 5Ghz via CAPSMAN) to have ssid:rmt50
wlan8 (virtual wlan derived from physical wlan2 5Ghz via CAPSMAN) to have ssid:gst50
so another vlan VLAN 99 (GUEST) which does not have any designated etherport on the router except the wlan8 and wlan5 should be available on the Trunk (ether5) as well
I want to use internal Switch VLAN configuration for ether ports in addition I want VLANS
to be accessible on the different wlan interfaces (gst,rmt,vip).
Anyways I failed to implement VLAN on the ether interfaces, all the VLANS should have access to the internet and must not talk to each other.
But in my case none of them worked, no correct IP address assigning for different port no access to the internet on any ether3,4,5 port.
By the way I would like to know why I connect to ether3,ether4,ether5 I do not get correct IP address assigned and there is no internet,.
In addition what would be the assigned IP address if I connect to the ether5 (Trunk) port?
Below I have attached the configuration,
Any guide at any part is really appreciated
# 2024-08-03 00:11:38 by RouterOS 7.15.3
# software id = 2LGH-Q5N6
#
# model = RBD52G-5HacD2HnD
# serial number = 8FDE097B20A9
/interface bridge
add admin-mac=B8:69:F4:1B:F5:3F auto-mac=no comment=defconf name=bridgeLocal vlan-filtering=yes
/interface wireless
# managed by CAPsMAN
set [ find default-name=wlan1 ] ssid=MikroTik
# managed by CAPsMAN
set [ find default-name=wlan2 ] ssid=MikroTik
/interface vlan
add comment="vlan30-vip-ether3-ether5(trunk)" interface=ether5 name=vlan30 vlan-id=30
add comment="vlan40-rmt-ether4-ether5(trunk)" interface=ether5 name=vlan40 vlan-id=40
add comment="vlan99-gst-etherX-ether5(trunk)" interface=ether5 name=vlan99 vlan-id=99
/interface ethernet switch port
set 2 default-vlan-id=30 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=40 vlan-header=always-strip vlan-mode=secure
set 4 default-vlan-id=0 vlan-header=add-if-missing vlan-mode=secure
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=10.30.30.2-10.30.30.254
add name=dhcp_pool1 ranges=10.40.40.2-10.40.40.254
add name=dhcp_pool2 ranges=10.99.99.2-10.99.99.254
/interface bridge port
add bridge=bridgeLocal comment=defconf interface=ether3 pvid=30
add bridge=bridgeLocal comment=defconf interface=ether4 pvid=40
add bridge=bridgeLocal comment=defconf interface=ether5
/interface ethernet switch vlan
add independent-learning=no ports=ether5,ether3 switch=switch1 vlan-id=30
add independent-learning=no ports=ether5,ether4 switch=switch1 vlan-id=40
add comment="add wlan later to this switch since the guest does not have any physical interface and only wlan" independent-learning=no ports=ether5 \
switch=switch1 vlan-id=99
/interface list member
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=lte1 list=WAN
add interface=ether1 list=WAN
/interface wireless cap
#
set bridge=bridgeLocal discovery-interfaces=bridgeLocal enabled=yes interfaces=wlan1,wlan2
/ip address
add address=10.30.30.1/24 interface=vlan30 network=10.30.30.0
add address=10.40.40.1/24 interface=vlan40 network=10.40.40.0
add address=10.99.99.1/24 interface=vlan99 network=10.99.99.0
/ip dhcp-client
add comment=defconf interface=bridgeLocal
add interface=ether1
/ip dhcp-server
add address-pool=dhcp_pool0 interface=vlan30 name=dhcp1
add address-pool=dhcp_pool1 interface=vlan40 name=dhcp2
add address-pool=dhcp_pool2 interface=vlan99 name=dhcp3
/ip dhcp-server network
add address=10.30.30.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.30.30.1
add address=10.40.40.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.40.40.1
add address=10.99.99.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.99.99.1
/ip firewall nat
add action=masquerade chain=srcnat
/system clock
set time-zone-name=Europe/Stockholm
/system note
set show-at-login=no
/system routerboard settings
set auto-upgrade=yes