跳转至

cisco交换机配置

串口连接

初始化配置

管理IP

Bash
1
2
3
4
interface vlan x
no shutdown
ip addrss xx.xx.xx.xx
enable password 123456

默认网关

Bash
1
ip default-gateway 192.168.168.1

vlan

Bash
1
2
enable
configure terminal

端口聚合

Bash
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#interface range fastEthernet 0/23-24
#channel-group 1 mode active
#switchport mode trunk
#no shutdown
#
#删除聚合
#no interface port-channel id
#查看聚合
#show etherchannel summary
#show etherchannel port-channel 1

端口镜像

Bash
1
2
3
4
5
6
7
8
##配置端口镜像
#模式 both:监听双向数据 rx:接受 tx:发送
monitor session 1 source interface gigabitEthernet 0/2  
monitor session 1 destination interface gigabitEthernet 0/6
##显示端口镜像
show monitor
##删除端口镜像
no monitor session 1

清空统计

Bash
1
clear counters