S5700交换机配置端口镜像
<Quidway>system-view //进入系统视图
Enter system view, return user view with Ctrl+Z.
[Quidway]
[Quidway]observe-port 1 interface GigabitEthernet 0/0/1 //observe:观察监听 命名为1 用交换机的1端口 全意:把交换机的1端口作为监听端口,并且命名为1
[Quidway]interface GigabitEthernet 0/0/11 //进入11端口视图
[Quidway-GigabitEthernet0/0/11]port-mirroring to observe-port 1 both 端口镜像到监听端口1
[Quidway-GigabitEthernet0/0/11]quit //退出
[Quidway]interface GigabitEthernet 0/0/12
[Quidway-GigabitEthernet0/0/12]port-mirroring to observe-port 1 both端口镜像到监听端口1
[Quidway-GigabitEthernet0/0/12]display th //显示配置
#
interface GigabitEthernet0/0/12
port-mirroring to observe-port 1 inbound
port-mirroring to observe-port 1 outbound
#
return
[Quidway-GigabitEthernet0/0/12]quit
[Quidway]q
<Quidway>save //保存配置
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Oct 1 2008 00:20:14+08:00 Quidway %%01CFM/4/SAVE(l)[26]:The user chose Y when deciding whether to save the configuration to the device.
Save the configuration successfully.
<Quidway>display current-configuration //显示配置文件
#
observe-port 1 interface GigabitEthernet0/0/1 //监听端口命名为1 是交换机端口为1
#
#
interface GigabitEthernet0/0/11 //输入输出的都要复制到监听端口1
port-mirroring to observe-port 1 inbound
port-mirroring to observe-port 1 outbound
#
interface GigabitEthernet0/0/12 //输入输出的都要复制到监听端口1
port-mirroring to observe-port 1 inbound
port-mirroring to observe-port 1 outbound
#
来源:https://www.cnblogs.com/Eric-bky/p/4378493.html