Mundy

IT Knowledge Base

User Tools

Site Tools


kb:cisco_switches

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
kb:cisco_switches [2018/04/20 10:29]
Dan Mundy ↷ Page moved from it:cisco_switches to cisco_switches
— (current)
Line 1: Line 1:
-====== Cisco Switches ====== 
  
-  * [[:​cisco_snmp_monitoring|SNMP Monitoring on Cisco Switches]] 
- 
-===== VLANs ===== 
- 
-To show the VLANs and port assignments:​ show vlan brief 
- 
-{{page>​ad&​noeditbutton&​nofooter}} 
- 
-===== Trunk ports ===== 
- 
-If you're not sure which interfaces are set to trunk or not, try: 
- 
-<​code>​show interfaces trunk module 1</​code>​ 
- 
-Show which VLANs are allowed on the trunk port: 
- 
-<​code>​show interfaces gigabitEthernet 1/0/24 trunk</​code>​ 
- 
-If you want to specify which VLANs are allowed on the trunk port: 
- 
-<wrap info>​Note:​ If there is not a cable plugged in to the trunk port, it will say "Vlans allowed: none"</​wrap>​ 
- 
-<​code>​ 
-int gi1/0/24 
-switchport trunk allowed vlan 1,​100</​code>​ 
- 
-<WRAP center round help 60%> 
-But if you don't specify, then it will allow all VLANs. (I think... but this is not confirmed) 
-</​WRAP>​ 
- 
-===== Status ===== 
- 
-==== Find which switch ports have devices online ==== 
- 
-<​code>​show interfaces status | i connected</​code>​ 
- 
-==== Find which port a MAC is on ==== 
- 
-eg if you want to find and monitor a specific printer: 
- 
-swi01#show mac address-table address 1C:​7D:​22:​0D:​8C:​B7 
-          Mac Address Table 
-------------------------------------------- 
- 
-Vlan    Mac Address ​      ​Type ​       Ports 
-----    ----------- ​      ​-------- ​   ----- 
- ​100 ​   1c7d.220d.8cb7 ​   DYNAMIC ​    ​Gi1/​0/​3 
kb/cisco_switches.1524185979.txt.gz · Last modified: 2018/04/20 10:29 by Dan Mundy