Juniper EX交换机端口镜像配置
更新时间:2023-11-13 19:44:01 阅读量: 教育文库 文档下载
- juniper推荐度:
- 相关推荐
Example: Configuring Port Mirroring for Local Monitoring of Employee Resource Use on EX Series Switches
EX Series switches allow you to configure port mirroring to send copies of packets to either a local interface for local monitoring or to a VLAN for remote monitoring. You can use port mirroring to copy these packets:
? ? ?
Packets entering or exiting a port
Packets entering a VLAN on EX2200, EX3200, EX4200, or EX4500 switches Packets exiting a VLAN on EX8200 switches
You can analyze the mirrored traffic using a protocol analyzer application installed on a system connected to the local destination interface (or a running on a remote monitoring station if you are sending mirrored traffic to an analyzer VLAN). This example describes how to configure an EX Series switch to mirror traffic
entering interfaces connected to employee computers to an analyzer output interface on the same switch.
This example describes how to configure local port mirroring:
? ? ? ? ? Requirements Overview and Topology Mirroring All Employee Traffic for Local Analysis Mirroring Employee-to-Web Traffic for Local Analysis Verification Requirements
This example uses the following hardware and software components:
? ?
Junos OS Release 9.0 or later for EX Series switches One EX Series switch
Before you configure port mirroring, be sure you have an understanding of port mirroring concepts.
Overview and Topology
This topic includes two related examples that describe how to mirror traffic entering ports on the switch to a destination interface on the same switch. The first example shows how to mirror all traffic entering the ports connected to employee computers. The second example shows the same scenario, but includes a filter to mirror only the employee traffic going to the Web.
In this example, ge-0/0/0 and ge-0/0/1 serve as connections for employee computers.
In this example, one interface, ge-0/0/10, is reserved for analysis of mirrored traffic. Connect a PC running a protocol analyzer application to the analyzer output interface to analyze the mirrored traffic.
Note: Multiple ports mirrored to one interface can cause buffer overflow and dropped packets.
Figure 1 shows the network topology for this example.
Figure 1: Network Topology for Local Port Mirroring Example
Mirroring All Employee Traffic for Local Analysis
To configure port mirroring for all employee traffic for local analysis, perform these tasks:
CLI Quick Configuration
To quickly configure local port mirroring for ingress traffic to the two ports connected to employee computers, copy the following commands and paste them into the switch terminal window:
[edit]
set interfaces ge-0/0/0 unit 0 family ethernet-switching
set interfaces ge-0/0/1 unit 0 family inet 192.1.1.1/24
set interfaces ge-0/0/10 unit 0 family ethernet-switching
set ethernet-switching options analyzer employee–monitor input ingress interface ge-0/0/0.0
set ethernet-switching options analyzer employee–monitor input ingress interface ge-0/0/1.0
set ethernet-switching options analyzer employee–monitor output interface ge-0/0/10.0
Step-by-Step Procedure
To configure an analyzer called employee-monitor and specify the input (source) interfaces and the analyzer output interface:
1. Configure each interface connected to employee computers as an input interface for the port-mirror analyzer that
we are calling employee-monitor:
[edit ethernet-switching-options]
user@switch# set analyzer employee-monitor input ingress interface ge–0/0/0.0 user@switch# set analyzer employee-monitor input ingress interface ge–0/0/1.0
2. Configure the output analyzer interface for the employee-monitor analyzer. This will be the destination
interface for the mirrored packets:
[edit ethernet-switching-options]
user@switch# set analyzer employee-monitor output interface ge-0/0/10.0
Results
Check the results of the configuration:
[edit]user@switch# showethernet-switching-options {analyzer
employee-monitor {input {ingress {interface ge-0/0/0.0;interface ge-0/0/1.0;}}output {interface {ge-0/0/10.0;}}}}
Mirroring Employee-to-Web Traffic for Local Analysis
To configure port mirroring for employee to web traffic, perform these tasks: CLI Quick Configuration
To quickly configure local port mirroring of traffic from the two ports connected to employee computers, filtering so that only traffic to the external Web is mirrored, copy the following commands and paste them into the switch terminal window:
[edit]
set ethernet-switching-options analyzer employee–web–monitor output interface ge-0/0/10.0
set firewall family ethernet-switching filter watch-employee term employee-to-corp from destination-address 192.0.2.16/28
set firewall family ethernet-switching filter watch-employee term employee-to-corp from source-address 192.0.2.16/28
set firewall family ethernet-switching filter watch-employee term employee-to-corp then accept
set firewall family ethernet-switching filter watch-employee term employee-to-web from destination-port 80
set firewall family ethernet-switching filter watch-employee term employee-to-web then analyzer employee-web-monitor
set interfaces ge-0/0/0 unit 0 family ethernet-switching filter input watch-employee
set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input watch-employee
Step-by-Step Procedure
To configure local port mirroring of employee-to-web traffic from the two ports connected to employee computers:
1. Configure the local analyzer interface:
[edit interfaces]
user@switch# set ge-0/0/10 unit 0 family ethernet-switching
2. Configure the employee-web-monitor analyzer output (the input to the analyzer comes from the action of
the filter):
[edit ethernet-switching-options]
user@switch# set analyzer employee-web-monitor output interface ge-0/0/10.0
3. Configure a firewall filter called watch-employee to send mirrored copies of employee requests to the Web
to theemployee-web-monitor analyzer. Accept all traffic to and from the corporate subnet (destination or source address of 192.0.2.16/28). Send mirrored copies of all packets destined for the Internet (destination port 80) to the employee-web-monitor analyzer.
[edit firewall family ethernet-switching]
user@switch# set filter watch-employee term employee-to-corp from destination-address 192.0.2.16/28
user@switch# set filter watch-employee term employee-to-corp from source-address 192.0.2.16/28
user@switch# set filter watch-employee term employee-to-corp then accept
user@switch# set filter watch-employee term employee-to-web from destination-port 80 user@switch# set filter watch-employee term employee-to-web then analyzer employee-web-monitor
4. Apply the watch-employee filter to the appropriate ports:
[edit interfaces]
user@switch# set ge-0/0/0 unit 0 family ethernet-switching filter input watch-employee user@switch# set ge-0/0/1 unit 0 family ethernet-switching filter input watch-employee
Results
Check the results of the configuration:
[edit]user@switch# showethernet-switching-options {analyzer
employee-web-monitor {output {interface ge-0/0/10.0;}}}...firewall family ethernet-switching {filter watch-employee {term employee-to-corp {from {destination-address 192.0.2.16/28;source-address 192.0.2.16/28;}then accept {}term employee-to-web {from {destination-port 80;}then analyzer
employee-web-monitor;}}}...interfaces {ge-0/0/0 {unit 0 {family ethernet-switching {port-mode trunk;vlan members [employee-vlan, voice-vlan];filter {input watch-employee;}}}}ge-0/0/1 {family ethernet-switching {filter {input watch-employee;}}}}
Verification
To confirm that the configuration is correct, perform these tasks:
? Verifying That the Analyzer Has Been Correctly Created Verifying That the Analyzer Has Been Correctly Created
Purpose
Verify that the analyzer named employee-monitor or employee-web-monitor has been created on the switch with the appropriate input interfaces, and appropriate output interface.
Action
You can verify the port mirror analyzer is configured as expected using the show analyzer command.
user@switch> show analyzer
Analyzer name : employee-monitor Output interface : ge-0/0/10.0 Mirror ratio : 1 Loss priority : Low
Ingress monitored interfaces : ge-0/0/0.0 Ingress monitored interfaces : ge-0/0/1.0 Egress monitored interfaces : None
Meaning
This output shows that the employee-monitor analyzer has a ratio of 1 (mirroring every packet, the default setting), a loss priority of low (set this option to high only when the analyzer output is to a VLAN), is mirroring the traffic entering the ge-0/0/0 and ge-0/0/1 interfaces, and sending the mirrored traffic to the ge-0/0/10interface.
正在阅读:
Juniper EX交换机端口镜像配置11-13
品德与社会《画画我们的学校》教学设计09-09
美国公民护照申请表格 DS-1109-01
高一In Search of the Amber Room设计方案10-22
浅谈水浒传108人内部关系12-02
丁家小学创建重庆市“绿色校园”相关资料08-28
2022年东北师范大学文学院679现代汉语考研仿真模拟题04-10
文锦站DN800给水管悬吊方案05-06
《房地产评估》试卷A及参考答案04-19
- exercise2
- 铅锌矿详查地质设计 - 图文
- 厨余垃圾、餐厨垃圾堆肥系统设计方案
- 陈明珠开题报告
- 化工原理精选例题
- 政府形象宣传册营销案例
- 小学一至三年级语文阅读专项练习题
- 2014.民诉 期末考试 复习题
- 巅峰智业 - 做好顶层设计对建设城市的重要意义
- (三起)冀教版三年级英语上册Unit4 Lesson24练习题及答案
- 2017年实心轮胎现状及发展趋势分析(目录)
- 基于GIS的农用地定级技术研究定稿
- 2017-2022年中国医疗保健市场调查与市场前景预测报告(目录) - 图文
- 作业
- OFDM技术仿真(MATLAB代码) - 图文
- Android工程师笔试题及答案
- 生命密码联合密码
- 空间地上权若干法律问题探究
- 江苏学业水平测试《机械基础》模拟试题
- 选课走班实施方案
- 交换机
- 端口
- 镜像
- 配置
- Juniper
- 浅谈党风廉政建设存在的问题与对策
- 什么是财务评价概念
- 七年级英语阶段练习(201510) - 图文
- 加热炉工理论知识复习题
- 计算机网络(笔试、面试)
- 原子物理学课后习题答案第10章
- 实验二:FANUC数控铣床手工编程
- 树儿里春节措施(2012年1月6日)
- 新标准外研版四年级英语上册复习模块ReviewModule教案
- 干部选拔任用工作政策法规知识测试题和答案(后注正确答案)
- 主机恶意代码检测系统的设计与实现要点
- 多区域OSPF
- 甘政办发148号
- 少先队事业热心支持者事迹
- 2013海淀二模英语及答案(精校)
- 专业解读:发动机ECU标定全流程 -
- 水上施工安全专项方案
- RAL色卡 德国欧标色卡
- 《离散数学I》模拟试题
- 090209NC信息化软件供应链部分操作手册试行版