思科|锐捷|迈普|华为|华三等常见厂商交换机端口镜像配置命令详细说明

1、H3C交换机网络设备镜像端口配置

命令格式:
mirroring-group 1 local 本地镜像组 1
mirroring-group 1 mirroring-port 源端端口 流量方向【入口input、出口ouput、双向both】
mirroring-group 1 monitor-port 目的端口

示例:

【创建本地镜像组 1】
mirroring-group 1 local 本地镜像组 1

【在本地镜像组1将 G1/0/1 设成镜像源端口,both为双向流量】
mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 both

【在本地镜像组1将 G1/0/2 设成镜像源端口,both为双向流量】
mirroring-group 1 mirroring-port GigabitEthernet 1/0/2 both

mirroring-group 1 monitor-port GigabitEthernet 1/0/32
【在本地镜像组1将 G1/0/32 设成镜像目的端口,镜像上面G1/0/1和G1/0/32的流量】

disp cu查看源端口配置信息

interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
mirroring-group 1 mirroring-port both

源端口G1/0/1
interface GigabitEthernet1/0/2
port link-mode bridge
po

  • 16
    点赞
  • 98
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是思科华为、新华三锐捷交换机命令大全: 思科交换机命令: 1. 配置主机名:hostname <name> 2. 配置接口VLAN:interface <interface type><interface number>,switchport mode access,switchport access vlan <vlan ID> 3. 配置Trunk口:interface <interface type><interface number>,switchport mode trunk,switchport trunk allowed vlan <vlan ID> 4. 配置默认网关:ip default-gateway <ip address> 5. 配置静态路由:ip route <destination network> <subnet mask> <next hop address> 6. 配置Telnet:line vty <line number>,password <password>,login 7. 配置SSH:ip ssh version <version>,crypto key generate rsa 8. 配置ACL:access-list <number> permit/deny <protocol> <source address> <wildcard mask> [<destination address> <wildcard mask> <operator> <port>] 9. 配置STP:spanning-tree mode <mode>,spanning-tree vlan <vlan ID> root primary/secondary,spanning-tree portfast 华为交换机命令: 1. 配置主机名:sysname <name> 2. 配置接口VLAN:interface <interface type><interface number>,port link-type access,port default vlan <vlan ID> 3. 配置Trunk口:interface <interface type><interface number>,port link-type trunk,port trunk allow-pass vlan <vlan ID> 4. 配置默认网关:ip route-static 0.0.0.0 0.0.0.0 <next hop address> 5. 配置静态路由:ip route-static <destination network> <subnet mask> <next hop address> 6. 配置Telnet:user-interface vty <line number>,authentication-mode password,set authentication password cipher <password> 7. 配置SSH:ssh server enable,user-interface vty <line number>,authentication-mode aaa,protocol inbound ssh,user privilege level 3 8. 配置ACL:acl number <number>,rule <rule number> permit/deny <protocol> source <source address> <wildcard mask> destination <destination address> <wildcard mask> [destination-port <port>] 9. 配置STP:stp mode <mode>,stp priority <priority>,stp enable 新华三交换机命令: 1. 配置主机名:sysname <name> 2. 配置接口VLAN:interface <interface type><interface number>,port link-type access,port default vlan <vlan ID> 3. 配置Trunk口:interface <interface type><interface number>,port link-type trunk,port trunk allow-pass vlan <vlan ID> 4. 配置默认网关:ip route-static 0.0.0.0 0.0.0.0 <next hop address> 5. 配置静态路由:ip route-static <destination network> <subnet mask> <next hop address> 6. 配置Telnet:user-interface vty <line number>,authentication-mode password,set authentication password cipher <password> 7. 配置SSH:ssh server enable,user-interface vty <line number>,authentication-mode aaa,protocol inbound ssh,user privilege level 3 8. 配置ACL:acl number <number>,rule <rule number> permit/deny <protocol> source <source address> <wildcard mask> destination <destination address> <wildcard mask> [destination-port <port>] 9. 配置STP:stp mode <mode>,stp priority <priority>,stp enable 锐捷交换机命令: 1. 配置主机名:system name <name> 2. 配置接口VLAN:interface <interface type><interface number>,port link-type access,port default vlan <vlan ID> 3. 配置Trunk口:interface <interface type><interface number>,port link-type trunk,port trunk allow-pass vlan <vlan ID> 4. 配置默认网关:ip route-static 0.0.0.0 0.0.0.0 <next hop address> 5. 配置静态路由:ip route <destination network> <subnet mask> <next hop address> 6. 配置Telnet:user-interface vty <line number>,authentication-mode password,set authentication password cipher <password> 7. 配置SSH:ssh server enable,user-interface vty <line number>,authentication-mode aaa,protocol inbound ssh,user privilege level 3 8. 配置ACL:acl number <number>,rule <rule number> permit/deny <protocol> source <source address> <wildcard mask> destination <destination address> <wildcard mask> [destination-port <port>] 9. 配置STP:stp enable,stp force-version <version>,stp priority <priority>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值