概述
该文档主要描述配置交换机VLAN 及配置镜像端口,方便抓包操作。
操作说明
连接
i.PC通过串口线连接交换机 Console 口;
ii.在PC上打开“超级终端”:开始》所有程序》附件》通信》超级终端;
iii.选择“COM”口后在端口设置页面选择“还原为默认值”;
一、Huawei S2300配置
<Quidway>system-view //切换至系统视图
Enter system view, return user view with Ctrl+Z.
[Quidway]display current-configuration //查看配置信息
[Quidway]igmp-snooping enable //打开IGMP 组播
[Quidway]vlan 10 //新建10的VLAN 或是进Vlan 10视图
[Quidway-vlan10]port Ethernet 0/0/1 //将端口1加入 vlan 10
[Quidway-vlan10]port Ethernet 0/0/2 //依次将所有端口加入vlan 10
…
[Quidway-vlan10]quit
[Quidway]observing-port 1 interface Ethernet 0/0/3 //添加端口3为观察口
[Quidway]interface Ethernet 0/0/2 //进入端口2视图
[Quidway-Ethernet0/0/2]port-mirroring to observe-port 1 both // 配置镜像口
[Quidway]quit //推出系统视图
<Quidway>save //保存配置,并重启交换机,配置完成;
附配置信息:
[Quidway]display current-configuration
#
sysname Quidway
#
igmp-snooping enable
igmp-snooping send-query source-address 192.168.0.1
#
vlan batch 1 10
#
observing-port 1 interface Ethernet0/0/3
歌曲再见张震岳#
bpdu enable
#
cluster enable
ntdp enable
ntdp hop 16
ndp enable
#
undo http server enable
#
vlan 10
igmp-snooping enable
#
interface Ethernet0/0/1
port default vlan 10
ntdp enable
ndp enable
#
interface Ethernet0/0/2
port default vlan 10
port-mirroring to observe-port 1 inbound
port-mirroring to observe-port 1 outbound
ntdp enable
东宫电视剧演员 ndp enable
#
interface Ethernet0/0/3
port default vlan 10
ntdp enable
ndp enable
#
interface Ethernet0/0/4
port default vlan 10
ntdp enable
ndp enable
#
interface Ethernet0/0/5
port default vlan 10
ntdp enable
ndp enable
最新好玩的单机游戏#
interface Ethernet0/0/6
port default vlan 10
ntdp enable
ndp enable
#
interface Ethernet0/0/7
port default vlan 10
ntdp enable
ndp enable
#
interface Ethernet0/0/8
port default vlan 10
ntdp enable
ndp enable
#
interface GigabitEthernet0/0/1
port default vlan 1
ntdp enable
ndp enable
#
interface NULL0
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
张小斐个人资料老公 domain default_admin
#
user-interface con 0
user-interface vty 0 4
#
return
[Quidway]
二、Huawei S2000配置
<Quidway>system-view //切换至系统视图
Enter system view, return user view with Ctrl+Z.
[Quidway]display current-configuration //查看配置信息
[Quidway]igmp-snooping enable //打开IGMP 组播
[Quidway]vlan 10 //新建10的VLAN 或是进Vlan 10视图
[Quidway-vlan10]port Ethernet 1/0/1 //将端口1加入 vlan 10
[Quidway-vlan10]port Ethernet 1/0/2 //依次将所有端口加入vlan 10
[Quidway-vlan10]quit
专升本条件[Quidway] mirroring-group 1 local 设置镜像组
[Quidway] mirroring-group 1 mirroring-port Ethernet 1/0/1 Ethernet 1/0/2 both 在镜像组1里设置 1端口和2端口为镜像端口
[Quidway] mirroring-group 1 monitor-port Ethernet 1/0/3 3端口为监测口
[Quidway] display mirroring-group 1 查看镜像组1里的信息
mirroring-group 1:
专升本条件[Quidway] mirroring-group 1 local 设置镜像组
[Quidway] mirroring-group 1 mirroring-port Ethernet 1/0/1 Ethernet 1/0/2 both 在镜像组1里设置 1端口和2端口为镜像端口
[Quidway] mirroring-group 1 monitor-port Ethernet 1/0/3 3端口为监测口
[Quidway] display mirroring-group 1 查看镜像组1里的信息
mirroring-group 1:
[Quidway]quit //推出系统视图
<Quidway>save //保存配置,并重启交换机,配置完成;
附配置信息
[Quidway]display current-configuration
#
sysname Quidway
#
igmp-snooping enable
#
mirroring-group 1 local
#
radius scheme system
#
domain system
#
vlan 1
#
vlan 10
#
interface Vlan-interface1
#
interface Aux1/0/0
#
interface Ethernet1/0/1
port access vlan 10
loopback-detection enable
mirroring-group 1 mirroring-port both
#
interface Ethernet1/0/2
port access vlan 10
loopback-detection enable
mirroring-group 1 mirroring-port both
#
interface Ethernet1/0/3
port access vlan 10
loopback-detection enable
如何清除浏览器缓存 mirroring-group 1 monitor-port
#
interface Ethernet1/0/4
port access vlan 10
loopback-detection enable
#
interface Ethernet1/0/5
port access vlan 10
loopback-detection enable
#
interface Ethernet1/0/6
port access vlan 10
loopback-detection enable
#
interface Ethernet1/0/7
port access vlan 10
loopback-detection enable
#
interface Ethernet1/0/8
port access vlan 10
loopback-detection enable
#
interface GigabitEthernet1/1/1
发布评论