Partie 1 : Configurer les périphériques

⚙️ Configurer des Routeurs

/system identity
set name=RT31

/interface vlan
add name=vlan1096 interface=ether2 vlan-id=1096
add name=vlan1097 interface=ether2 vlan-id=1097
add name=vlan1100 interface=ether2 vlan-id=1100

/ip address
add address=10.10.10.17/30 interface=ether1 network=10.10.10.16
add address=192.168.96.1/24 interface=vlan1096 network=192.168.96.0
add address=192.168.97.1/24 interface=vlan1097 network=192.168.97.0
add address=192.168.100.1/24 interface=vlan1100 network=192.168.100.0

/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.10.10.18

🖥️ Configurer du Switch

/system identity
set name=SW31

/interface bridge
add frame-types=admit-only-vlan-tagged name=bridge1 protocol-mode=none pvid=4000 vlan-filtering=yes

/interface vlan
add interface=bridge1 name=vlan1100 vlan-id=1100

/interface bridge port
add bridge=bridge1 frame-types=admit-only-vlan-tagged interface=ether1 pvid=4000
add bridge=bridge1 frame-types=admit-only-untagged-and-priority-tagged interface=ether2 pvid=1096
add bridge=bridge1 frame-types=admit-only-untagged-and-priority-tagged interface=ether3 pvid=1097

/ip neighbor discovery-settings
set discovery-interface-list=!dynamic

/interface bridge vlan
add bridge=bridge1 tagged=ether1 untagged=ether2 vlan-ids=1096
add bridge=bridge1 tagged=ether1 untagged=ether3 vlan-ids=1097
add bridge=bridge1 tagged=ether1,bridge1 vlan-ids=1100

/ip address
add address=192.168.100.3/24 interface=vlan1100 network=192.168.100.0

/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.100.1

💻 Configurer les PC

  • IP : 192.168.96.10/24

  • Passerelle : 192.168.96.1 (RT31)

  • Port Switch : ether2 (PVID 813)


🚀 Tester la connectivité

1

Effectuer des tests avec ping :

  • Depuis PC A :

    PC> ping 192.168.96.10    # Vers PC B
  • Depuis PC B :

    PC> ping 192.168.97.10    # Vers PC A

-

Loop Protect

-

Last updated