Page 1 of 1

RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Mon Apr 25, 2016 7:37 pm
by JamesDunn
Hi,

we have just bought a RB2011 can I am trying to configure it with a Virgin SuperHub 2 (BUS_V2.37.13). I have put the SuperHub in modem only mode, and when I plug the ethernet cable into my laptop I get an IP address from the Virgin DHCP server and can connect to the internet.

However, when I plug the ethernet cable into the RB2011, I get a different IP address and I do not have an internet connection. The IP address assigned to the RB2011 ether1 interface is a Virgin one, according to ip-lookup.net.

I have tried setting the IP address to static and entering the same settings that my laptop receives, but this doesn't work either. I have also tried changing the MAC address to match the SuperHub's WAN modem address but this results in no connection whatsoever.

I have been through the initial config here http://wiki.mikrotik.com/wiki/Manual:In ... figuration and the IP/Firewall/NAT and IP/Routes seem to be fine, however I cannot ping the gateway IP from the Tools/Ping command.

Can anyone help with this?

thanks
James

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Tue Apr 26, 2016 1:24 pm
by evince
Hello,

This setup is quite simple.

You should receive an ip address from your modem in ether1(mikrotik side) (in your dhcp-client). Check if default route in checked.

Then, you should have a NAT rule (masquerade) out-interface=ether1.

Then, you should have a default route to the ip address of your modem.

Try to ping 8.8.8.8 from the terminal of your Mikrotik. If it works, try to ping google.com.

If it does not work, check /ip DNS if you have configured DNS Server.

Regards,

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Tue Apr 26, 2016 3:56 pm
by JamesDunn
Thanks, it appears that the SuperHub is not working with my laptop now, when it's in modem mode. Looks like it won't work that way for some reason. I have now turned off Wi-Fi and the DHCP server and have set the IP address as a default gateway on the RB2011.

I now need to set up another SuperHub on another interface but the only available interface seems to be sfp1.

How can I do this?

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Tue Apr 26, 2016 5:39 pm
by evince
OK, so you need something like this : https://www.roc-noc.com/mikrotik/router ... -RJ01.html

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Tue Apr 26, 2016 6:37 pm
by JamesDunn
So that provides another ethernet socket on the front right? Is it not possible to use one of the other sockets on the front of the unit?

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Wed Apr 27, 2016 9:54 am
by evince
It depends how many Ethernet ports are used. What kind of socket are you talking about?

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Wed Apr 27, 2016 9:28 pm
by JamesDunn
Well there are 10 ports on the router and I want to set up 3 of them as WAN ports with load balancing and use another one to connect to an external switch, assuming this is possible?

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Wed Apr 27, 2016 10:12 pm
by blajah
Maybe stupid question, but did you delete default config of 2011?

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Thu Apr 28, 2016 1:03 pm
by JamesDunn
I am connecting to the RB2011 via ether5 at the moment so I think I will lose connection to the router when I delete the default config? I think this is the problem I had before, so I am trying to work with the default config.

Or is there another way of connecting to the unit? As far as I know, there is no serial port on the unit (I am not in front of it at the moment) but I am pretty sure it is the same as this on the back:

Image

The front panel just has micro USB, SFP, 5 x gigabit ethernet and 5 x fast ethernet. I believe the USB port is only for external storage/or 3G/4G modem? This post would seem to confirm that, but I am fairly certain there is no serial port on the back of the unit.

Is there another way to connect if I delete the default config?

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Thu Apr 28, 2016 4:17 pm
by blajah
Yeah, you can connect via winbox, using MAC address.

Re: RB2011UiAS-RM with 6.30.4 OS can't connect to internet

Posted: Tue May 03, 2016 4:44 pm
by JamesDunn
Thanks, I have got WinBox working on my Mac with Wineskin.

My current config is below. I now have a working internet connection, but how can I configure load-balancing for the second internet connection? Or even test that it is working?
# may/03/2016 14:42:26 by RouterOS 6.35
# software id = XXXXXXXXX
#
/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether2 ] name=WAN2
set [ find default-name=ether3 ] name=WAN3
set [ find default-name=ether4 ] name=ether04
set [ find default-name=ether5 ] name=ether05
set [ find default-name=ether6 ] name=ether06
set [ find default-name=ether7 ] name=ether07
set [ find default-name=ether8 ] name=ether08
set [ find default-name=ether9 ] name=ether09
/ip neighbor discovery
set WAN1 discover=no
set WAN2 discover=no
set WAN3 discover=no
/ip pool
add name=LAN-DHCP ranges=10.0.1.0-10.0.1.199
add name=LAN-SERVERS ranges=10.0.1.200-10.0.1.254
/ip dhcp-server
add address-pool=LAN-DHCP interface=bridge1 name=DHCP
/interface bridge port
add bridge=bridge1 interface=ether05
add bridge=bridge1 interface=ether06
add bridge=bridge1 interface=ether07
add bridge=bridge1 interface=ether08
add bridge=bridge1 interface=ether09
add bridge=bridge1 interface=ether10
add bridge=bridge1 interface=sfp1
add bridge=bridge1 interface=ether04
/ip address
add address=10.0.1.1/24 interface=bridge1 network=10.0.1.0
add address=192.168.10.2/24 interface=WAN1 network=192.168.10.0
add address=192.168.11.2/24 interface=WAN2 network=192.168.11.0
/ip dhcp-client
add dhcp-options=hostname,clientid interface=WAN1
add dhcp-options=hostname,clientid interface=WAN1
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=WAN2
/ip route
add distance=1 gateway=192.168.10.1
add check-gateway=ping distance=1 gateway=WAN1
add distance=2 gateway=WAN2
/ip service
set ssh port=XXXX
/system clock
set time-zone-name=Europe/London
/system routerboard settings
set protected-routerboot=disabled