Community discussions

MikroTik App
 
ashank
just joined
Topic Author
Posts: 14
Joined: Sun Oct 18, 2009 11:07 pm

pounding my head against my mikrotik

Wed Oct 21, 2009 11:41 pm

Can anyone help me with this setup. I am trying to figure out what is going wrong but neither the wiki or the forums are helping.

I've got an existing gateway router at 192.168.1.1 and I am trying to setup a routed wireless link from a rb433 to a rb411 to a pc that needs to be on a different subnet (169.254.0.x) PC must end up at 169.254.0.3.

My rb433 is connected to gateway with ether1 at 192.168.1.27 (dhcp). This is my current setup and it is not working at all. The only minimal success i have had is by setting up a WDS link between the 433 and 411. but after i have that setup, i can't figure out to make a routed link from the 192.168.1.x subnet to the 169.254.0.x subnet.

this print is from my rb433
[admin@5ghz_link] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 D 192.168.1.27/24 192.168.1.0 192.168.1.255 ether1
1 169.254.0.1/24 169.254.0.0 169.254.0.255 wds-bridge

[admin@5ghz_link] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 169.254.0.0/24 169.254.0.1 wds-bridge 0
1 ADC 192.168.1.0/24 192.168.1.27 ether1 0

[admin@5ghz_link] > ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=dstnat action=dst-nat to-addresses=169.254.0.254
dst-address=192.168.1.27

1 chain=srcnat action=src-nat to-addresses=192.168.1.27
src-address=169.254.0.254

[admin@5ghz_link] > ip dhcp-server print
Flags: X - disabled, I - invalid
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
0 dhcp1 wds-bridge dhcp_pool2 3d


My RB411 is setup like:
[admin@5ghz_station] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 D 169.254.0.254/24 169.254.0.0 169.254.0.255 wds bridge

[admin@5ghz_station] > ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 X chain=dstnat action=dst-nat to-addresses=169.254.0.3
dst-address=192.168.1.29

1 X chain=srcnat action=src-nat to-addresses=192.168.1.29
src-address=169.254.0.3

[admin@5ghz_station] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADS 0.0.0.0/0 169.254.0.1 0
1 ADC 169.254.0.0/24 169.254.0.254 wds bridge 0


I would be greatful for any help to get me pointed in the right direction. I've been able to ping to 169.254.0.1 at the rb433 side of the wds bridge but no further.

thanks,
 
User avatar
nz_monkey
Forum Guru
Forum Guru
Posts: 2104
Joined: Mon Jan 14, 2008 1:53 pm
Location: Over the Rainbow
Contact:

Re: pounding my head against my mikrotik

Thu Oct 22, 2009 4:38 am

Ok my suggestion would be this.

Bridge WLAN1 and ETH1 on your RB433
Set RB411 WLAN1 in to Station Mode
Set 192.168.1.x address on WLAN1 interface of RB411 e.g. 192.168.1.253
Set default gateway on RB411 to 192.168.1.1
Set 169.254.0.0/24 address on to ETH1 of RB411
Enable DHCP server on RB411's ETH1 interface
Add route to 169.254.0.0/24 via 192.168.1.253 on your 192.168.1.1 router

It will basically mean that your client behind the RB411 will get a 169.254.0.x address, the RB411 will then route traffic from this to the 192.168.1.x range, and if it is not inside this range will route it to 192.168.1.1. The 192.168.1.1 will need a route to 169.254.0.0/24 via the RB411 so it knows the return path.

I hope this helps.


Regards,




Andrew
 
ashank
just joined
Topic Author
Posts: 14
Joined: Sun Oct 18, 2009 11:07 pm

Re: pounding my head against my mikrotik

Sat Oct 24, 2009 12:13 am

Thanks Andrew,

Here is where I am at now:

Bridged wlan1 to eth1 on 433
411 in station mode
Set 192.168.1.240/24 to wlan1 on 411
I am not sure how to set the default gateway on 411 to 192.168.1.1
set 169.254.0.1/24 to eth1 on 411
enabled dhcp on eth1 on 411
added static route to 169.254.0.0 via 192.168.1.240 (see pic)

Am I on the right track?

Here is the output from the 433

[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFA
0 D 192.168.1.27/24 192.168.1.0 192.168.1.255 ether1

[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY
0 ADS 0.0.0.0/0 192.168.1.1
1 A S 169.254.0.0/24 192.168.1.240
2 ADC 192.168.1.0/24 192.168.1.27 bridge1


Here is the output from the 411:

[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.1.240/24 192.168.1.0 192.168.1.255 wlan1
1 169.254.0.1/24 169.254.0.0 169.254.0.255 ether1

[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADC 169.254.0.0/24 169.254.0.1 ether1 0
1 ADC 192.168.1.0/24 192.168.1.240 wlan1 0

[admin@MikroTik] > ip dhcp-server print
Flags: X - disabled, I - invalid
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
0 dhcp1 ether1 dhcp_pool1 3d


Sorry to be such a pain! It seems i am so close!

Aren
You do not have the required permissions to view the files attached to this post.
 
User avatar
kameelperdza
Member
Member
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

Re: pounding my head against my mikrotik

Tue Dec 15, 2009 10:41 am

I have a similar problem. I have setup routing on two mikrotik router. router1 has eth1(192.168.0.10/24) and wlan1(192.168.9.1/24),router2 has eth1(192.168.10.1/24) and wlan1(192.168.9.2/24).

I am able to ping from router2 (wlan1+eth1) to wlan1 and eth1 on router1.

and i can only ping from wlan1 on router1 to router2. I cannot ping from eth1 on router 1.

On router1 i have setup route as this dst network is 0.0.0.0/0 and gateway is 192.168.9.2
on router 2 i have setup route as this dst network is 0.0.0.0/0 and gateway is 192.168.9.1

router 1 is ap/bridge mode and router 2 is station mode.

The problem that i have is that i cannot ping any interface from eth1(router1) but i can ping eth1(router1) from any other device

Who is online

Users browsing this forum: mtkvvv, Rendy and 55 guests