Befehle

Adding Interfaces to VLAN

  • enable
  • conf t
  • interface x/y
  • switchport mode access
  • switchport access vlan z

Adding Trunk interfaces for cross-switch communication

  • enable
  • conf t
  • interface x/y (interfaces that connect both switches)
  • switchport trunk encapsulation dot1q
  • switchport mode trunk
  • switchport trunk allow vlan z, k
    wird auf beide switches gemacht

Testing if setup is correct

  • enable
  • show interfaces trunk
    Pasted image 20261015103407.png
  • show vlan brief

Pasted image 20261015103437.png