Community discussions

MikroTik App
 
pingus
newbie
Topic Author
Posts: 40
Joined: Fri Aug 24, 2007 10:04 am

CSR125 / ESXi / Cisco Switch

Thu Oct 23, 2014 10:02 am

Hi

I would like to use my CSR125 with a Cisco Switch and an ESXi Host. I am able to configure Cisco Switches, HP Switches, Linksys Switches but I have big problems configuring this CSR125.

As you can see below I would like to have an LACP Trunk with all VLAN's to the Cisco Switch, different Clients in different VLAN's and all VLAN's connected to an ESXi Host with "Route based on IP hash enabled". I don't know which interface should be the master interface. Would be very nice to have a sample configuration to the below problem.
Question to Mikrotik.png
Many thanks!!
You do not have the required permissions to view the files attached to this post.
 
becs
MikroTik Support
MikroTik Support
Posts: 499
Joined: Thu Jul 07, 2011 8:26 am

Re: CSR125 / ESXi / Cisco Switch

Thu Oct 23, 2014 12:52 pm

The chosen master-port matters when configuring IP addresses for management or routing, for switching it can be any of the used ports.
I think sample configuration could look like this:
#create switched port group
/interface ethernet
set [ find default-name=ether6 ] master-port=ether5
set [ find default-name=ether8 ] master-port=ether5
set [ find default-name=ether9 ] master-port=ether5
set [ find default-name=ether13 ] master-port=ether5
set [ find default-name=ether23 ] master-port=ether5
set [ find default-name=ether24 ] master-port=ether5

#create port trunks (link aggregation groups)
/interface ethernet switch trunk
add member-ports=ether6,ether8 name=trunk1-esxi
add member-ports=ether23,ether24 name=trunk2-cisco

#set VLAN tagging on ports (in this case port trunks)
/interface ethernet switch egress-vlan-tag
add tagged-ports=trunk1-esxi,trunk2-cisco vlan-id=10
add tagged-ports=trunk1-esxi,trunk2-cisco vlan-id=20
add tagged-ports=trunk1-esxi,trunk2-cisco vlan-id=30

#set VLAN associations for VLAN access ports
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=10 ports=ether5 sa-learning=yes
add customer-vid=0 new-customer-vid=20 ports=ether9 sa-learning=yes
add customer-vid=0 new-customer-vid=30 ports=ether13 sa-learning=yes

#set allowed VLANs on ports
/interface ethernet switch vlan
add ports=trunk1-esxi,trunk2-cisco,ether5 vlan-id=10
add ports=trunk1-esxi,trunk2-cisco,ether9 vlan-id=20
add ports=trunk1-esxi,trunk2-cisco,ether13 vlan-id=30

#disallow unknown VLANs on ports
/interface ethernet switch
set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=ether5,ether6,ether8,ether9,ether13,ether23,ether24
 
pingus
newbie
Topic Author
Posts: 40
Joined: Fri Aug 24, 2007 10:04 am

Re: CSR125 / ESXi / Cisco Switch

Thu Oct 23, 2014 1:03 pm

Great, I will implement this asap and add it to the CSR examples.

Many thanks!
 
pingus
newbie
Topic Author
Posts: 40
Joined: Fri Aug 24, 2007 10:04 am

Re: CSR125 / ESXi / Cisco Switch

Thu Oct 23, 2014 1:30 pm

The chosen master-port matters when configuring IP addresses for management or routing, for switching it can be any of the used ports.
I think sample configuration could look like this:
This means, it has to be a used port?

How about management VLAN and IP address. Where do I have to define the master port?
 
becs
MikroTik Support
MikroTik Support
Posts: 499
Joined: Thu Jul 07, 2011 8:26 am

Re: CSR125 / ESXi / Cisco Switch

Thu Oct 23, 2014 2:54 pm

This means, it has to be a used port?
Actually, it does not have to be even a used port. That port simply will define the only link to CPU. From switch-chip point there is always "switch1-cpu" port, but when it comes to IP configuration, from CPU point it is the port which is chosen as "master-port".
How about management VLAN and IP address. Where do I have to define the master port?
Here is the management IP configuration for CRS, you only have to change port names and VLAN ids to suit your needs.
http://wiki.mikrotik.com/wiki/Manual:CR ... figuration

Who is online

Users browsing this forum: actomobile, Ahrefs [Bot], Bing [Bot], jbolakakis, sbert, tntx777 and 108 guests