gvrp的简单配置

一、了解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接口注册的模式为normal

二、简单配置

gvrp的简单配置
配置思路:首先开启全局gvrp,然后配置交换机之间的trunk链路,并允许所有VLAN通过,开启接口gvrp。注意:gvrp注册是单向注册,所以配置gvrp时需要双向配置。

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,此命令可不敲
quit

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
quit

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

三、验证
在s1和s4上分别创建VLAN10、VLAN20、VLAN30,在S2和S3上使用display vlan 命令查看
gvrp的简单配置
gvrp的简单配置

GVRP查看命令:
display gvrp status命令,验证GVRP的配置,可以查看交换机是否使能了GVRP
display gvrp statistics命令,可以查看GVRP中活动接口的信息。

猜你喜欢

转载自blog.51cto.com/12184141/2149744