Thursday, 1 June 2017

MIKROTIK:-VLAN in MIKROTIK

As we know the VLAN is a virtual interface we can create multiple virtual interface under the one
physical interface.

Lets start the configuration first .

Let me show you my diagram to connect the switches and one of my Cisco 2960 switches ..


Step-1


Create the VLAN in Mikrotik .

Click on Interface>VLAN>Add




Note: MTU should be set to 1500 bytes same as on Ethernet interfaces. But this may not work with some Ethernet cards that do not support receiving/transmitting of full size Ethernet packets with VLAN header added (1500 bytes data + 4 bytes VLAN header + 14 bytes Ethernet header). In this situation MTU 1496 can be used, but note that this will cause packet fragmentation if larger packets have to be sent over interface. At the same time remember that MTU 1496 may cause problems if path MTU discovery is not working properly between source and destination.


There is no need to select the service tag because it can happen automatically based on the device intelligence .



Step-2
Create the VLAN in Cisco switch
--------------------------------------------

switch(config)#vlan 2 name laxmi


Configure the TRUNK Port

 switch# configure terminal
switch(config)# interface ethernet 0/1
switch(config-if)# switchport mode trunk
switch(config-if)# switchport trunk allowed vlan all
switch(config-if)# exit


Step-3

Configure the access port in switch .

switch# configure terminal
switch(config)# interface ethernet 0/2
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan 2
switch(config-if)# exit



 you can configure the IP address in the vlan 2 of mikrotik and you will provide the another IP
to the PC from that same subnet .




No comments:

Post a Comment