!!!!!!!!!
! Core Switch
INTNAMEC=
VLAN=

conf t
default int $INTNAMEC
!
int $INTNAMEC
 shutdown
 switchport access vlan $VLAN
 switchport trunk encapsulation dot1q
 switchport mode access
 spanning-tree bpduguard enable
 spanning-tree guard root
!
!
!
int $INTNAMEC
 no shutdown



!!!!!!!!!
! Access
INTNAMEA=

conf t
default int $INTNAMEA
!
int $INTNAMEA
 shutdown
 switchport access vlan $VLAN
 switchport trunk encapsulation dot1q
 switchport mode access
 spanning-tree bpdufilter enable
!
!
!
int $INTNAMEA
 no shutdown

int vlan $VLAN
 ip address ....
