Login
enable
configure terminal
show running-config
User
user admin password 0 admin123
user admin privilege 15
telnet client enable
aaa new-model
aaa authentication login default local
line vty 0 4
password 0 admin
login authentication default
privilege level 15
exit
Vlan
vlan 10
exit
vlan 1001-4000
exit
Vlanif
int vlan 10
ip address 10.14.115.68 255.255.255.0
exit
Static Route
ip route 0.0.0.0 0.0.0.0 10.14.115.1
Interface
interface gigabitethernet0/1
no shutdown
switchport mode access
switchport access vlan 10
interface gigabitethernet0/23
no shutdown
switchport mode trunk
switchport trunk allowed vlan all
interface gigabitethernet0/24
no shutdown
switchport mode trunk
switchport trunk allowed vlan all
int g0/2-0/22
no shutdown
switchport mode access
exit
Port Mirroring
# 创建session1组、并指定端口流量方向(Tx上行(传出),Rx下行(传入),both双向)
monitor session 1 filter packet-type good rx
# 镜像源端口
monitor session 1 source interface 镜像源端口 流量方向【入口rx、出口tx、双向both】
# 将g1/0/1端口作为镜像源端口,入口方向流量
monitor session 1 source interface g1/0/1 rx
# 镜像目的端口
monitor session 1 destination interface 目的端口 流量方向【入口rx、出口tx、双向both】
# 将g1/0/2端口作为镜像目的端口
monitor session 1 destination interface g1/0/2
# 查看session 1的配置
show monitor session 1
Save
write
来自: Switch 之 Maipu Confighttps://mp.weixin.qq.com/s?__biz=Mzk0NTQ3OTk3MQ==&mid=2247487506&idx=1&sn=d91fbf96bad62c1296695b03b39904c5&chksm=c315985ef46211480e344229a2d7b6ce8e09af64ecb9b22b036cc3dcb061346ded33993b63ed&token=113329682&lang=zh_CN#rd