A
A
ALLIGATOR2020-10-30 05:16:41
Mikrotik
ALLIGATOR, 2020-10-30 05:16:41

How to assign several IP addresses to each VLAN to the specified mikrotik in the specified scheme?

I must say right away that I am not a real networker.
I want to deal with VLANs in Mikrotik, in general, the technology does not seem complicated, but something does not add up for me. I
built such a scheme on CHR (6.47.6) in VirtualBox:
5f9a9b0085374725085796.png
Created two VLANs not counting PVID=1:

  • VLAN-ID = 10 - unites 2 PCs into 10 subnets
  • VLAN-ID = 20 - unites 2 PCs into 20 subnets
  • VLAN-ID = 1 - combines all (both) mikrotiks and one of the ports on one of the mikrotiks to configure them


Now what I want to do is to make the ROUTER microtic available in each VLAN at a specific IP address:
  • VLAN-ID 10 - 192.168.10.1
  • VLAN-ID 20 - 192.168.20.1

Well, each of the Mikrotiks remained available from under VLAN-ID 1 - at the addresses 192.168.99.1 and

.99.2 assigned interface-vlanNN-ethNN addresses - couldn't get it to work

ROUTER config

/interface bridge
add name=bridge1 vlan-filtering=yes
/interface bridge port
add bridge=bridge1 interface=ether1 pvid=10
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether4 pvid=20
/interface bridge vlan
add bridge=bridge1 tagged=ether2 untagged=ether1 vlan-ids=10
add bridge=bridge1 tagged=ether2 untagged=ether4 vlan-ids=20
add bridge=bridge1 tagged=ether2 untagged=bridge1 vlan-ids=1
/ip address
add address=192.168.99.1/24 interface=bridge1 network=192.168.99.0
/ip dhcp-client
add disabled=no interface=ether1
/system identity
set name=ROUTER


SWITCH config

/interface bridge
add name=bridge1 vlan-filtering=yes
/interface bridge port
add bridge=bridge1 interface=ether1 pvid=10
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether4 pvid=20
add bridge=bridge1 interface=ether3
/interface bridge vlan
add bridge=bridge1 tagged=ether2 untagged=ether1 vlan-ids=10
add bridge=bridge1 tagged=ether2 untagged=ether4 vlan-ids=20
add bridge=bridge1 tagged=ether2 untagged=ether3 vlan-ids=1
/ip address
add address=192.168.99.2/24 interface=bridge1 network=192.168.99.0
/system identity
set name=SWITCH


--Q2----------------------------------------------------- --------------------------------
Well, and immediately another question, on the "ROUTER" in the future I plan to hang up the exact time server NTP, for this:
  • the server was assigned the IP address 192.168.1.1
  • assigned eth3 port address 192.168.2.1
  • installed package ntp on mikrotik
  • configured NTP Client - Primary - 192.168.1.1, unicast, Enabled
  • configured NTP Server - Enabled, Manycast
  • pings go both ways

But! I can’t understand what time synchronization period the client has, they write on the Internet that it starts from 15 seconds and goes up to 15 minutes, doubling each time. But, for some reason, the time on Mikrotik is not synchronized, and utilities for checking the NTP protocol also show the wrong time.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ALLIGATOR, 2020-11-02
@ALLIGATOR

Hooray! Got it!

ROUTER config

/interface bridge
add name=bridge1 vlan-filtering=yes
/interface vlan
add interface=bridge1 name=VLAN10_bridge1 vlan-id=10
add interface=bridge1 name=VLAN20_bridge1 vlan-id=20
/interface bridge port
add bridge=bridge1 interface=ether1 pvid=10
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether4 pvid=20
/interface bridge vlan
add bridge=bridge1 tagged=ether2,bridge1 untagged=ether1 vlan-ids=10
add bridge=bridge1 tagged=ether2,bridge1 untagged=ether4 vlan-ids=20
add bridge=bridge1 tagged=ether2 untagged=bridge1 vlan-ids=1
/ip address
add address=192.168.99.1/24 interface=bridge1 network=192.168.99.0
add address=192.168.10.1/24 interface=VLAN10_bridge1 network=192.168.10.0
add address=192.168.20.1/24 interface=VLAN20_bridge1 network=192.168.20.0
/system identity
set name=ROUTER

D
damis, 2020-10-30
@damis

Regarding this:

Now what I want to do is to make the ROUTER microtic available in each VLAN at a specific IP address:
VLAN-ID 10 - 192.168.10.1
VLAN-ID 20 - 192.168.20.1

it is written here:
routeworld.ru/set-i-internet/theory/220-mikrotik-n...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question