1、了解GVRP
GVRP(GARP VLAN Registration Protocol),称为VLAN注册协议,是用来维护交换机中的VLAN动态注册信息,并传播该信息到其余交换机中,避免了咱们手工一个个去配置静态VLAN,进而提升工做效率。
GVRP的注册模式包括:Normal,fixed和forbidden
fixed:不容许动态VLAN在端口上注册或者注销,且只发送静态VLAN的声明消息。
forbidden:不容许动态VLAN在端口上进行注册,同时删除端口上除了VLAN1外的全部VLAN
Normal:容许静态和动态VLAN注册,同时发送静态VLAN和动态VLAN的信息,缺省状况下,gvrp接口注册的模式为normalide
2、简单配置ui
配置思路:首先开启全局gvrp,而后配置交换机之间的trunk链路,并容许全部VLAN经过,开启接口gvrp。注意:gvrp注册是单向注册,因此配置gvrp时须要双向配置。orm
S1:
sys
sysn S1
gvrp //开启全局gvrp
int g0/0/1
port link-type trunk
port trunk allow-pass vlan all
gvrp //开启接口gvrp
gvrp registration normal // 配置gvrp注册模式为normal,默认为normal,此命令可不敲
quitblog
S4:
sys
sysn S4
gvrp
int g0/0/1
port link-type trunk
port trunk allow-pass vlan all
gvrp
quit接口
S2:
sys
sysn S2
gvrp
int g0/0/1
port link-type trunk
port trunk allow-pass vlan all
gvrp
int g0/0/2
port link-type trunk
port trunk allow-pass vlan all
gvrp
quitit
S3:
sys
sysn S3
gvrp
int g0/0/1
port link-type trunk
port trunk allow-pass vlan all
gvrp
int g0/0/2
port link-type trunk
port trunk allow-pass vlan all
gvrp
quit io
3、验证
在s1和s4上分别建立VLAN十、VLAN20、VLAN30,在S2和S3上使用display vlan 命令查看class
GVRP查看命令:
display gvrp status命令,验证GVRP的配置,能够查看交换机是否使能了GVRP
display gvrp statistics命令,能够查看GVRP中活动接口的信息。效率