Help with simple setup

Hello;

I just bought a routerboard with a wifi antenna, and am having problems trying to setup something very simple.

I have an existing wifi network with the internet which I want to connnect to via my new routerboard.

I’ve successfully got the routerboard to connect to my existing wifi, however I cannot get an ip or the internet through the ethernet port of the routerboard.

Can someone explain how to do this? I’m configuring my routerboard through WinBox v4.1.

Thanks for any assistance!

Anyone?

Maybe this isn’t as simple as I expected that it may be?

You must give more details, or/and configuration you are using,
because there is to much different configurations you can setup using RO and no one will guess the good one for you :wink:

OK, I didn’t realize. If I’m not elaborating enough on my setup please let me know.

The hardware I bought was this http://www.bizsyscon.com/product/MIKROTIK__KIT-A2419411AHXR2__5056.html

It has a wireless card, and an ethernet connection.

Basically I want to use it to connect to get the internet from an existing wifi connection

INTERNET ACCESS VIA WIFI —wireless----> MIKROTIK ROUTER --ethernet–> COMPUTER TO VIEW THE INTERNET

I’ve gotten the router to connect to the wifi, and that’s about it.
I’m able to connect to the router with Winbox over the ethernet port via MAC.
The computer isn’t even getting an IP from the router.

the Mikrotik is acting as a client? Not an AP?

If so,

Setup a bridge and bridge your wireless interface and the port(s) that you want to access the wireless network.

If the wireless network has DHCP enabled, you will get an address from that network.

If you want to have your MT router get an ip from that network, add a dhcp client via winbox for the bridge you just config’d..

If you want to give it a static IP, add that in IP Addresses.

OK, thanks, yes it is a client I’m trying to setup.

It seems straightforward enough, if I can figure out how to do all of this through the Winbox interface.

Would I set the router into Station mode? How do you interface the ports? I’d imagine I’d like to have all ports connected.

Sorry about all the questions, I’m not much of an IT guy at all, and am obviously a newbie!

  • on the menu list on the left, select interfaces. You should see wlan1 and ether 1 in the list of interfaces. Double click wlan1. Go to the ‘wireless’ tab and select mode as ‘station pseudobridge’ and the appropriate ‘band’ (i.e 2.4ghz or 5ghz) and then select ‘scan’ from the list on the right. Pick your existing wifi from the list of detected networks and click connect from the menu on the right. Confir that it’s connected and running. Close this view window when done.
  • on the menu list on the left, select bridge > click red plus sign to create a new bridge and apply
  • still in the bridge menu, select the ‘ports’ tab and and the red plus sign again to add wlan1 and ether1 as ports to the bridge you created above. Apply after each addition.
  • still from the menu list on the left, go to ip > dhcp client and click on the red plus sign and select your just created bridge1 as the interface. Ensure peer dns, default route and peer ntp are checked. Click apply.
  • You can repair or refresh dhcp settings on your pc and you should now be able to browse
    NB: this assumes your existing wifi hands out ip addresses automatically!

eneimi

Thanks for the detailed instructions. I think I might be almost there. I followed your instructions and seem to be seeing traffic flowing across the network. The DHCP doesn’t appear to be working however. It says “searching” continuously. Any ideas?
close.jpg

If you try using a laptop to connect to your existing wireless, does it connect and browse automatically or do you have to manually configure anything ( a static ip address, wireless security, etc)?

It connects automatically.

oh sorry there is wireless security setup on my network (wpa2) however I seem to have that setup fine. The routeros maintains a connection to my wifi.

Would the make any difference what the ip of my router is?

It’s currently set to the default 192.168.88.1, I think.

Should the router be getting an ip from the ap’s dhcp server? Is there a way of checking this?

For testing purposes, choose a valid IP address on the subnet distributed via the other AP. Then add it as a static IP address on the bridge1 interface on the Mikrotik router. At that point, are you able to ping the other AP from the Mikrotik router?
If not, post the IP configuration from the other AP as well as the configuration you applied on the Mikrotik router here.

With this test we can verify layer 2 connectivity between the two APs.

Thanks for the help fewi

The access point is a linksys router running wep. I don’t have the specifics of the setup. It’s IP is the standard 192.168.1.1

I’m not sure how I can post the configuration of the Mikrotik. I’ve included a screenshot though. I’ve set it up according to the previous post in this thread.

I added a bridge between wlan1 and ether1, then setup a DHCP client on the bridge.

I added 192.168.1.50 on the bridge and am able to ping that, but when I try to ping 192.168.1.1 I get “no route to host”

Let me know if this is enough info, and I really really appreciate the help!
problem.jpg

Some more info.

