Diverse handige Cisco commando's
Access Poort
interface range FastEthernet1/0/1-12
description Internet
switchport access vlan 100
switchport mode access
load-interval 30
no mdix auto
no cdp enable
spanning-tree portfast
!
Trunk Poort
interface GigabitEthernet1/0/1
switchport trunk encapsulation dot1q
switchport trunk native vlan 2
switchport trunk allowed vlan 99,100
switchport mode trunk
switchport nonegotiate
ip arp inspection trust
logging event trunk-status
load-interval 30
ip dhcp snooping trust
!
Timezone
clock timezone CET 1 0
clock summer-time CEST recurring last Sun Mar 2:00 last Sun Oct 3:00
NTP Servers
ntp server 145.68.237.7
ntp server 145.68.238.144
Status van de interfaces
sh int status
Laat zien wanneer de interfaces voor het laatst actief zijn geweest
sh int | inc line protocol is|Last input
Laat informatie zien zoals temperatuur, fans, power
sh env all
Uptime van de switch
sh hard | i uptime
IP-adressen achterhalen die zijn toegekend aan de poorten
show ip dhcp snooping binding
PoE op poort uit- en inschakelen
int fa1/0/1
power inline never
no power inline never
Uitlezen PoE status
show powerinline
Interface op default zetten
default int fa1/0/1
err-disabled poorten uitlezen en weer actief zetten
show interfaces status err-disabled
conf term
interface FastEthernet1/0/1
shutdown
no shutdown
exit