一、已知mac地址查找对在的交换机接口
1、show arp
查看arp信息表,如下:
#show arp | include 64
Internet 10.10.1.64 3 c869.cd96.6f90 ARPA Vlan2
2、查看vlan,具体信息
show vlan id 2
3、查看mac地址表所在接口
注意 include后不需要加:单引号、双引号其他字符,直接接4位mac连续地址
另外,mac地址表不一定有,因为arp的保存周期会更长,所以需要现在交换机上提前执行ping
#show mac address-table | include 64c2
2 6c40.089f.64c2 DYNAMIC Gi0/12
4、查看核心交换信息
5、查看对应的接口信息
show interfaces Gi0/12
show interfaces GigabitEthernet1/0/15()
6、确认设备接口内的mac信息
#show mac address-table dynamic interface gigabitEthernet 0/12
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
2 00c2.c675.de34 DYNAMIC Gi0/12
2 00cd.fe5b.d0a2 DYNAMIC Gi0/12
2 102a.b323.42ac DYNAMIC Gi0/12
7、查看设备邻近关系
show cdp neighbors
作用是显示有关直连设备的信息,其中包括设备的主机名,接收数据包的端口或接口,保持时间,邻居设备的性能,设备类型和连接的端口ID
//加一个detail,可以查看出详细信息:包括ip地址等
show cdp neighbors detail
二、
1、查看arp的刷新间隔
#show interfaces g0/12
ARP type: ARPA, ARP Timeout 04:00:00
2、清理arp缓存
clear arp-cache
三、系统管理
1、查看CPU使用率
show processes cpu
2、重启交换机
restart 或者 reload
四、修改密码
修改特权用户imoocc密码
Cisco_2921(config)#username imoocc secret 23123
Cisco_2921(config)#end
Cisco_2921#copy running-config strat-config