pica8 交换机镜像网口的配置流程
为了突破自己,接受了服务器环境搭建的任务,一个拿着一份工资却干着三份职业的工作。
环境需求:
有两台服务器连接在交换机上。暂且较AServer、BServer。AServer通过PICA8交换机与代理服务器相连接(有tcp连接),BServer通过交换机与代理服务器没有连接。现在需要将客户端发送给AServer的数据在BServer也要得到一份。这就需要使用到交换机的镜像网口配置
技术要求:
会使用Tab键,能读懂英文。
配置步骤:
首先通过串口线将交换机上的manager口语笔记本相连接,然后使用admin账号登录,键入pica8密码。使用Tab键查看所有命令及意义。这里直接写出配置命令:
1.首先配置一个镜像网口:
1 set interface ethernet-switching-options analyzer 111 output ge-1/1/1 2 commit
2.其次在配置一个流入网口配置
1 set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/2 2 commit
3.然后再配置一个流出网口配置
1 set interface ethernet-switching-options analyzer 111 input egress ge-1/1/3 2 commit
4.最后查看一下状态:
1 run show analyzer 111
现在贴出英文的官方文档:
Configuring Mirroring You can configure one (1) mirror to analyze traffic. Configure the source/destination port (input/output port). Note: The output (mirroring) port can belong to any VLAN and will not participate in Layer2 or Layer3 forwarding. Configuring Mirroring to Analyze Traffic admin@XorPlus# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/1 admin@XorPlus# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/1 admin@XorPlus# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/2 admin@XorPlus# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/2 admin@XorPlus# set interface ethernet-switching-options analyzer 111 output ge-1/1/3 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. admin@XorPlus# run show analyzer 111 Analyzer name: 111 Output interface: <ge-1/1/3> Ingress monitored interfaces: <ge-1/1/1><ge-1/1/2> Egress monitored interfaces: <ge-1/1/1><ge-1/1/2> admin@XorPlus# Configuring Mirroring Guide User can configure a port as a mirroring port, which can analyze the traffic of egress port or ingress port. Configuring a Port as a Mirroring Port When configuring mirroring, user must first configure the port as a mirror. admin@XorPlus# set interface ethernet-switching-options analyzer 111 output ge-1/1/1 admin@XorPlus# commitWaiting for merging configuration. Commit OK. Save done. Configuring Mirroring on Egress Port or Ingress Port After configuring a port as a mirroring port, user should use it to monitor the flows of egress or ingress. Configure Monitor the flows of ingress port: admin@XorPlus# set interface ethernet-switching-options analyzer 111 input ingress ge-1/1/2 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done. Configure Monitor the Flows of Egress Port: admin@XorPlus# set interface ethernet-switching-options analyzer 111 input egress ge-1/1/3 admin@XorPlus# commit Waiting for merging configuration. Commit OK. Save done.
作者:first_semon
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。如有问题,欢迎交流