[admin@MikroTik] /interface wireless> print
Flags: X - disabled, R - running
0 R name=“wlan1” mtu=1500 mac-address=00:15:6D:68:01:11 arp=disabled
interface-type=Atheros AR5413 mode=station-pseudobridge
ssid=“MYNETWAN01” frequency=2412 band=2.4ghz-b scan-list=default
antenna-mode=ant-a wds-mode=disabled wds-default-bridge=none
wds-ignore-ssid=no default-authentication=yes default-forwarding=yes
default-ap-tx-limit=0 default-client-tx-limit=0 hide-ssid=no
security-profile=work compression=no

[admin@MikroTik] /interface bridge> print
Flags: X - disabled, R - running
0 R name=“bridge1” mtu=1500 l2mtu=1526 arp=enabled
mac-address=00:15:6D:68:01:11 protocol-mode=none priority=0x8000
auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s
forward-delay=15s transmit-hold-count=6 ageing-time=5m

[admin@MikroTik] /interface bridge port> print
Flags: X - disabled, I - inactive, D - dynamic

INTERFACE BRIDGE PRIORITY PATH-COST HORIZON

0 wlan1 bridge1 0x80 10 none
1 ether1 bridge1 0x80 10 none

[admin@MikroTik] /ip> address print
Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK BROADCAST INTERFACE

0 ;;; default configuration
192.168.88.200/24 192.168.88.0 192.168.88.255 ether1
1 X 192.168.1.254/24 192.168.1.1 192.168.1.255 wlan1
2 192.168.1.50/24 192.168.1.50 192.168.1.50 bridge1

[admin@MikroTik] /interface wireless> monitor
numbers: 0
status: connected-to-ess
band: 2.4ghz-b
frequency: 2437MHz
tx-rate: “1Mbps”
rx-rate: “1Mbps”
ssid: “MYNETWAN01”
bssid: 00:12:17:61:3B:35
signal-strength: -61dBm
noise-floor: -98dBm
signal-to-noise: 37dB
p-throughput: 937
authenticated-clients: 1
current-ack-timeout: 30
802.1x-port-enabled: yes
current-tx-powers: 1Mbps:28(18/28),2Mbps:28(18/28),5.5Mbps:28(18/28),
11Mbps:28(18/28)
notify-external-fdb: no


[admin@MikroTik] /ip dhcp-client> print
Flags: X - disabled, I - invalid

INTERFACE USE-PEER-DNS ADD-DEFAULT-ROUTE STATUS ADDRESS

0 bridge1 yes yes searching…

Disable the 192.168.88.0/24 IP address. Also collapse the network and broadcast settings for the 192.168.1.50 address so that the fields go away. You filled them out wrong. Let the router fill them out again. Then try the ping test again.

On that security issue, you said the linksys uses wep, i guess you used the same thing in your RB (static keys optional or required)? - just checking. You may want to consider WPA2 for security later on.

Did you statically assign 192.168.1.254/24 to wlan1 at any time?

Connect to your RB via mac address, and clear the IP address list. Go to the route list and be sure it’s cleared. Try dhcp client on bridge 1 one more time.

If it still doesn’t work, first confirm that the linksys dhcp server has the full range of ip addresses (192.168.1.2-192.168.1.254) available. Apply a valid ip to bridge1 via terminal (

ip address add address=192.168.1.50/24 int=bridge1

). Check your route list and be sure it reflects the ip address you just assigned to bridge1. Now you’re going to have to assign a static route (

ip route add gateway=192.168.1.1

and dns addresses (

ip dns add primary-dns=x.x.x.x secondary-dns=x.x.x.x

). Try pinging 192.168.1.1 again.

If it still doesn’t work, then we’ll have to try routing instead of bridging.

fewi:

So I disabled the 192.168.88.0/24 address, and reset the 192.168.1.50 one so that the network and broadcast fields were set up properly. I tried the ping test again and it didn’t work.

eneimi:

Yes, I’m using static keys for WEP. I will move to WPA2 once I get this thing working.

I may have tried to statically assign 192.168.1.254/24 to wlan1, I can’t remember anymore, I’ve tried so many things.

I cleared the ip address list, and confirmed the route list was cleared. I tried dhcp client on bridge 1 and I still got nothing.

I checked the linksys router and it’s ip range was from 100-149 so I changed the address to 192.168.1.130/24 for bridge1. I see it in the route list.

I added the gateway 192.168.1.1 as well.

At this point I see the following for routes:

[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 A S 0.0.0.0/0 192.168.1.1 1
1 ADC 192.168.1.0/24 192.168.1.130 bridge1 0

To add the dns, what do I put in for ip’s for the primary/secondary dns?

You’ll probably have to get the dns addresses from the linksys. Otherwise connect your laptop one more time to your exisiting linksys ap (as a dhcp client) and you can read off the dns addresses from your laptop.

This step isn’t really necessary to be able to ping 192.168.1.1, unless there’s something like a hotspot residing on the linksys (doubt that).

Otherwise we can try routing - there may be some issue with the linksys ap and your bridge/wep etc..these things do happen!

How would I route it? I’m getting desparate…