Hello,
I would like to configure the routing in intervlan mikrotik here are commands I used:
/ VLAN interface
add name = = ether2 vlan100 interface vlan-id = 100
add name = = ether2 vlan200 interface vlan-id = 200
I also configured the dhcp for each wham, here are commands I used:
Create an IP address pool:
/ Ip pool add name = pooll-100 ranges = 172.16.120.5-172.16.120.254
/ Ip pool add name = pooll-200 ranges = 172.16.121.5-172.16.121.254
DHCP Server Configuration for VLANs:
/ Ip dhcp-server enable 0
/ Server add Ip dhcp-interface = ether2 address-pool = pool-100
/ Server add Ip dhcp-interface = ether2 address-pool = pool-200
A première vue t’es francais, vue le titre, donc je réponds en francais
DHCP Server Configuration for VLANs:
/ Ip dhcp-server enable 0
/ Server add Ip dhcp-interface = ether2 address-pool = pool-100
/ Server add Ip dhcp-interface = ether2 address-pool = pool-200
Regarde tes interfaces, tu met le DHCP sur ton ETH2 au lieu de l’attribuer au VLAN, il est la ton problème
Hi, thank you for your answer
I have another concern I can not activate multiple dhcp in the router mikrotik in dhcp server; the message sent is the following: could not change dhcp server with -server dhcp2 Such interface and relay is already enabled
thank you in advance
a router may only have exactly on active server associated with one layer-3 interface.
if you create VLANS in ROS, the VLAN interface will be the Layer-3 interface, so you must
assign the dhcp-server to them, not to the physical port.
two different servers can be run on two different interfaces, and so on.
then add the necessary network configs as you did (at least gw must be specified so the clients know where to
sent the packets if they are not in the connected network segment). inter-VLAN routing will work w/o additional config as both networks are connected to the same router, so it will pass packets between them.
some other clue:
when assigning (ip address add) IP address to an interface, you don’t have to specify the network address,
ROS will figure it out from the prefix length.
slt Andy
je travaille sur le RouterBoard 750 ; j’ai configuré les vlans et le dhcp fonctionne mais le problème est que les vlans ne communiquent pas entre eux , j’ai trouvé un tutoriel dont voici l’adresse “http://wiki.mikrotik.com/wiki/Manual:CRS_examples#VLAN_Based_Mirroring” mais le routeur mikrotik sur lequel je travaille ne reconnait pas les commandes suivantes :
/interface ethernet switch ingress-vlan-translation
add ports=ether6 customer-vid=0 new-customer-vid=200 sa-learning=yes
add ports=ether7 customer-vid=0 new-customer-vid=300 sa-learning=yes
add ports=ether8 customer-vid=0 new-customer-vid=400 sa-learning=yes
A premiere vue tes vlan sont sur le meme port, juste sur un adressage différent, sauf erreur de mémoire, vis à vis du comportement par défaut, la communication est censé se faire sans problème.
Est ce que tu as des regles de pare feu qui bloquent quelque part ?
Ou as tu mis des regles qui disent explicitement RESEAU A a droit de parler a RESEAU B et vice versa.
Essaye avec un partage de fichier, ou une interface web, d’y acceder d’un reseau via l’autre, fait un traceroute voir ce qu’il se passe?
slt andy
j’ai une autre préoccupation s’il te plait comment utiliser snmp pour acceder au routeur mikrotik
en fait j’ai deja vu comment le configurer dans mikrotik mais je ne sais pas comment l’utiliser pour pouvoir accéder au routeur mikrotik à distance