galaxynet
Thanks !.
Finally I have it with routing !
For the rest of us who are trying to do something like this, the "hard route" way here is my solution:
Hardware:
Public Internet - AP RB 133 - RF UBIQUITY 5Ghz card - Antenna
Antenna - RF UBIQUITY 5Ghz card - STATION RB 133 - Client PC
RB 133 has 3 Ethernet interfaces and 1 Wlan
RB 133C has 1 Ethernet and 1 Wlan.
Public Internet is on ether2 interface of AP
Client PC is on ether1 interface on Station
I will show only the prints of the results not the actual commands to configure the RB.
- Set up IP Addresses and Networks
on AP (In my case Internet ISP gave me a Public IP Address (Here I refer to it as PUBLIC_IP_ADD, with PUBLIC_IP_GW on
Network PUBLIC_IP_NET you can change
this to your Public IP Address, later I will try with dynamic PPPOE in case of DSL modem).
ON AP:
[admin@MikroTik] interface> print
Flags: X - disabled, D - dynamic, R - running
NAME TYPE RX-RATE TX-RATE MTU
0 R ether1 ether 0 0 1500
1 R ether2 ether 0 0 1500
2 R ether3 ether 0 0 1500
3 AP wlan 0 0 1500
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK BROADCAST INTERFACE
0 ;;; added by setup
192.168.3.1/28 192.168.3.0 192.168.3.15 ether1
1 192.168.3.49/28 192.168.3.48 192.168.3.63 AP
2 PUBLIC_IP_ADD/28 PUBLIC_IP_NET PUBLIC_IP_BROAD ether2
3 192.168.4.2/28 192.168.4.0 192.168.4.15 ether3
2. Set up IP addresses on Station (I used the same network for both Wlan interfaces AP and Station
192.168.3.48/28).
ON STATION:
[admin@MikroTik] interface> print
Flags: X - disabled, D - dynamic, R - running
NAME TYPE RX-RATE TX-RATE
MTU
0 R ether1 ether 0 0
1500
1 R To-AP wlan 0 0
1500
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK BROADCAST INTERFACE
0 ;;; added by setup
192.168.3.50/28 192.168.3.48 192.168.3.63 To-AP
1 192.168.3.65/28 192.168.3.64 192.168.3.79 ether1
3. Configure Wireless interfaces compatible on AP and STATION, I used ap-bridge mode on
AP and station mode on STATION. (In my case since the link is long range I enabled only
rates up to 12 Mbps because of Ubiquity RF sensitivity is better, later will try more...).
ON AP:
[admin@MikroTik] interface wireless> print
Flags: X - disabled, R - running
0 name="AP" mtu=1500 arp=enabled
disable-running-check=no interface-type=Atheros AR5413
mode=ap-bridge ssid="test" area=""
frequency-mode=manual-txpower country=no_country_set antenna-gain=0
frequency=5805 band=5ghz scan-list=default rate-set=configured
supported-rates-a/g=6Mbps,9Mbps,12Mbps basic-rates-a/g=6Mbps
max-station-count=2007 ack-timeout=dynamic tx-power-mode=default
noise-floor-threshold=default periodic-calibration=default
periodic-calibration-interval=60 burst-time=disabled dfs-mode=none
antenna-mode=ant-a wds-mode=disabled wds-default-bridge=none
wds-default-cost=100 wds-cost-range=50-150 wds-ignore-ssid=no
update-stats-interval=disabled default-authentication=yes
default-forwarding=yes default-ap-tx-limit=0
default-client-tx-limit=0 proprietary-extensions=post-2.9.25
hide-ssid=no security-profile=default disconnect-timeout=3s
on-fail-retry-time=100ms preamble-mode=both compression=no
allow-sharedkey=no
ON STATION:
admin@MikroTik] interface wireless> print
Flags: X - disabled, R - running
0 R name="To-AP" mtu=1500 arp=enabled
disable-running-check=no interface-type=Atheros AR5413
mode=station ssid="test" area=""
frequency-mode=manual-txpower country=no_country_set
antenna-gain=0
frequency=5805 band=5ghz scan-list=default rate-set=configured
supported-rates-a/g=6Mbps,9Mbps,12Mbps basic-rates-a/g=6Mbps
max-station-count=2007 ack-timeout=dynamic tx-power-mode=default
noise-floor-threshold=default periodic-calibration=default
periodic-calibration-interval=60 burst-time=disabled
dfs-mode=none
antenna-mode=ant-a wds-mode=disabled wds-default-bridge=none
wds-default-cost=100 wds-cost-range=50-150 wds-ignore-ssid=no
update-stats-interval=disabled default-authentication=yes
default-forwarding=yes default-ap-tx-limit=0
default-client-tx-limit=0
proprietary-extensions=post-2.9.25 hide-ssid=no
security-profile=default disconnect-timeout=3s
on-fail-retry-time=100ms
preamble-mode=both compression=no allow-sharedkey=no
[admin@MikroTik] interface wireless>
4. Configure Routing tables on AP and STATION (here is the FUN) :
ON AP:
[admin@MikroTik] ip> route
[admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 192.168.3.0/28 192.168.3.1 ether1
1 ADC 192.168.3.48/28 192.168.3.49 AP
2 ADC 192.168.4.0/28 192.168.4.2 ether3
3 ADC PUBLIC_IP_NET/28 PUBLIC_IP_ADD ether2
4 A S 0.0.0.0/0 r PUBLIC_IP_GW ether2
5 S 0.0.0.0/0 PUBLIC_IP_ADD r PUBLIC_IP_GW ether2
ON STATION:
admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 192.168.3.48/28 192.168.3.50 To-AP
1 ADC 192.168.3.64/28 192.168.3.65 ether1
2 A S 0.0.0.0/0 r 192.168.3.49 To-AP
[admin@MikroTik] ip route>
-
Configure NAT Masquerading on AP and STATION:
ON BOTH AP AND STATION:
[admin@MikroTik] ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade
-
If you like add DNS server address to both AP and STATION.
[admin@MikroTik] ip dns> print
primary-dns: xxx.xxx.xxx.xxx (Here is the DNS IP address given to you by your ISP)
secondary-dns: 0.0.0.0
allow-remote-requests: no
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 17KiB
[admin@MikroTik] ip dns>
ENJOY IT, your client PC connected to STATION on ether1 should have an IP address on
the same network as ether1, I used IP address 192.168.3.67 Gateway 192.168.3.65 Mask
255.255.255.240 and enabled DNS with the DNS IP addr provided by your ISP.
What is next:
a. try to use Dynamic IP with PPOE on Public Internet
b. try to use DHCP on all the network.
c. RF part test long range with NSTREME instead of AP-Station mode.
d. Use DDNS to discover AP so can be managed remotely