注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 网工人才缺口大 传统网管..
 帮助

SPAN & RSPAN


2007-02-05 23:47:44
 标签:路由   [推送到技术圈]

版权声明:原创作品,谢绝转载!否则将追究法律责任。
sw1的f0/7为source port, f0/8为local destination port, f0/9 为reflector port
f0/23为trunk port,sw2的f 0/10为remote destination port,f0/23为trunk port
配置SPAN
SW1
conf t
monitor session 1 source interface f 0/7 both
monitor session 1 destination interface f 0/8 encapsulation dot1q
配置RSPAN
SW1
conf t
vtp mode server
vtp domain ccie
vlan 2
remote-span
exit
int f 0/23
switchport trunk encap dot1q
switchport mode trunk
exit
monitor session 2 source interface 0/7 both
monitor session 2 destination remote vlan 2 reflector-port f 0/9
SW2
conf t
vtp domain ccie
vtp mode client
int f 0/23
switchport trunk encap dot1q
switchport mode trunk
exit
monitor session 2 source remote vlan 2
monitor session 2 destination interface f0/10 encap dot1q

校验
sw1#sh monitor session all d
Session 1
---------
Type              : Local Session
Source Ports      :
    RX Only       : None
    TX Only       : None
    Both          : Fa0/1
Source VLANs      :
    RX Only       : None
    TX Only       : None
    Both          : None
Source RSPAN VLAN : None
Destination Ports : Fa0/8
    Encapsulation : DOT1Q

          Ingress: Disabled
Reflector Port    : None
Filter VLANs      : None
Dest RSPAN VLAN   : None

Session 2
---------
Type              : Remote Source Session
Source Ports      :
    RX Only       : None
    TX Only       : None
   
Both          : Fa0/1
Source VLANs      :
    RX Only       : None
    TX Only       : None
    Both          : None
Source RSPAN VLAN : None
Destination Ports : None
Reflector Port    : Fa0/9
Filter VLANs      : None
Dest RSPAN VLAN   : 2

sw2#sh monitor session all d
Session 2
---------
Type              : Remote Destination Session
Source Ports      :
    RX Only       : None
    TX Only       : None
    Both          : None
Source VLANs      :
    RX Only       : None
    TX Only       : None
    Both          : None
Source RSPAN VLAN : 2
Destination Ports : Fa0/10
    Encapsulation : DOT1Q
          Ingress: Disabled
Reflector Port    : None
Filter VLANs      : None
Dest RSPAN VLAN   : None
 
 
 
注意
考试时候有两台3550,还有两台3560
做RSPAN时候,3560不支持反射端口的,源交换机上应该这样:
monitor session 1 source int <id>
monitor session 1 destination remote vlan <id>
目标交换机配置是一样的

本文出自 “穿过地狱去看海” 博客,谢绝转载!





    文章评论
 
2007-02-06 15:01:41
thanks!

 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: