S5700交换机配置端口镜像

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值