Kapcsolók Konfigurálása
Alapvető beállítások
Switch> enable
Switch# configure terminal
Switch# copy run start
Switch(config)# hostname kapcsolo_neve
Switch(config)# enable secret class
Switch(config)# service password-encryption
Switch(config)# banner motd #Belepes csak engedellyel!#
Switch(config)# line console 0
Switch(config-line)# password jelszo
Switch(config-line)# login
Switch(config-line)# logging synchronous
Switch(config-line)# exec-timeout 5 0
Switch(config)# line vty 0 15
Switch(config-line)# password jelszo
Switch(config-line)# login
Switch(config-line)# exec-timeout 5 0
Portok és Portbiztonság
Switch(config-if)# duplex auto | half | full
Switch(config-if)# speed auto | 10 | 100 | 1000
Switch(config-if)# switchport mode access
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security maximum 2
Switch(config-if)# switchport port-security mac-address sticky
Switch(config-if)# switchport port-security violation shutdown
Switch(config-if)# shutdown
Switch(config-if)# no shutdown
Switch# show port-security interface fa0/1
Switch# show port-security address
Switch(config)# mac-address-table static 0123.4567.89AB vlan 1 int fa0/1
Switch# clear mac-address-table dynamic
DHCP Snooping, DAI és Felügyeleti IP
Switch(config)# int vlan 1
Switch(config-if)# ip address 10.0.0.1 255.0.0.0
Switch(config-if)# no shutdown
Switch(config)# ip default-gateway 10.0.0.254
Switch(config)# ip dhcp snooping
Switch(config)# ip dhcp snooping vlan 1
Switch(config-if)# ip dhcp snooping trust
Switch(config-if)# ip dhcp snooping limit rate 10
Switch(config)# ip arp inspection vlan 1
Switch(config-if)# ip arp inspection trust
Switch# show ip dhcp snooping binding
Switch# show ip arp inspection
VLAN-ok és Trönkök
Switch(config)# vlan 25
Switch(config-vlan)# name gamma
Switch(config)# interface range fa0/10-15
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport access vlan 25
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk native vlan 99
Switch(config-if)# switchport trunk allowed vlan 3,4,10
Switch# show vlan brief
Switch# show interfaces trunk
Spanning Tree Protocol (STP)
Switch(config)# spanning-tree vlan 1 priority 4096
Switch(config)# spanning-tree vlan 1 root primary
Switch(config-if)# spanning-tree portfast
Switch(config-if)# spanning-tree bpduguard enable
Switch(config-if)# spanning-tree guard root
Switch(config)# spanning-tree mode rapid-pvst
VTP és EtherChannel
Switch(config)# vtp domain tartomany_nev
Switch(config)# vtp mode server | client | transparent
Switch(config)# vtp password jelszo
Switch(config)# vtp version 2
Switch(config)# vtp pruning
Switch(config-if)# channel-group 1 mode on
Switch(config-if)# channel-group 1 mode desirable | auto
Switch(config-if)# channel-group 1 mode active | passive
Switch# show etherchannel summary
Multilayer Kapcsolók
Switch(config)# ip routing
Switch(config-if)# no switchport
Switch(config-if)# ip address 192.168.1.1 255.255.255.0