Difference between revisions of "SWITCH-mikrotik"
(→VLANs) |
(→Ports / VLAN) |
||
Line 18: | Line 18: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>2</td> | <td>2</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
Line 28: | Line 28: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>4</td> | <td>4</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
Line 38: | Line 38: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>6</td> | <td>6</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
Line 48: | Line 48: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>8</td> | <td>8</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
Line 58: | Line 58: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>10</td> | <td>10</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
Line 68: | Line 68: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>12</td> | <td>12</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
Line 78: | Line 78: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>14</td> | <td>14</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
Line 88: | Line 88: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>16</td> | <td>16</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
Line 98: | Line 98: | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=FloralWhite> |
<td>18</td> | <td>18</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
<td></td> | <td></td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=SlateGrey> |
<td>19</td> | <td>19</td> | ||
<td>FIXME-NAT</td> | <td>FIXME-NAT</td> | ||
− | <td></td> | + | <td>DON'T USE!</td> |
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=LightSlateGrey> |
<td>20</td> | <td>20</td> | ||
<td>FIXME-PUBLIC</td> | <td>FIXME-PUBLIC</td> | ||
− | <td></td> | + | <td>DON'T USE!</td> |
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=SlateGrey> |
<td>21</td> | <td>21</td> | ||
− | <td> | + | <td>FIXME-NAT</td> |
<td>DON'T USE!</td> | <td>DON'T USE!</td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=LightSlateGrey> |
<td>22</td> | <td>22</td> | ||
− | <td> | + | <td>FIXME-PUBLIC</td> |
<td>DON'T USE!</td> | <td>DON'T USE!</td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=IndianRed> |
<td>23</td> | <td>23</td> | ||
− | <td>TRUNK</td> | + | <td>TRUNK-NAT</td> |
<td>DON'T USE!</td> | <td>DON'T USE!</td> | ||
</tr> | </tr> | ||
− | <tr bgcolor= | + | <tr bgcolor=LightCoral> |
<td>24</td> | <td>24</td> | ||
− | <td>TRUNK</td> | + | <td>TRUNK-PUBLIC</td> |
<td>DON'T USE!</td> | <td>DON'T USE!</td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | |||
− | |||
== Config == | == Config == |
Revision as of 19:02, 11 December 2023
SW-FIXME-MIKROTIK
VLANs
- 130: FIXME-NAT
- 135: FIXME-PUBLIC
Ports / VLAN
Port | VLAN | Equipement |
1 | FIXME-NAT | |
2 | FIXME-PUBLIC | |
3 | FIXME-NAT | |
4 | FIXME-PUBLIC | |
5 | FIXME-NAT | |
6 | FIXME-PUBLIC | |
7 | FIXME-NAT | |
8 | FIXME-PUBLIC | |
9 | FIXME-NAT | |
10 | FIXME-PUBLIC | |
11 | FIXME-NAT | |
12 | FIXME-PUBLIC | |
13 | FIXME-NAT | |
14 | FIXME-PUBLIC | |
15 | FIXME-NAT | |
16 | FIXME-PUBLIC | |
17 | FIXME-NAT | |
18 | FIXME-PUBLIC | |
19 | FIXME-NAT | DON'T USE! |
20 | FIXME-PUBLIC | DON'T USE! |
21 | FIXME-NAT | DON'T USE! |
22 | FIXME-PUBLIC | DON'T USE! |
23 | TRUNK-NAT | DON'T USE! |
24 | TRUNK-PUBLIC | DON'T USE! |
Config
work in progress...
/interface ethernet set ether3 vlan-mode=use-tag vlan-id=130
/interface ethernet print detail
https://wiki.mikrotik.com/wiki/Manual:Basic_VLAN_switching
https://help.mikrotik.com/docs/display/ROS/Bridging+and+Switching#BridgingandSwitching-BridgeVLANFiltering
old:
hostname SW-FIXME-02
snmp-server location CH LSN FIXME SERV 1
snmp-server contact FIXME
snmp-server community FIXME ro
username admin access-level 15
username admin password 7 XXXXXXXXXXXXXXXXXXXXXXXXXX
username guest access-level 0
username guest password 7 XXXXXXXXXXXXXXXXXXXXXXXXXX
enable password level 15 7 XXXXXXXXXXXXXXXXXXXXXXXXXX
vlan database
vlan 1 name DefaultVlan media ethernet state active
vlan 130 name FIXME-NAT media ethernet state active
vlan 135 name FIXME-PUBLIC media ethernet state active
interface ethernet 1/1
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/2
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/3
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/4
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/5
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/6
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/7
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/8
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/9
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/10
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/11
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/12
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/13
switchport allowed vlan add 130 untagged
switchport native vlan 130
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/14
switchport allowed vlan add 130 untagged
switchport native vlan 130
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/15
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/16
switchport allowed vlan add 135 untagged
switchport native vlan 135
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/17
switchport allowed vlan add 130,135 untagged
switchport native vlan 130
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/18
switchport allowed vlan add 130,135 untagged
switchport native vlan 130
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/19
switchport allowed vlan add 130,135 untagged
switchport native vlan 130
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/20
switchport allowed vlan add 130,135 untagged
switchport native vlan 130
switchport allowed vlan remove 1
spanning-tree edge-port
interface ethernet 1/21
switchport allowed vlan add 1 untagged
switchport native vlan 1
switchport allowed vlan add 130,135 tagged
interface ethernet 1/22
switchport allowed vlan add 1 untagged
switchport native vlan 1
switchport allowed vlan add 130,135 tagged
interface ethernet 1/23
switchport allowed vlan add 1 untagged
switchport native vlan 1
switchport allowed vlan add 130,135 tagged
interface ethernet 1/24
switchport allowed vlan add 1 untagged
switchport native vlan 1
switchport allowed vlan add 130,135 tagged
interface vlan 130
ip address 192.168.130.252 255.255.255.0
no ip http secure-server
spanning-tree mode stp
line console
line vty
end