Archive for December, 2010
show vlan
config t
vlan 330 [ create/edit vlan 330 ]
name my_vlan [ description ]
exit
no vlan 330 [ delete vlan 330 ]
show interface status
interface range Gi1/10-20 [ edit interfaces Gi1/10 -> Gi1/20 ]
switchport trunk encapsulation dot1q [ set encapsulation mode ]
switchport mode trunk [ set trunk mode ]
siwtchport trunk native vlan 1 [ set native to vlan 1 ]
do show run
no switchport access [ turn off access mode ]
switchport trunk allowed vlan none [ disable all vlan ]
switchport trunk allowed vlan add 332 [ enable vlan 332 ]
——
conf t
inte rang fa 0/1-24
switchport port-security
switchport port-security aging time 60
switchport port-security mac-address 1234.5678.9012
switchport port-security violation protect
end
———————————-
lookup an IP, first, pinging 192.168.1.15
Core1# sh ip arp 192.168.1.15
MAC Address : 0000.1111.1111
Core1# sh mac address-table address 0000.1111.1111
Port Gi1/0/20
access switch acsw02
acsw02# sh mac address-table address 0000.1111.1111
port Fa0/18
==> found