Wednesday, February 21, 2018

Cisco 4507 stuff

Find a mac address on a switch
show mac-address-table | include XXXX

XXXX= last 4 digits of the mac address of the device you re looking for.  I find that easiest, but you can search bigger range.  Cisco doesn’t use xx:xx:xx format
Cisco uses xxxx.xxxx.xxxx


Find summary of port
show int status | include xxxx


You can get additional detail about the port using
show running-config interface gigabitEthernet X/XX


Default the port configuration (from config)
default interface gigabitEthernet X/XX


NON 802.1X port config example

interface GigabitEthernet X/XX
description XXXXXXX
switchport access vlan XX
switchport mode access
switchport voice vlan 90
qos trust cos
auto qos voip trust
tx-queue 3
   bandwidth percent 33
   priority high
   shape percent 33
spanning-tree portfast
service-policy output autoqos-voip-policy
shut
no shut
end

802.1X port config example

interface GigabitEthernet X/XX
description 8021X_Enabled
switchport access vlan 66
switchport mode access
switchport voice vlan 90
qos trust cos
authentication event fail action authorize vlan 202
authentication event no-response action authorize vlan 202
authentication host-mode multi-host
authentication port-control auto
authentication periodic
auto qos voip trust
dot1x pae authenticator
dot1x timeout quiet-period 5
dot1x timeout server-timeout 10
dot1x max-reauth-req 1
storm-control broadcast level 20.00
storm-control action shutdown
tx-queue 3
   bandwidth percent 33
   priority high
   shape percent 33
spanning-tree portfast
spanning-tree bpduguard enable
service-policy output autoqos-voip-policy
shut
no shut
end

Configure a trunk
interface gigabitethernet x/xx
switchport trunk encapsulation dot1q
switchport mode trunk
description XXXXX
 switchport trunk native vlan 100
 switchport trunk allowed vlan 10,50,60,66,67,100,110,130
 qos trust cos
 auto qos voip trust
 tx-queue 3
   bandwidth percent 33
   priority high
   shape percent 33
 service-policy output autoqos-voip-policy

RESTART SWITCH REMOTELY
reload

CONFIGURE IP OF SWITCH

configure terminal
interface vlan XX
ip address 192.168.99.11 255.255.255.0
no shutdown
exit
ip default-gateway 192.168.99.1
end
copy running-config startup-config

CHANGE NAME OF CISCO SWITCH
hostname Corp-Training

configureVLAN

Conf t
Vlan #
State active
End
Write
Or copy run start

No comments:

Post a Comment