Create VLAN:
Switch(config)# vlan <vlan-id>
Switch(config-vlan)#name <Vlan-Name>
Port Assignment:
Layer 2:
Switch(config-if)# switchport
Switch(config-if)# switchport mode access
RSTP:
Switch(config-if)# switchport host
Switch(config-if)# switchport access vlan <vlan-id>
Trunk:
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport native vlan <vlan-id>
Switch(config-if)# switchport trunk allow vlan <vlan-id>
Handige commando’s
show vlan <id / name>
show int <int> switchport
show mac-address-table interface <int>
VTP:
VTP mode <server / client / tranparent>
vtp domain <name>
vtp password <password>
vtp version <version>
vtp pruning
show vtp status
Sub VLAN’s
Komt nog