Community discussions

MikroTik App
 
m1nkman
just joined
Topic Author
Posts: 1
Joined: Thu Sep 10, 2015 8:49 pm

VAP and VLANs

Fri Sep 11, 2015 3:58 am

I know this subject has been been discussed at length, but I've read through a number of the previous discussions and to no avail. I need help with VAP and VLANs on a RB951G-2HnD running v6.32.

The goal:
Port 1 - Trunk to Dell PowerEdge allowing tagged VLANs 1,3 & 4
Port 2 - Hybrid VLAN 1(untagged), allowing VLANs 3 & 4 tagged
Port 3,4 5 - Access port VLAN 1 untagged
wlan1 - Access port to VLAN1 untagged
vap - Access port to VLAN3 untagged, preferably with a hotspot.

I've got the wired ports working. wlan1 is also working. I'm getting nowhere with the VAP.

Configuration:
/interface bridge
add admin-mac=4C:5E:0C:F5:D2:A3 auto-mac=no name=bridge-local
add name=vlan3
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce disabled=no distance=indoors frequency=auto l2mtu=1600 mode=ap-bridge ssid=ramirez \
    wds-default-bridge=bridge-local wireless-protocol=802.11
add disabled=no l2mtu=1600 mac-address=4E:5E:0C:F5:D2:A7 master-interface=wlan1 name=wlan_vlan3 ssid=macleod wds-default-bridge=bridge-local
/interface ethernet
set [ find default-name=ether2 ] master-port=ether1
set [ find default-name=ether3 ] master-port=ether1
set [ find default-name=ether4 ] master-port=ether1
set [ find default-name=ether5 ] master-port=ether1
/interface vlan
add comment=vlan3 interface=ether1 l2mtu=1594 name=ether1.3 vlan-id=3
/ip neighbor discovery
set ether1.3 comment=vlan3
/interface ethernet switch port
set 0 default-vlan-id=1 vlan-header=add-if-missing vlan-mode=secure
set 1 default-vlan-id=1 vlan-header=always-strip vlan-mode=secure
set 2 default-vlan-id=1 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=1 vlan-header=always-strip vlan-mode=secure
set 4 default-vlan-id=1 vlan-header=always-strip vlan-mode=secure
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk wpa-pre-shared-key=MikroTik wpa2-pre-shared-key=MikroTik
/ip pool
add name=vlan3_pool1 ranges=10.20.30.100-10.20.30.150
/ip dhcp-server
add address-pool=vlan3_pool1 disabled=no interface=vlan3 name=vlan3_dhcp src-address=10.20.30.18
/interface bridge port
add bridge=bridge-local interface=ether1
add bridge=bridge-local interface=wlan1
add bridge=vlan3 interface=ether1.3
add bridge=vlan3 interface=wlan_vlan3
/interface ethernet switch vlan
add independent-learning=yes ports=ether1,ether2,ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=1
add independent-learning=yes ports=ether1,ether2,switch1-cpu switch=switch1 vlan-id=3
add independent-learning=yes ports=ether1,ether2,switch1-cpu switch=switch1 vlan-id=4
/ip address
add address=192.168.88.1/24 comment="default configuration" disabled=yes interface=ether1 network=192.168.88.0
add address=10.20.30.18/24 interface=vlan3 network=10.20.30.0
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid disabled=no interface=bridge-local
/ip dhcp-server network
add address=10.20.30.0/24 dns-server=10.20.30.1 gateway=10.20.30.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=established,related
add action=fasttrack-connection chain=forward comment="default configuration" connection-state=established,related
add chain=forward comment="default configuration" connection-state=established,related
add action=drop chain=forward comment="default configuration" connection-state=invalid
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" disabled=yes out-interface=ether1
/ip service
set telnet disabled=yes
/system clock
set time-zone-name=America/New_York
/system leds
set 0 interface=wlan1
/system package update
set channel=current
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=wlan1
add interface=bridge-local
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
add interface=wlan1
add interface=bridge-local
/tool romon port
add


Any pointers would be greatly appreciated.

Thanks,
Ken

Who is online

Users browsing this forum: Ahrefs [Bot] and 12 guests