Community discussions

MikroTik App
 
titansmc
just joined
Topic Author
Posts: 16
Joined: Wed Jun 07, 2017 11:51 am

Mikrotik Initial Setup

Wed Jun 07, 2017 6:01 pm

Hi,
I just got a CRS125-24G-1S and trying to set up an ip from range 172.20.150.0/24. (I am on 172.20.4.0/22).

On the router I have ether1 with 172.20.150.118. And "Route list" as:

DAC
Dst Addr: 172.20.150.0/24
Gateway: ether1-master reachable
Distance: 0
Routing Mark
Pref Source: 172.20.150.118

At this point I can access to all devices on 172.20.150.0/24 from my LAN (those aren't separated VLAN's). But only able to access to my CRS if I set up an IP on the same range in my machine (172.20.150.0/24)

What I am doing wrong? Should I manually set up the default Gateway?


Thanks in advance!

# feb/12/2002 18:13:39 by RouterOS 6.38.5
# software id = 93J0-CEE9
#
/interface ethernet
set [ find default-name=ether1 ] name=ether1-master
set [ find default-name=ether2 ] master-port=ether1-master
set [ find default-name=ether3 ] master-port=ether1-master
set [ find default-name=ether4 ] master-port=ether1-master
set [ find default-name=ether5 ] master-port=ether1-master
set [ find default-name=ether6 ] master-port=ether1-master
set [ find default-name=ether7 ] master-port=ether1-master
set [ find default-name=ether8 ] master-port=ether1-master
set [ find default-name=ether9 ] master-port=ether1-master
set [ find default-name=ether10 ] master-port=ether1-master
set [ find default-name=ether11 ] master-port=ether1-master
set [ find default-name=ether12 ] master-port=ether1-master
set [ find default-name=ether13 ] master-port=ether1-master
set [ find default-name=ether14 ] master-port=ether1-master
set [ find default-name=ether15 ] master-port=ether1-master
set [ find default-name=ether16 ] master-port=ether1-master
set [ find default-name=ether17 ] master-port=ether1-master
set [ find default-name=ether18 ] master-port=ether1-master
set [ find default-name=ether19 ] master-port=ether1-master
set [ find default-name=ether20 ] master-port=ether1-master
set [ find default-name=ether21 ] master-port=ether1-master
set [ find default-name=ether22 ] master-port=ether1-master
set [ find default-name=ether23 ] master-port=ether1-master
set [ find default-name=ether24 ] master-port=ether1-master
set [ find default-name=sfp1 ] master-port=ether1-master
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=192.168.10.249/24 comment="IP temporal rang servidors" interface=ether1-master network=\
    192.168.10.0
add address=172.20.150.118/24 comment="IP vlan management" interface=ether1-master network=172.20.150.0
/system identity
set name=switch-cluster-test
/system ntp client
set enabled=yes primary-ntp=130.206.3.166

 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Mikrotik Initial Setup

Wed Jun 07, 2017 9:13 pm

You need to add an IP from range 172.20.4.0/22 to ether1-master.

Is this the only router in the network? You'd need to add a default gateway set to your internet router if you want the CRS125 be able to reach Internet (upgrades, ntp, etc)
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1583
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Mikrotik Initial Setup

Wed Jun 07, 2017 9:27 pm

Thank you for including your config - it makes it so much easier to understand!
I'm not sure I understand what you are trying to do. Is this router intended to be in a somewhat normal configuration with a "WAN" port connected to your ISP and your clients connected to "LAN" port? That's not how you are configured. You have all ports set to have port 1 as a master port. If so, what is the IP from your ISP? I see you have a 192.168.10.249 in the config, but that's on the same master port as everything else.
 
titansmc
just joined
Topic Author
Posts: 16
Joined: Wed Jun 07, 2017 11:51 am

Re: Mikrotik Initial Setup

Fri Jun 09, 2017 12:17 am

Hi,
Thank's to both of you for your quick reply.
I want to use this router as a switch actually, since I think it is not to powerful to be used as a primary router for my company.

So at this point I just intend to have a switch with a management IP like my HP switches. My actual switches only have one IP at 172.20.150.0/24 and I can connect to them.

Now I just got a CSS 326 but the interface I think is too poor... So I am not sure what switches I should get to have my HP replaced.

I another post I will try to figure out what is the best router to buy to have it as a main router in my network. I have around 60 firewall rules and 20 static routes and several IP's.

Thank's a lot.
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: Mikrotik Initial Setup

Fri Jun 09, 2017 12:36 am

In that case, simply add (or change) the current IP on ether1 to the IP that you would like it to have. Optionally, you can use the DHCP client to have the CRS pull it's own address and configure it's gateway and DNS automatically.
 
titansmc
just joined
Topic Author
Posts: 16
Joined: Wed Jun 07, 2017 11:51 am

Re: Mikrotik Initial Setup

