Ubiquiti Cluster & rb750 setup

I have an adsl line coming into the rb750 and I have 4 nanostations on the other 4 ports. I need to setup each port on the rb750 to hand out ips from each dhcp server on the interface. So that I know which AP a client is on if they have problems.

I can only seem to get the first ap working on the rb750. It has dhcp server enabled and passing traffic and has active clients on it, but I can’t get the other 3 ports to work, even setting them up the same except for the ip address and dhcp range that i need.

Can anyone try and help me with this? I’m using 4.3 ROS…

thanks

Did you remove the default configuration and start from scratch or build on it?

Because the default config slaves ethernet ports 3, 4, and 5 to port 2. You need to remove that from the configuration to use them independently.

Tom

I did keep the default config, and built on it. But the master ports, I changed all of them to NONE. But you know what, I didn’t try the setup after I changed that… what a big dummy… Let me try that later on today and we’ll see. Thanks ROC… :smiley:

Quick questios. On your adsl line are you using a pbublic or private IP. Also you want a seperate dhcp scheme for each of the ports that you have your Ubiquitis connected to. Is this correct? I have this working already and I will send you a script that should work with some minor modifications. Its Thanksgiving and I am feeling thankful.

-Brian

Here is working configuration in my lab

; RB750
; Remove default configuration
; Winbox open new termial on left side of screen
; /system reset-config
; RB750 should reboot. Log back in using winbox. Ensure PC is plugged into Ethernet port 2
; Open terminal and it will ask to remove default config. Answer yes
; Assumption: Ethernet Port 1 will using a static public IP to backbone
;             Ethernet port 2 -5 NAT 
; Use DHCP pool range xxx.xxx.xxx.25 - xxx.xxx.xxx.200
; Maybe use static IP for Ubiquiti LAN and WLAN??? Not sure AP router or bridge
;
;
;Lab Test Router Setup

/ip address 
add address=136.138.60.220/29 network=136.138.60.216 broadcast=136.138.60.223 \
    interface=ether1 comment="" disabled=no 
add address=192.168.2.1/24 network=192.168.2.0 broadcast=192.168.2.255 \
    interface=ether2 comment="" disabled=no 
add address=192.168.3.1/24 network=192.168.3.0 broadcast=192.168.3.255 \
    interface=ether3 comment="" disabled=no
add address=192.168.4.1/24 network=192.168.4.0 broadcast=192.168.4.255 \
    interface=ether4 comment="" disabled=no
add address=192.168.5.1/24 network=192.168.5.0 broadcast=192.168.5.255 \
    interface=ether5 comment="" disabled=no

/ip route
add comment="default route" disabled=no distance=1 dst-address=0.0.0.0/0 \
    gateway=136.138.60.217 scope=30 target-scope=10


/snmp 
set enabled=yes contact="support@getalife.com" location="lab-test-rtr1" 
/ snmp community 
add name="go4it" address=0.0.0.0/0 read-access=yes 

/ip dns
set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB \
    max-udp-packet-size=512 primary-dns=136.138.32.37 secondary-dns=\
    136.138.32.45


/ system ntp client 
set enabled=yes mode=unicast primary-ntp=136.138.0.75 secondary-ntp=0.0.0.0 

/ system identity 
set name="lab-test-rtr1" 

# Protect your RouterOs router
/ ip firewall filter
add chain=input connection-state=invalid action=drop \
comment="Drop Invalid connections"
add chain=input connection-state=established action=accept \
comment="Allow Established connections"
add chain=input protocol=udp action=accept \
comment="Allow UDP"
add chain=input protocol=icmp action=accept \
comment="Allow ICMP"
add chain=input src-address=136.138.0.0/18 action=accept \
comment="Allow access to router from lab network"
add chain=input action=drop comment="Drop anything else"

# Protecting the Customer's Network
/ip firewall filter
add chain=forward protocol=tcp connection-state=invalid \
action=drop comment="drop invalid connections"
add chain=forward connection-state=established action=accept \
comment="allow already established connections"
add chain=forward connection-state=related action=accept \
comment="allow related connections"


/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" disabled=\
    no out-interface=ether1
    
/ip pool
add name=dhcp_pool2 ranges=192.168.2.25-192.168.2.200
add name=dhcp_pool3 ranges=192.168.3.25-192.168.3.200
add name=dhcp_pool4 ranges=192.168.4.25-192.168.4.200
add name=dhcp_pool5 ranges=192.168.5.25-192.168.5.200

/ip dhcp-server
add address-pool=dhcp_pool2 authoritative=after-2sec-delay bootp-support=\
    static disabled=no interface=ether2 lease-time=3d name=dhcp2 relay=\
    192.168.2.1
add address-pool=dhcp_pool3 authoritative=after-2sec-delay bootp-support=\
    static disabled=no interface=ether3 lease-time=3d name=dhcp3 relay=\
    192.168.3.1
add address-pool=dhcp_pool4 authoritative=after-2sec-delay bootp-support=\
    static disabled=no interface=ether4 lease-time=3d name=dhcp4 relay=\
    192.168.4.1
add address-pool=dhcp_pool5 authoritative=after-2sec-delay bootp-support=\
    static disabled=no interface=ether5 lease-time=3d name=dhcp5 relay=\
    192.168.5.1
/ip dhcp-server config
set store-leases-disk=5m
/ip dhcp-server network
add address=192.168.2.0/24 comment="" gateway=192.168.2.1
add address=192.168.3.0/24 comment="" gateway=192.168.3.1
add address=192.168.4.0/24 comment="" gateway=192.168.4.1
add address=192.168.5.0/24 comment="" gateway=192.168.5.1

DSL is public ip but dynamic… Yes, COW you are correct, separate scheme for each eth port for each wireless ap connected to it… I will try your script here shortly and let you know later how it works for me. Thanks for taking the time to assist… I must have had it right because I read over your “notes” and I did exactly what you wrote to do, but as I stated in my previous post, I still had ports 3, 4 and 5 slaved to 2 and I removed that and didn’t test it afterwards… lol

will try here shortly, thanks again…

You are welcome. I will add to the script to ensure the switch ports are not set to slave.
I updated the script for dhcp client on ether1 and the default route change.

-Brian

Lab Test Router Setup
;
; Uncomment the following line if using dhcp on eth1
;/ip dhcp-client add interface=ether1 disabled=no

/ip address 
; Comment out the following two lines if using dhcp on ether1
add address=136.138.60.220/29 network=136.138.60.216 broadcast=136.138.60.223 \
    interface=ether1 comment="" disabled=no 
---snip---
/ip route
; Comment out the following two lines if usinging dhcp client on ether1 
add comment="default route" disabled=no distance=1 dst-address=0.0.0.0/0 \
    gateway=136.138.60.217 scope=30 target-scope=10
; Comment out the following two lines if you are using dhcp client on ether1
; This will work for either dhcp or static. The above is used for clarity   
;add comment="default route" disabled=no distance=1 dst-address=0.0.0.0/0 \
;   gateway=ether1 scope=30 target-scope=10
---snip-----

thanks again…

I did set this up “your way” and I did have everything setup correctly, except, I forgot to mention that I have hotspot setup on each interface in case someone tries to connect to one of the ap’s, and I can’t get the hotspot to pass traffic via eth1 (gateway port) from either of the other 4 ports..

When trying to login via the hotspot I get an error, no ip available from pool. And I used everything in your script and then setup the hotspot on my own for each port…

ever seen this before?