Files
scripts/CISCO Switchport als Access Port/snippet.txt
2024-10-13 23:32:58 +02:00

45 lines
558 B
Plaintext

!!!!!!!!!
! 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 ....