Fri Jun 09, 2017 12:42 am

It is already there, 172.20.150.118 if i am not wrong.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Mikrotik Initial Setup

Fri Jun 09, 2017 1:09 pm

It is already there, 172.20.150.118 if i am not wrong.
Yes, but you're on a different network range, and your default gateway doesn't know how to reach it. So...

You need to add an IP from range 172.20.4.0/22 to ether1-master, and you'll be able to manage it.

Once you have a router in place, you will be able to assign any network range to it, it'll be accessible as long as the main router (default gateway in your network) knows how to reach it by its routing table/routes.

Or as IntrusDave suggests:
Optionally, you can use the DHCP client to have the CRS pull it's own address and configure it's gateway and DNS automatically.
Just make an static DHCP assignment on your internet router so that CRS takes always the same IP and you're done. BTW, this is better practice too, as you can control everything from a single place without needing to reach to each device to change their IPs in case of a range change, etc.
Now I just got a CSS 326 but the interface I think is too poor... So I am not sure what switches I should get to have my HP replaced.
If I'm not wrong, when it was announced Mikrotik stated this switch was able to boot either swOS (the poor interface you seem to refer to) and regular RouterOS, so it may be worth researching that dual boot feature. Winbox is a killer management app (works only with RouterOS)...

What features do you need? What are the HP switches doing now?
I another post I will try to figure out what is the best router to buy to have it as a main router in my network. I have around 60 firewall rules and 20 static routes and several IP's.
What's your internet bandwidth? Number and kind of network devices/users?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26931
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Mikrotik Initial Setup

Fri Jun 09, 2017 1:24 pm

CSS is SwOS only.
CRS is the one that can dual boot.
 
titansmc
just joined
Topic Author
Posts: 16
Joined: Wed Jun 07, 2017 11:51 am

Re: Mikrotik Initial Setup

Fri Jun 09, 2017 6:37 pm

Right now I have the following

100Mb connection --> Router 172.20.4.0/22--> I am here
Router 172.20.150/24 --> Switches are here

And I am able to reach the rest of the switches from my network, so routing seems to be working properly.

My HP switches are only providing switching on the same VLAN, nothing special, but something like 300 users working with Samba servers constantly. And more or less 15 48Gb HP Switches connected to one core HP switch, all of them go through SFP --> Fiber --> SFP.

Do you guys think I will improve performance if I switch from RouterOS to SwOS my CRS ?

Thanks a lot.
It is already there, 172.20.150.118 if i am not wrong.
Yes, but you're on a different network range, and your default gateway doesn't know how to reach it. So...

You need to add an IP from range 172.20.4.0/22 to ether1-master, and you'll be able to manage it.

Once you have a router in place, you will be able to assign any network range to it, it'll be accessible as long as the main router (default gateway in your network) knows how to reach it by its routing table/routes.

Or as IntrusDave suggests:
Optionally, you can use the DHCP client to have the CRS pull it's own address and configure it's gateway and DNS automatically.
Just make an static DHCP assignment on your internet router so that CRS takes always the same IP and you're done. BTW, this is better practice too, as you can control everything from a single place without needing to reach to each device to change their IPs in case of a range change, etc.
Now I just got a CSS 326 but the interface I think is too poor... So I am not sure what switches I should get to have my HP replaced.
If I'm not wrong, when it was announced Mikrotik stated this switch was able to boot either swOS (the poor interface you seem to refer to) and regular RouterOS, so it may be worth researching that dual boot feature. Winbox is a killer management app (works only with RouterOS)...
What features do you need? What are the HP switches doing now?

I another post I will try to figure out what is the best router to buy to have it as a main router in my network. I have around 60 firewall rules and 20 static routes and several IP's.
What's your internet bandwidth? Number and kind of network devices/users?
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: Mikrotik Initial Setup

Sat Jun 10, 2017 11:43 am

CSS is SwOS only.
CRS is the one that can dual boot.
Oops! my fault :roll:
Do you guys think I will improve performance if I switch from RouterOS to SwOS my CRS ?
I thought you had a CRS326 (Dual boot), but yours is CSS326 (SwOS only).
Do you guys think I will improve performance if I switch from RouterOS to SwOS my CRS ?
In the event you had a CRS326, it shouldn't make a difference as switches should perform at wirespeed for switching functions including VLAN switching, i.e. if using ROS using switch chip functions for VLAN handling (vs adding VLAN interfaces, which are handled by CPU).

That's theory of course, haven't thoroughly tested the differences on a CRS326; main one would be management, but again setting up VLANs in a switch isn't something done on a daily basis.

100Mbps Internet Bandwidth is not too demanding, but given the users count, and size of the network, I'd go straight for a CCR for your router.

You'll have power to spare, so it will give you room to apply internal/external QoS policies, do any heavy inter-VLAN routing, etc.